Get Assets by Authority
Get a list of assets with a specific authority.
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 .post
https://rpc.helius.xyz
/?api-key=<api_key>
getAssetsByAuthority
const url = "https://rpc.helius.xyz/?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 modified 11d ago