getBlockHeaders: Block Headers

Description Usage Arguments Value Examples

View source: R/getBlockHeaders.R

Description

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

Usage

1
2
getBlockHeaders(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.

parallel
rpc_address,

The address of the RPC API.

Value

data.frame Block header data of requested blocks.

Examples

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

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