snippetbashTip
hsd-cli — The REST tool for the Handshake blockchain. More information: <https://handshake.org/>.
Viewed 0 times
thehsd-clicommandclitoolforrest
Problem
How to use the
hsd-cli command: The REST tool for the Handshake blockchain. More information: <https://handshake.org/>.Solution
hsd-cli — The REST tool for the Handshake blockchain. More information: <https://handshake.org/>.Retrieve information about the current server:
hsd-cli infoBroadcast a local transaction:
hsd-cli broadcast {{transaction_hex}}Retrieve a mempool snapshot:
hsd-cli mempoolView 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}}Code Snippets
Retrieve information about the current server
hsd-cli infoBroadcast a local transaction
hsd-cli broadcast {{transaction_hex}}Retrieve a mempool snapshot
hsd-cli mempoolView 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}}Context
tldr-pages: common/hsd-cli
Revisions (0)
No revisions yet.