Get Assets by Authority

Get a list of assets with a specific authority.

Overview

This will return a list of assets for the given authority provided. This can define compressed or standard NFTs.

The page parameter in the request starts at 1 .

Example

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

const getAssetsByAuthority = async () => {
    const response = await fetch(url, {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        jsonrpc: '2.0',
        id: 'my-id',
        method: 'getAssetsByAuthority',
        params: {
          authorityAddress: '2RtGg6fsFiiF1EQzHqbd66AhW7R5bWeQGpTbv2UMkCdW',
          page: 1, // Starts at 1
          limit: 1000
        },
      }),
    });
    const { result } = await response.json();
    console.log("Assets by Authority: ", result.items);
};
getAssetsByAuthority(); 

Last updated