Skip to Content

Hedera action reference

This page is generated from the plugin registry. Do not edit it by hand.

Verify messages on Hedera Consensus Service via the public mirror node

For guidance and examples see the Hedera guide.

Set actionType in a node’s config to the action type shown under each heading. See the workflow definition page for the node format.

ActionAction type
Verify HCS Messagehedera/verify-message

Verify HCS Message

Action type: hedera/verify-message. Connection: not required.

Read a message from an HCS topic via the public mirror node and check it against an expected payload

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
topicIdstringYesTopic ID. The HCS topic to read, e.g. 0.0.99999999.
sequenceNumberstringYesSequence Number. The topic sequence number to verify.
expectedMessagestringNoExpected Message. When set, verification succeeds only if the anchored payload matches (surrounding whitespace is ignored on both sides). Leave empty to just read the payload.
expectedSubmitterstringNoExpected Submitter. Hedera account id that must have submitted the message (e.g. 0.0.12345). Set this when gating a payment on verified: true, on a topic without a submit key anyone can write matching bytes, so the submitter is what proves authorship. Leave empty to skip the submitter check (it is still reported as payerAccountId).
networkstringYestestnettestnet, mainnetNetwork. Which Hedera network’s public mirror node to query.

Outputs

OutputDescription
successWhether the verification query completed
foundWhether the mirror holds a message at this sequence (empty payloads count as found)
verifiedWhether the payload matches the expected message AND, when an expected submitter is configured, the message was submitted by that account (surrounding whitespace ignored; only asserted when an expected message is provided)
messageThe decoded anchored payload
consensusTimestampNetwork-assigned consensus timestamp
payerAccountIdThe account that submitted this message, as recorded by the mirror, always exposed, so a workflow can gate on it downstream even without an expected submitter configured
sequenceNumberThe verified sequence number
errorError message if failed