get_address_balances: Get Token Address Balances

Description Usage Arguments Value Examples

View source: R/get_address_balances.R

Description

Get Token Address Balances

Usage

1
get_address_balances(address, api_key, chain_id = "1", ...)

Arguments

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.

Value

Returns a data.frame with all ERC20 and NFT token balances along with their current spot prices.

Examples

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)

santiagogualchi/cvlnt documentation built on Jan. 22, 2021, 2:34 p.m.