Blockchain Publisher
The Blockchain publisher is a component, which is responsible to push transaction to the blockchain and track the status and finality. This component gets the data for transactions and reports from the accounting core, converts them in the respective format and publishes it as efficient as possible.
It is possible to have multiple publisher, if there is the need to publish to different data sinks. The first implemented publisher is for the Cardano L1.
Communication with Other Modules
The blockchain publisher doesn’t offer a REST API, but communicates with the Accounting Core module through events.
The Blockchain Publisher listens to the following events:
- TransactionLedgerUpdateCommand: This event is emitted by the Accounting Core when transactions are ready to be published. It contains all necessary information for the publisher to process and publish the transactions on the blockchain.
- ReportLedgerUpdateCommand: This event is emitted by the Accounting Core when financial reports are ready to be published. It contains all necessary information for the publisher to process and publish the reports on the blockchain.
The Blockchain Publisher emits the following events:
- TxsLedgerUpdatedEvent: This event is emitted when the transaction publishing status is updated, indicating that new transactions have been successfully published on the blockchain or the finality status changed.
- ReportsLedgerUpdatedEvent: This event is emitted when the reports publishing status is updated, indicating that new financial reports have been successfully published on the blockchain or the finality status changed.
Last updated on