Skip to main content
POST
enhancedGetTokensAndNFTs

Contextualizing enhancedGetTokensAndNFTs

  • enhancedGetTokensAndNFTs, like its EVM counterpart, getTokensAndNFTs, retrieves a detailed list of tokens and NFTs that belong to a specific address. It takes:
    • address - a base58-encoded string.
    • Object, optional:
      • parseMetadataUri - Boolean (false by default).

Query example

JavaScript

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Request to get tokens and NFTs for an account.

jsonrpc
string
default:2.0
required

Version of the JSON-RPC protocol, should be 2.0.

Example:

"2.0"

id
integer
default:1
required

The request identifier.

Example:

1

chainId
integer
required

The blockchain chain ID.

Example:

101

method
enum<string>
required

API method being called.

Available options:
enhancedGetTokensAndNFTs
params
object[]
required

Parameters for getting tokens and NFTs.

Account address details.

Response

200 - application/json

Successful response with tokens and NFTs information.

jsonrpc
string
default:2.0
required

Version of the JSON-RPC protocol, should be 2.0.

Example:

"2.0"

id
integer
default:1
required

The request identifier.

Example:

1

chainId
integer
required

The blockchain chain ID.

Example:

101

result
object
required

Tokens and NFTs details.