get_tx: get_tx

Description Usage Arguments Details Value Warning

View source: R/get_tx.R

Description

Get details of one or more transactions by hash.

Usage

1
get_tx(tx, api_key)

Arguments

tx

A character vector of one or more transaction hashes (hexadecimal, 64 characters, with 0x prepended).

api_key

An Etherscan API key (see Details).

Details

get_tx uses the Etherscan API to source information about transactions to and from an Ethereum address. Register for an API key at the Etherscan Developer APIs page.

Value

A data.frame with one row per element of tx, with columns: blockHash, blockNumber, from, gas, gasPrice, hash, input, nonce, to, transactionIndex, value, v, r, s.

Warning

As per the Etherscan documentation, the Etherscan Ethereum Developer APIs are provided as a community service and without warranty, so please just use what you need and no more. They support both GET/POST requests and a rate limit of 5 requests/sec.


dapped/eth documentation built on Oct. 23, 2021, 4:42 a.m.