Description Usage Arguments Value Examples
View source: R/get_address_balances.R
Get Token Address Balances
1 | get_address_balances(address, api_key, chain_id = "1", ...)
|
address |
character. The wallet address. |
api_key |
The user's public API key. To generate it, you need an account at Covalent HQ. |
chain_id |
Chain ID of the Blockchain being queried. Supports "137" for Matic, defaults to "1" for Ethereum Mainnet. |
... |
Additional arguments to pass to the request. For more information on available parameters see Covalent HQ API. |
Returns a data.frame with all ERC20 and NFT token balances along with their current spot prices.
1 2 3 4 5 6 7 | ## Not run:
address <- "0xe6a7a1d47ff21b6321162aea7c6cb457d5476bca"
get_address_balances(address, MY_API_KEY)
get_address_balances(address, MY_API_KEY, "quote-currency" = "eth")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.