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?
Firebase Cloud Functions: PubSub, "res.on is not a function"
TypeError: Cannot read properties of undefined (reading 'createMessageComponentCollector')
I'm having an async problem, and I've followed a lot of articles online to try and get this issue fixed, but it hasn't done anything
Long story short, I'd like to reinstall nodejs on my windows systemHowever after I downloaded the msi file and ran it, it failed complaining about cannot find D drive
I have a code which would be very repetitive, which according to the name of the string of an array executes one function or another
Hey I was working with fetch a normal fetch to request my API in my server, and It was working, but I found out that Axios is easier, so I tried to replace every fetch, but it looks like xhr doesn't work because of cors,