etherscan_account_balance: etherscan_account_balance

View source: R/etherscan.R

etherscan_account_balanceR Documentation

etherscan_account_balance

Description

etherscan_account_balance

Usage

etherscan_account_balance(
  address,
  api_key,
  tag = "latest",
  timeout_seconds = 60
)

Arguments

address

the address for which you wish to retrieve the balance.

api_key

your Etherscan API key

tag

pre-defined block parameter, either earliest, pending or latest. Default is latest.

timeout_seconds

seconds until the query times out. Default is 60.

Value

returns the balance for the specified address

Examples

## Not run: 
address <- "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae"
api_key <- "..."
account_balance <- etherscan_account_balance(address, api_key)
## End(Not run)

cryptotrackr documentation built on June 22, 2024, 10:39 a.m.