Hey All
This is a pice of my code const web3 = require(“@solana/web3.js”);
I would be really glad to be anyone help my
(async () => {
const publicKey = new web3.PublicKey(
"4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncD" //USDC
);
const solanaConnection = new web3.Connection("https://proud-billowing-tent.solana-devnet.quiknode.pro/key/", {
wsEndpoint: "wss://proud-billowing-tent.solana-devnet.quiknode.pro/key/",
});
solanaConnection.onProgramAccountChange(
publicKey,
(updatedProgramInfo, context) =>
console.log("Updated program info: ", updatedProgramInfo,context),
"confirmed"
);
})();