Skip to content

getSignaturesForAddress doesn't work when passing through before or until #618

@huey345

Description

@huey345

input:

  const beforeSignature: string =
    "NiJozRcKaSn3nGQa7jTAo9qbVKb8JC6rHXJyTTEGnXfgJzVisTuDYxELdBUxStjxZj9N19wt3fMA8xS6H6acJLi";
  const lastSignature: string | null =
    "NiJozRcKaSn3nGQa7jTAo9qbVKb8JC6rHXJyTTEGnXfgJzVisTuDYxELdBUxStjxZj9N19wt3fMA8xS6H6acJLi";

  let tes = await connection.getSignaturesForAddress(poolAddress, {
    limit: 1000,
    before: beforeSignature,
    // until: lastSignature,
  });
  console.log(tes);

output:

node_modules/@solana/web3.js/src/connection.ts:5566
      throw new SolanaJSONRPCError(
            ^

SolanaJSONRPCError: failed to get signatures for address: Internal error
    at Connection.getSignaturesForAddress (node_modules/@solana/web3.js/src/connection.ts:5566:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async main (test-get-signatures.ts:16:13) {
  code: -32603,
  data: 'Failed to fetch signatures for address from remote: RPC response error -32020: Transaction NiJozRcKaSn3nGQa7jTAo9qbVKb8JC6rHXJyTTEGnXfgJzVisTuDYxELdBUxStjxZj9N19wt3fMA8xS6H6acJLi not found; '
}

Node.js v25.9.0

output(comment before):

[
  {
    signature: '3Xh96TNAuRGqrm2iLLRDMc3gvswrmFxPGHAwB5AAe6CxeFxnSes434JNV6HJrQCpsCdb7WJb6fofGNzGCdhqrgwj',
    slot: 456434895,
    err: null,
    memo: null,
    blockTime: null,
    confirmationStatus: 'finalized'
  },
  {
    signature: '4uPJ32RcveaheyWXVuZ2ShFo9KExEtfAMYLr67P43hAKpK19W9V4rctkzR56trkABFt7F8DnyE76GkJjnnuA1GAJ',
    slot: 456431040,
    err: null,
    memo: null,
    blockTime: null,
    confirmationStatus: 'finalized'
  },
  {
    signature: 'NiJozRcKaSn3nGQa7jTAo9qbVKb8JC6rHXJyTTEGnXfgJzVisTuDYxELdBUxStjxZj9N19wt3fMA8xS6H6acJLi',
    slot: 456431011,
    err: null,
    memo: null,
    blockTime: null,
    confirmationStatus: 'finalized'
  },
  {
    signature: '2EEp3ifkaz9TxP2KyoQqt2f1ogWdSbXiuLikxLoj3zqCuWFKstH7cEXxGP6zANobXyXfDi4ft8XRiahEnq2pbcCz',
    slot: 456430166,
    err: null,
    memo: null,
    blockTime: null,
    confirmationStatus: 'finalized'
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions