etherscan_api_call {cryptotrackr}R Documentation

etherscan_api_call

Description

etherscan_api_call

Usage

etherscan_api_call(method, query, timeout_seconds = 60)

Arguments

method

"GET" or "POST"

query

your query parameters

timeout_seconds

seconds until the query times out. Default is 60.

Value

returns data from your Etherscan API call

Examples

## Not run: 
address <- "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae"
api_key <- "..."
tag <- "latest"
query_string <- list(
   module = 'account',
   action = 'balance',
   address = address,
   tag = tag,
   apikey = api_key
)

data <- etherscan_api_call('GET', query_string)
## End(Not run)

[Package cryptotrackr version 1.3.3 Index]