Learn R Programming

cryptotrackr (version 1.3.3)

etherscan_api_call: etherscan_api_call

Description

etherscan_api_call

Usage

etherscan_api_call(method, query, timeout_seconds = 60)

Value

returns data from your Etherscan API call

Arguments

method

"GET" or "POST"

query

your query parameters

timeout_seconds

seconds until the query times out. Default is 60.

Examples

Run this code
if (FALSE) {
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)}

Run the code above in your browser using DataLab