- Flowee the Hub/
- Service API overview
- Service/Blockchain
- Service/Live Transactions
- Service/Mining
- Service/Util
- Service/RegTest
- Service/Hub Control
- Service/Indexer
- Service/AddressMonitor
- Service/TransactionMonitor
- Service/BlockNotification
- Service/Double Spend
- Service/System
- Protocol Spec
- Example Message
Flowee the Hub — API documentation
Service/Mining
Mining Service
The process of building new blocks for the Bitcoin Cash chain is called mining and that requires external software and hardware to both build a block-template as well as solve the hashing puzzle.
After that has been completed the block can be submitted using this service, though.
The service ID for this service is 5
.
Messages
SubmitBlock
This message is simply a light wrapper around the actual block data.
The reply is either SubmitBlockReply when the block has successfully been added, or an error message is sent by the API-service otherwise.
Only blocks that correct extend the Hubs tip will give a positive response. Blocks that are successfully mined will be broadcast to peers.
Hub / Mining. sId=5 mId=0 | ||
---|---|---|
BlockData: 1 | bytearray | The full block data. |
SubmitBlockReply
We return the hash of the block that successfully got submitted.
Hub / Mining. sId=5 mId=1 | ||
---|---|---|
BlockHash: 5 | bytearray | 32-byte blockhash of the new block. |