Watch Module
Spec

Watch Module Spec

This reference covers v1beta, generated from spec v0.19.2.

AnyChainBlock

FieldTypeLabelDescription
native_bytesbytesOriginal bytes as defined by the chain
cardanoutxorpc.v1beta.cardano.BlockA parsed Cardano block.

AnyChainTx

Represents a transaction from any supported blockchain.

FieldTypeLabelDescription
cardanoutxorpc.v1beta.cardano.TxA Cardano transaction.
blockAnyChainBlockBlock containing the transaction

AnyChainTxPattern

Represents a tx pattern from any supported blockchain.

FieldTypeLabelDescription
cardanoutxorpc.v1beta.cardano.TxPatternA Cardano tx pattern.

BlockRef

Represents a reference to a specific block by a chosen combination of fields

FieldTypeLabelDescription
slotuint64Height or slot number (depending on the blockchain)
hashbytesHash of the content of the block
heightuint64Block height

TxPredicate

Represents a simple tx predicate that can composed to create more complex ones

FieldTypeLabelDescription
matchAnyChainTxPatternPredicate is true if tx exhibits pattern.
notTxPredicaterepeatedPredicate is true if tx doesn't exhibit pattern.
all_ofTxPredicaterepeatedPredicate is true if tx exhibits all of the patterns.
any_ofTxPredicaterepeatedPredicate is true if tx exhibits any of the patterns.

WatchTxRequest

Request to watch transactions from the chain based on a set of predicates.

FieldTypeLabelDescription
predicateTxPredicatePredicate to filter transactions by.
field_maskgoogle.protobuf.FieldMaskField mask to selectively return fields.
intersectBlockRefrepeatedList of block references to find the intersection.

WatchTxResponse

Response containing the matching chain transactions or block progress signals.

FieldTypeLabelDescription
applyAnyChainTxApply this transaction.
undoAnyChainTxUndo this transaction.
idleBlockRefNo-match signal for a block.

WatchService

Service definition for watching transactions based on predicates.

Method NameRequest TypeResponse TypeDescription
WatchTxWatchTxRequestWatchTxResponse streamStream transactions from the chain matching the specified predicates.