ion Developer Reference
The Developer Reference aims to provide technical details and API information to help you start building ion-based applications, but it is not a specification.
Remote Procedure Calls (RPCs)
ion Core provides a remote procedure call (RPC) interface for various administrative tasks, wallet operations, and queries about network and block chain data.
The getblockcount RPC returns the number of blocks in the local best block chain.
The number of blocks in the local best block chain. For a new node with only the hardcoded genesis block, this number will be 0.
The getblockhash RPC returns the header hash of a block at the given height in the local best block chain.Arguments
|The height of the block whose header hash should be returned. The height of the hardcoded genesis block is 0.|
The hash of the block at the requested height, encoded as hex in RPC byte order, or JSON null if an error occurred.
iond getblockhash 240886
The getdifficulty RPC.
The difficulty of creating a block with the same target threshold (nBits) as the highest-height block in the local best block chain. The number is a a multiple of the minimum difficulty.
The stop RPC safely shuts down the ion Core server.
The string "Ion server stopping”.
Ion server stopping