Utils

Following are the features offered in order to search the issued NFTs.

Contents

Name
Description

View the total number of NFTs owned.

View the ID list of NFTs owned by a wallet.

View the detailed list of NFTs owned by a wallet.

View the detailed list of all NFTs registered on the chain.

Parameter information required to call API.

1. getBalanceOf

View the number of NFTs owned by a wallet.

Parameters

Name
Type
Example

ownerAddress

String

"firma1nssuz67am2uwc2hjgvphg0fmj3k9l6cx65ux9u"

Return value

6

2. getNftIdListOfOwner

View the ID list of all NFTs owned by a wallet.

Parameters

Name
Type
Example

ownerAddress

String

"firma1nssuz67am2uwc2hjgvphg0fmj3k9l6cx65ux9u"

Return value

{
  nftIdList: [
    '0',  '1',  '2',  '3',  '4',  '5'
  ],
  pagination: { next_key: null, total: 6 }
}

3. getNftItemAllFromAddress

View the detailed list of NFTs owned by a wallet.

Parameters

Name
Type
Example

ownerAddress

String

"firma1nssuz67am2uwc2hjgvphg0fmj3k9l6cx65ux9u"

Return value

{
  owner: 'firma1nssuz67am2uwc2hjgvphg0fmj3k9l6cx65ux9u',
  id: '0',
  tokenURI: 'https://firmachain.org/nft/metadata/bcf5cdajs-ff12...-d2han89nnha1'
},
{
  owner: 'firma1nssuz67am2uwc2hjgvphg0fmj3k9l6cx65ux9u',
  id: '1',
  tokenURI: 'https://firmachain.org/nft/metadata/ff1h2an107-tnz8...-bfbqn7h52mm'
},
...
{
  owner: 'firma1nssuz67am2uwc2hjgvphg0fmj3k9l6cx65ux9u',
  id: '5',
  tokenURI: 'https://firmachain.org/nft/metadata/tuw7mgb35fa-py71...-37uapnvgy65'
}
],
pagination: { next_key: null, total: 6 }

4. getNftItemAll

View all NFTs recorded on a chain network.

Parameters

Name
Type
Example

-

-

-

Return value

{
  dataList: [
  {
    owner: 'firma1nssuz67am2uwc2hjgvphg0fmj3k9l6cx65ux9u',
    id: '0',
    tokenURI: 'https://firmachain.org/nft/metadata/bcf5cdajs-ff12...-d2han89nnha1'
  },
  {
    owner: 'firma1nssuz67am2uwc2hjgvphg0fmj3k9l6cx65ux9u',
    id: '1',
    tokenURI: 'https://firmachain.org/nft/metadata/ff1h2an107-tnz8...-bfbqn7h52mm'
  },
  ...
  {
    owner: 'firma1trqyle9m2nvyafc2n25frkpwed2504y6avgfzr',
    id: '8',
    tokenURI: 'https://firmachain.org/nft/metadata/hfuqo72n65-vfy1...-jgnvkl863nv'
  },
  ],
  pagination: { next_key: null, total: 9 }
}

5. Parameter Description

Name
Description

ownerAddress

For this parameter, please enter your FirmaChain wallet address. The owner of the wallet can be anyone. (e.g. “Service Wallet Address” or “Signatory’s Wallet Address”).

Last updated