EVM Enhanced RPC
getTokens
Learn how to use the getTokens JSON-RPC method.
POST
Contextualizing getTokens
getTokens
, as an alternative togetTokensAndNFTs
, returns an object with detailed information regarding the various ERC-20 tokens owned by a given address. It takes:Address
- string.Token addresses
- (optional), an array of strings.
Query example
JavaScript
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
application/json
Response
200 - application/json
Success
The response is of type object
.