Get Assets By Creator

Get standard and compressed NFTs created by a creator

Overview

This method returns a list of assets (standard and compressed NFTs) for the given creator address.

getAssetsByCreator() function supported in Shyft SDK for easy access.

Example

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(); 

Last updated