eth_getBlock: Returns information about a specified block.

Description Usage Arguments Value Examples

View source: R/rpc-eth.R

Description

Combines functionality from eth_getBlockByHash() and eth_getBlockByNumber().

Usage

1
eth_getBlock(hash = NULL, number = "latest", full = TRUE)

Arguments

hash

Hash of a block.

number

An integer block number (as a hexidecimal string) or one of "earliest", "latest" or "pending".

full

Whether or not to return full transaction objects.

Value

List.

Examples

1
2
3
4
5
6
7
## Not run: 
eth_getBlock()
eth_getBlock("0xb6d656ead4c3d4b1aa24d6b4d3d4cde8c090794e597258993512d650f088fcba")
eth_getBlock(number = "0x4720FF")
eth_getBlock(number = "0x49a8ea") # A block with two uncles.

## End(Not run)

DataWookie/ether documentation built on Sept. 22, 2018, 9:36 p.m.