Learn R Programming

cryptotrackr (version 1.3.3)

covalent_balances: covalent_balances

Description

covalent_balances

Usage

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

Value

returns either a list or a dataframe with account balances

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.

Examples

Run this code
if (FALSE) {
api_key <- "..."
balances <- covalent_balances(api_key, "1", "trevorfrench.eth", csv = FALSE)}

Run the code above in your browser using DataLab