2019-03-12 13:49:11 +00:00
|
|
|
# hsd-cli
|
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
> The command-line REST tool for the Handshake blockchain.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://handshake.org>.
|
2019-03-12 13:49:11 +00:00
|
|
|
|
|
|
|
- Retrieve information about the current server:
|
|
|
|
|
|
|
|
`hsd-cli info`
|
|
|
|
|
|
|
|
- Broadcast a local transaction:
|
|
|
|
|
|
|
|
`hsd-cli broadcast {{transaction_hex}}`
|
|
|
|
|
|
|
|
- Retrieve a mempool snapshot:
|
|
|
|
|
|
|
|
`hsd-cli mempool`
|
|
|
|
|
|
|
|
- View a transaction by address or hash:
|
|
|
|
|
|
|
|
`hsd-cli tx {{address_or_hash}}`
|
|
|
|
|
|
|
|
- View a coin by its hash index or address:
|
|
|
|
|
|
|
|
`hsd-cli coin {{hash_index_or_address}}`
|
|
|
|
|
|
|
|
- View a block by height or hash:
|
|
|
|
|
|
|
|
`hsd-cli block {{height_or_hash}}`
|
|
|
|
|
|
|
|
- Reset the chain to the specified block:
|
|
|
|
|
|
|
|
`hsd-cli reset {{height_or_hash}}`
|
|
|
|
|
|
|
|
- Execute an RPC command:
|
|
|
|
|
|
|
|
`hsd-cli rpc {{command}} {{args}}`
|