1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00

Adding docs/messages.md

This commit is contained in:
Henrik Hautakoski 2022-11-29 15:08:57 +01:00
parent ddd5d67901
commit 1d350fc5f1

34
docs/messages.md Normal file
View 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) |