Learn R Programming

cryptotrackr (version 1.3.3)

etherscan_account_balance: etherscan_account_balance

Description

etherscan_account_balance

Usage

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

Value

returns the balance for the specified address

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.

Examples

Run this code
if (FALSE) {
address <- "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae"
api_key <- "..."
account_balance <- etherscan_account_balance(address, api_key)}

Run the code above in your browser using DataLab