-
Notifications
You must be signed in to change notification settings - Fork 0
Home
sjl623 edited this page Nov 21, 2019
·
3 revisions
Protocol: websocket(Reference)
Serialization: fastjson(Reference)
Connect a node(full node or light node)
- versionID
- success
0:connect success
1:connect failed
Disconnect from a node.
none
- success
0: success
1: failed
Check whether a node is alive.
none
- success
0: success
To receive the chain head info that sent by other node initiatively.(For example,when a miner pack a block successful,he would call the method to announce to other node).
- content: Chain Head's Json format string.
- success
0: success
1: rejected
When a node enter the network first time,it could call the method the get the full chain head now.
- beginID
The strat of chain head(start from 0)
- status
0: success
1: failed - content:Chain Head's Json format string.
Call the interface to get block detail.
- blockID
- status
0: success
1: failed - content: Block detail's Json format string.Included each entry in the block.
Call the interface to broadcast new transactions.
- entry Included the new entries