mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-02 11:43:40 +02:00
Adding docs/messages.md
This commit is contained in:
parent
ddd5d67901
commit
1d350fc5f1
1 changed files with 34 additions and 0 deletions
34
docs/messages.md
Normal file
34
docs/messages.md
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
# Messages
|
||||||
|
|
||||||
|
This document describes the different messages that are sent
|
||||||
|
|
||||||
|
## Encoding
|
||||||
|
|
||||||
|
All messages are encoded in `json` format
|
||||||
|
|
||||||
|
## Types
|
||||||
|
|
||||||
|
### HearthBeat
|
||||||
|
|
||||||
|
Heartbeat messages are posted to the hearthbeat channel periodically.
|
||||||
|
|
||||||
|
| Field | Datatype | Description |
|
||||||
|
| -------------------------- | -------- | ------------------------------------------- |
|
||||||
|
| blocknum | int | Current block number |
|
||||||
|
| head_blocknum | int | Head block number |
|
||||||
|
| last_irreversible_blocknum | int | block number of the last irreversible block |
|
||||||
|
|
||||||
|
### Transaction
|
||||||
|
|
||||||
|
|
||||||
|
### ActionTrace
|
||||||
|
|
||||||
|
| Field | Datatype | Description |
|
||||||
|
| -------- | -------- | ----------------------------------------------------------------- |
|
||||||
|
| tx_id | string | Transaction ID |
|
||||||
|
| blocknum | int | Block number where this action trace (and transaction) belongs to |
|
||||||
|
| receiver | string | Receiver account |
|
||||||
|
| contract | string | Contract account |
|
||||||
|
| action | string | What action was executed on the contract |
|
||||||
|
| data | any | Contract specific data (decoded using the contracts abi) |
|
||||||
|
| hex_data | string | Contract specific data (undecoded hex) |
|
||||||
Loading…
Add table
Add a link
Reference in a new issue