Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

214
Views
Get return from .mjs script to Python

I need to execute .mjs script about 200 times with another parameters (changableParametr):

import { Connection, PublicKey } from "@solana/web3.js";
import { Metadata } from "@metaplex-foundation/mpl-token-metadata";

const connection = new Connection("https://api.mainnet-beta.solana.com");

(async () => {
   let mintPubkey = new PublicKey(changableParametr);
   let tokenmetaPubkey = await Metadata.getPDA(mintPubkey);

   const tokenmeta = await Metadata.load(connection, tokenmetaPubkey);
   console.log(tokenmeta);
   })();

How get result to Python? I thought to use multiprocessing. Maybe expand this .mjs script to make .json file, because i need only one string from result. What is the easiest method to do this?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!