This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const solanaWeb3 = require('@solana/web3.js'); | |
// replace with private paid RPC for best functionality | |
const rpc = "https://ssc-dao.genesysgo.net"; | |
// magic eden v2 solana program ID | |
const magicEdenPID = new solanaWeb3.PublicKey("M2mx93ekt1fmXSVkTrUL9xVFHkmME8HTUi5Cyc5aF7K"); | |
// only return confirmed transactions | |
const solana = new solanaWeb3.Connection(rpc, 'confirmed'); | |
/** |