This method returns a list of assets (standard and compressed NFTs) for the given creator address.
const url = `https://rpc.shyft.to/?api_key={api_key}`
const getAssetsByCreator = async () => {
const response = await fetch(url, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
jsonrpc: '2.0',
id: 'rpc-id',
method: 'getAssetsByCreator',
params: {
creatorAddress: 'D3XrkNZz6wx6cofot7Zohsf2KSsu2ArngNk8VqU9cTY3',
onlyVerified: true,
page: 1, // Starts at 1
limit: 1000
},
}),
});
const { result } = await response.json();
console.log("Assets by Creator Address: ", result.items);
};
getAssetsByCreator();