Get Signatures For Asset

Get a list of transaction signatures related to a compressed asset.

Overview

This method will return the transaction signatures for a given asset. This only supports compressed assets.

This is the easiest way to lookup historical transactions for compressed NFTs!

getSignaturesForAsset

POSThttps://rpc.helius.xyz/?api-key=<api_key>
Query parameters
Body
jsonrpcenum

The version of the JSON-RPC protocol.

2.0
idstring

An ID to identify the request.

methodenum

The name of the DAS method to invoke.

getSignaturesForAsset
paramsobject
Response

Successful response

Body
totalinteger

The total number of signatures found.

Example: 2
limitinteger

The maximum number of signatures requested.

Example: 1000
pageinteger

The current page of results.

Example: 1
itemsarray of array of string

An array of signatures.

Request
const response = await fetch('https://rpc.helius.xyz/?api-key=<api_key>', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "total": 2,
  "limit": 1000,
  "page": 1,
  "items": [
    [
      "text"
    ]
  ]
}

Example

const url = `https://mainnet.helius-rpc.com/?api-key=<api_key>`

const getSignaturesForAsset = async () => {
  const response = await fetch(url, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      jsonrpc: '2.0',
      id: 'my-id',
      method: 'getSignaturesForAsset',
      params: {
        id: 'FNt6A9Mfnqbwc1tY7uwAguKQ1JcpBrxmhczDgbdJy5AC',
        page: 1, // Starts at 1
        limit: 1000, // Limit 1000 per request.
      },
    }),
  });
  const { result } = await response.json();
  console.log("Signatures: ", result);
};
getSignaturesForAsset();

// Signatures:  {
//  total: 2,
//  limit: 1000,
//  page: 1,
//  items: [
//    [
//      '5nLi8m72bU6PBcz4Xrk23P6KTGy9ufF92kZiQXjTv9ELgkUxrNaiCGhMF4vh6RAcisw9DEQWJt9ogM3G2uCuwwV7',
//      'MintToCollectionV1'
//    ]
//    [
//      '323Ag4J69gagBt3neUvajNauMydiXZTmXYSfdK5swWcK1iwCUypcXv45UFcy5PTt136G9gtQ45oyPJRs1f2zFZ3v',
//      'Transfer'
//    ],
//  ]

Last updated