Expand description
Objects for JSON serialization and deserialization in message bodies of the ZMQ pub/sub interface. Handles JSON for the following subscriptions:
json-full-txpool_add
(Vec<TxPoolAdd>
)json-minimal-txpool_add
(Vec<TxPoolAddMin>
)json-full-chain_main
(Vec<ChainMain>
)json-minimal-chain_main
(ChainMainMin
)json-full-miner_data
(MinerData
)
Structsยง
- Bulletproof
Plus - Bulletproofs+ data used to validate the legitimacy of a Ring CT transaction.
- Chain
Main - ZMQ
json-full-chain_main
subscriber messages contain an array ofChainMain
JSON objects. EachChainMain
object represents a new block. Push messages only contain more than one block if a re-org occurred. - Chain
Main Min - ZMQ
json-minimal-chain_main
subscriber messages contain a singleChainMainMin
JSON object. Unlike the full version, only the topmost block is sent in the case of a re-org. - Clsag
- CLSAG signature fields
- Encrypted
- Holds the encrypted amount of a non-coinbase transaction output.
- Gen
- Additional namespace layer around the block height in
ChainMain
; gen is another name for a coinbase transaction - Miner
Data - ZMQ
json-full-miner_data
subscriber messages contain a singleMinerData
object that provides the necessary data to create a custom block template. There is no min version of this object. - Miner
Input - Holds the block height of the coinbase transaction.
- MinerTx
- Part of the new block information in
ChainMain
- Output
- Transaction output data used by both
TxPoolAdd
andMinerTx
- Pool
Input - Holds a single input for the
TxPoolAdd
inputs
array. - Pool
Ring Ct - Ring CT information used inside
TxPoolAdd
- Prunable
- Data needed to validate a transaction that can optionally be pruned from older blocks.
- ToKey
- Same as
PoolInput
(adds an extra JSON name layer) - ToTagged
Key - Holds the public key of an output destination with its view tag.
- TxBacklog
- Holds a transaction entry in the
MinerData
tx_backlog
field. - TxPool
Add - ZMQ
json-full-txpool_add
packets contain an array ofTxPoolAdd
. - TxPool
AddMin - ZMQ
json-minimal-txpool_add
subscriber messages contain an array ofTxPoolAddMin
JSON objects. SeeTxPoolAdd
for information on which transactions are published to subscribers.