Theme

Get Asset Signatures

Returns the transaction signatures associated with a compressed asset. You can identify the asset either by its ID or by its tree and leaf index.

Parameters

NameRequiredDescription
assetId✅ (or tree + leafIndex)The id of the asset.
tree✅ (or assetId)The tree corresponding to the leaf.
leafIndex✅ (or assetId)The leaf index of the asset.
limitThe maximum number of signatures to retrieve.
pageThe index of the "page" to retrieve.
beforeRetrieve signatures before the specified signature.
afterRetrieve signatures after the specified signature.
cursorThe cursor of the signatures.
sortDirectionSort direction. Can be either "asc" or "desc".

Example

getAssetSignatures Example

import { publicKey } from '@metaplex-foundation/umi';
import { createUmi } from '@metaplex-foundation/umi-bundle-defaults';
import { dasApi } from '@metaplex-foundation/digital-asset-standard-api';

const umi = createUmi('<ENDPOINT>').use(dasApi());

const assets = await umi.rpc.getAssetSignatures({
  assetId: publicKey('GGRbPQhwmo3dXBkJSAjMFc1QYTKGBt8qc11tTp3LkEKA'),
  // Optional parameters
  // limit: 10,
  // page: 1,
  // sortDirection: 'desc',
});
console.log(assets);