Skip to main content
Version: 3.1.0

Get users NFT balance

Sends a REST-API call to Loopring to get users NFT balance, besides amount, it also includes tokenId and nftData. This function requires input as follows:

  • URL 1 : The URL to send the request to.
  • ApiKey 2 : API Key.
  • AccountId 3 : Account ID.
  • NftDatas 4 : The Loopring's NFT token data identifier which is a hash string of NFT token address and NFT_ID.
  • TokenAddrs 5 : NFT token address.
  • TokenIds 6 : The token slot ID in Loopring DEX.
  • Offset 7 : Number of records to skip.
  • Limit 8 : Number of records to return.
  • NonZero 9 : Hide 0 balance NFT token, default is true.

Get users NFT balance

The returned Response 10 is a struct that holds the response data for the HTTP request sent to Loopring.

note

If Success is True it only means that there was no error on the data transport layer (HTTP). You also need to check the response body to determine the actual outcome of the call.