Questions tagged [fetch]
The fetch tag has no usage guidance.
13
questions
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 ...
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:
...
2
votes
1
answer
70
views
Fetch Anchor Discriminator (Typescript)
How to fetch the anchor discriminator in Typescript?
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 ...
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?
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?
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 ...
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 ...
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 ?
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?
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("...
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 ...
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 ...