Watch Module
Spec

Watch Module

AnyChainTx

Represents a transaction from any supported blockchain.

FieldTypeLabelDescription
cardanoutxorpc.v1alpha.cardano.TxA Cardano transaction.

AnyChainTxPattern

Represents a tx pattern from any supported blockchain.

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

BlockRef

Represents a reference to a specific block

FieldTypeLabelDescription
indexuint64Height or slot number (depending on the blockchain)
hashbytesHash of the content of the block

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.

FieldTypeLabelDescription
applyAnyChainTxApply this transaction.
undoAnyChainTxUndo this transaction.

WatchService

Service definition for watching transactions based on predicates.

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