getBlockHeaderByHeight: getBlockHeaderByHeight

Description Usage Arguments Value Author(s) References Examples

Description

Similar to getBlockHeaderByHash, this method includes a block's height as an input parameter to retrieve basic information about the block.

Usage

1
2
getBlockHeaderByHeight(height, ip = getOption("monerod.ip", "127.0.0.1"),
  port = getOption("monerod.port", 18081))

Arguments

height

unsigned int; The block's height.

ip

daemon ip address

port

daemon port

Value

block_header - A structure containing block header information. See getLastBlockHeader.

Author(s)

Garrett See

References

https://getmonero.org/knowledge-base/developer-guides/daemon-rpc#getblockheaderbyheight

Examples

1
2
3
4
## Not run: 
getBlockHeaderByHeight(912345)

## End(Not run)

dv-trading/moneRo documentation built on May 5, 2019, 1:37 p.m.