covalent_balances {cryptotrackr}R Documentation

covalent_balances

Description

covalent_balances

Usage

covalent_balances(
  api_key,
  chain_id,
  address,
  csv = FALSE,
  timeout_seconds = 60
)

Arguments

api_key

your Covalent API key

chain_id

the string id of the chain for which you wish to check balances.

address

the address you for which wish to check balances.

csv

'TRUE' will return csv data parsed as a dataframe while 'FALSE' will return json data. The default value is 'FALSE'.

timeout_seconds

seconds until the query times out. Default is 60.

Value

returns either a list or a dataframe with account balances

Examples

## Not run: 
api_key <- "..."
balances <- covalent_balances(api_key, "1", "trevorfrench.eth", csv = FALSE)
## End(Not run)

[Package cryptotrackr version 1.3.3 Index]