Learn how to use the getTokens JSON-RPC method.
getTokens
getTokens
, as an alternative to getTokensAndNFTs
, 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.Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Success
The response is of type object
.