Quantcast
Browsing latest articles
Browse All 2 View Live

Answer by john for Ways to fetch ATA account in typescript?

program.account is used to help fetch and deserialize the custom accounts from your program.To get the data for a Token Account in TS, use getAccount from @solana/spl-token:import { getAccount } from...

View Article


Ways to fetch ATA account in typescript?

I have the following code that works fine with PDAs.const escrow_pda = PublicKey.findProgramAddressSync([Buffer.from("escrow"), fundraiser.publicKey.toBytes()], program.programId)[0];const esc = await...

View Article

Browsing latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>