Questions tagged [fetch]
The fetch tag has no usage guidance.
11
questions
0
votes
0
answers
12
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
17
views
Fetch TPS exclude validator votes
Greeting,
Looking for a way to fetch real TPS over ajax call.
Any suggestions please?
0
votes
0
answers
15
views
Get All Forks in an Epoch
I like to see forks and how they resolve. How to get all forks happened in mainnet-beta of current epoch?
1
vote
1
answer
71
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
252
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
45
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
52
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
25
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
28
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
168
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
57
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 ...