Solana Enhanced RPC
enhancedGetTokensAndNFTs
Learn how to use the enhancedGetTokensAndNFTs JSON-RPC method.
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
headerrequiredBasic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
application/json
jsonrpc
string
default: 2.0requiredVersion of the JSON-RPC protocol, should be 2.0.
id
integer
default: 1requiredThe request identifier.
chainId
integer
requiredThe blockchain chain ID.
method
enum<string>
requiredAPI method being called.
Available options:
enhancedGetTokensAndNFTs
params
object[]
requiredParameters for getting tokens and NFTs.
Response
200 - application/json
jsonrpc
string
default: 2.0requiredVersion of the JSON-RPC protocol, should be 2.0.
id
integer
default: 1requiredThe request identifier.
chainId
integer
requiredThe blockchain chain ID.
result
object
requiredTokens and NFTs details.
Was this page helpful?