Questions tagged [fetch]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
88 views

Intermittent "Invalid Account Discriminator" Error

I have a few dozen "position" accounts for a user's positions in my AMM program. I previously had been getting these with a getProgramAccounts filter, which I understand is not very ...
joebuild's user avatar
  • 427
3 votes
1 answer
178 views

Fetch all() isn't working in Anchor Client

I am trying to fetch all accounts owned by my program using all() method but it is giving me this nasty error: Uncaught (in promise) ReferenceError: Buffer is not defined at AccountClient.all Code: ...
CryptoSar's user avatar
  • 389
2 votes
1 answer
70 views

Fetch Anchor Discriminator (Typescript)

How to fetch the anchor discriminator in Typescript?
vicyyn's user avatar
  • 3,775
0 votes
0 answers
27 views

Get typed accounts from account.whatever.fetchMultiple

When fetching a single account with an anchor fetch, you get a typed value back. E.g.: let acc = await program.account.whatever.fetch(someKey); will return your IDL type for acc. Here you would get a ...
Whiteseal's user avatar
  • 2,252
1 vote
0 answers
24 views

Fetch TPS exclude validator votes

Greeting, Looking for a way to fetch real TPS over ajax call. Any suggestions please?
Avaulto's user avatar
  • 82
1 vote
1 answer
198 views

Fetch NFT onchain data as JSON

I was wondering if, apart from the magic eden API, if it was possible to directly fetch on-chain NFT collection data(in JSON) with javascript? Or does that have to be done via web scraping?
Sing's user avatar
  • 111
4 votes
2 answers
562 views

Fetch onChain IDL from Program ID

I've been looking around the posts and I don't really see anything that can help me so I'm trying here. I'm looking for a way to fetch the IDL of a program by the ID of this program (provided that it ...
Swifty's user avatar
  • 398
1 vote
0 answers
51 views

Anchor | Fetching PDA results in: RangeError: Trying to access beyond buffer length [closed]

I am trying to fetch a specific PDA account using this method: console.log(await this.program.account.item.fetch(itemPDA)); and it keeps resulting in an error for some reason: RangeError: Trying to ...
incog's user avatar
  • 567
4 votes
2 answers
111 views

How can one paginate large number of accounts fetch on solana?

Like fetching all candy machines using get .all() api of anchor ? How can one paginate the data or we can't until all accounts data is fetched ?
maddy's user avatar
  • 318
1 vote
1 answer
35 views

Any method to get NFTs minted by a particular smart contract?

My question is similar to this one Link. I don't see any satisfactory answer on that question?. Is there a method to fetch all the nfts minted by a particular smart contract?
Lobo1897's user avatar
  • 153
1 vote
1 answer
38 views

how to fetch SPL by owner without NFT tokens

I am using the following code: public async getTokensAccountbyOwner(publicKey: PublicKey) { const accounts = await this.connection.getParsedProgramAccounts( TOKEN_PROGRAM_ID, // new PublicKey("...
Avaulto's user avatar
  • 82
1 vote
1 answer
414 views

How to find all (metaplex) nfts by (verified) collection?

Is there any way to find mints of all nfts which are verified to be a part of a given collection? I know I can find all by mint list, owner, or creator. The creator here has other nfts so I could get ...
Luke Miles's user avatar
2 votes
2 answers
78 views

Alternative to getSignatureForAddress [duplicate]

Hey looking for an alternative to getSIgnaturForAddress which is not limited by 1000 signatures (from newest-old) i wanted to know if there is a way to fetch the entire tx hashes/signature from the ...
Nabeel Naveed's user avatar