Skip to content

Latest commit

 

History

History
57 lines (34 loc) · 1.36 KB

REFERENCE.md

File metadata and controls

57 lines (34 loc) · 1.36 KB

Back to the main page

API Reference

Table of Contents

Layer 1 endpoints

getBestBlockHash

Returns best block hash (hash of the chaintip)

takes no arguments

Response
name type description
blockHash promise (string) hash of chaintip

getBestBlockHeight

Returns best block height (height of the chaintip)

takes no arguments

Response
name type description
height promise (string) height of chaintip

getBlockHash

Returns block hash for a given height.

Params
name type description
args.height number block height
Response
name type description
blockHash promise (string) promise containing a string of a block hash