Learn R Programming

ether (version 0.1.6)

eth_getBlock: Returns information about a specified block.

Description

Combines functionality from eth_getBlockByHash() and eth_getBlockByNumber().

Usage

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

Run this code
# NOT RUN {
eth_getBlock()
eth_getBlock("0xb6d656ead4c3d4b1aa24d6b4d3d4cde8c090794e597258993512d650f088fcba")
eth_getBlock(number = "0x4720FF")
eth_getBlock(number = "0x49a8ea") # A block with two uncles.
# }

Run the code above in your browser using DataLab