Quantcast
Channel: Recent Questions - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 7969

I can't fetch full transactions for Solana token from quicknode api. Some signatures are missing

$
0
0

I am trying fetch all the signatures of a solana token with details. I am using monthly subscription. But Its failed to give full transactions. Some signatures are missing.Same happening with heilius.

async function fetchSignatures(mintAddress, endpoint) {  const connection = new Connection(endpoint, 'confirmed');  let allSignatures = [];  let beforeSignature = null;  const batchSize = 1000;  while (true) {    const signatures = await connection.getSignaturesForAddress(      new PublicKey(mintAddress),      { limit: batchSize, before: beforeSignature }    );    if (signatures.length === 0) break;    allSignatures = allSignatures.concat(signatures);    beforeSignature = signatures[signatures.length - 1].signature;    console.log(`Fetched ${signatures.length} signatures, total so far: ${allSignatures.length}`);  }}

Viewing all articles
Browse latest Browse all 7969

Trending Articles



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