Quantcast
Channel: Ways to fetch ATA account in typescript? - Solana Stack Exchange
Browsing index pages (2 articles)

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


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

Browsing index pages (2 articles)


Latest Images