getSignaturesForAddress

All the specifications for getSignaturesForAddress RPC Method on Solana

Returns signatures for confirmed transactions that include the given address in their accountKeys list. Returns signatures backwards in time from the provided signature or most recent confirmed block.

Parameters required for this RPC call

  • address: Account address as base-58 encoded string. This is the address for which we are fetching transaction signatures.

  • configuration : This contains the following parameters, all are optional fields.

    • commitment: The commitment describes how finalized a block is at that point in time. Only confirmed and finalized are supported, defaults to finalized.

    • minContextSlot: The minimum slot that the request can be evaluated at. This is a number.

    • limit: Maximum transaction signatures to return (between 1 and 1,000).

    • before: Start searching backwards from this transaction signature. If not provided the search starts from the top of the highest max confirmed block.

    • until: Search until this transaction signature, if found before limit reached

curl https://rpc.shyft.to?api_key=YOUR-API-KEY -s -X \
  POST -H "Content-Type: application/json" -d ' 
   {
     "jsonrpc": "2.0",
     "id": 1,
     "method": "getSignaturesForAddress",
     "params": [
       "Vote111111111111111111111111111111111111111",
       {
         "commitment": "finalized",
         "limit": 1
       }
     ]
   }
 '

Last updated

Was this helpful?