getBlockTransactions: Block Transaction Data

Description Usage Arguments Value Examples

View source: R/getBlockTransactions.R

Description

Queries the blockchain and returns a data.frame of transactions for either a given number of blocks or a specified block range of blocks.

Usage

1
2
3
getBlockTransactions(n_blocks = NULL, start_block = NULL,
  end_block = NULL, parallel = FALSE,
  rpc_address = "http://localhost:8545")

Arguments

n_blocks

numeric, Number of blocks to extract back from the latest block.

start_block

numeric, Starting block number for extraction.

end_block

numeric, Ending block for extraction, inclusive.

rpc_address

character, The address of the RPC API.

Value

data.frame Table combining the block data and transaction data returned by eth_getBlockByNumber and the transaction table contained within it.

Examples

1
2
getBlockTransactions(100)
getBlockTransactions(start_block = 951460, end_block = 951560)

BSDStudios/ethr documentation built on May 5, 2019, 10:26 a.m.