Ask or search…
K
Links

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!
post
https://rpc.helius.xyz
/?api-key=<api_key>
getSignaturesForAsset
Parameters
Query
api-key*
string
The API key.
Body
Example
Schema
{
"jsonrpc": "2.0",
"id": "string",
"method": "getSignaturesForAsset",
"params": {
"id": "string",
"page": 1,
"limit": 100,
"before": "string",
"after": "string"
}
}
Responses
200: OK
Successful response
200 No Content
No content.
400: Bad Request
Invalid request.
401: Unauthorized
Unauthorized request.
403: Forbidden
Request was forbidden.
404: Not Found
The specified resource was not found.
429: Too Many Requests
Exceeded rate limit.
500: Internal Server Error
The server encountered an unexpected condition that prevented it from fulfilling the request.

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'
// ],
// ]