Submit Module
Spec

Submit Module Spec

AnyChainEval

Report containing the result of evaluating a particular transaction

FieldTypeLabelDescription
cardanoutxorpc.v1alpha.cardano.TxEvalA Cardano tx evaluation report.

AnyChainTx

Represents a transaction from any supported blockchain.

FieldTypeLabelDescription
rawbytesRaw transaction data.

AnyChainTxPattern

Represents a tx pattern from any supported blockchain.

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

EvalTxRequest

Request to evaluate transactions without submitting.

FieldTypeLabelDescription
txAnyChainTxrepeatedList of transactions to evaluate.

EvalTxResponse

Response containing the reports form the transaction evaluation.

FieldTypeLabelDescription
reportAnyChainEvalrepeated

ReadMempoolRequest

Request to check the status of submitted transactions.

FieldTypeLabelDescription
txTxInMempoolrepeatedList of transaction currently on the mempool.

ReadMempoolResponse

Response containing the stage of the submitted transactions.

FieldTypeLabelDescription
stageStagerepeatedList of stages corresponding to the transaction references.

SubmitTxRequest

Request to submit transactions to the blockchain.

FieldTypeLabelDescription
txAnyChainTxrepeatedList of transactions to submit.

SubmitTxResponse

Response containing references to the submitted transactions.

FieldTypeLabelDescription
refbytesrepeatedList of transaction references.

TxInMempool

FieldTypeLabelDescription
txAnyChainTxThe contents of the tx
stageStageThe current stage of the tx

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.

WaitForTxRequest

Request to wait for transactions to reach a certain stage.

FieldTypeLabelDescription
refbytesrepeatedList of transaction references to wait for.

WaitForTxResponse

Response containing the transaction reference and stage once it has been reached.

FieldTypeLabelDescription
refbytesTransaction reference.
stageStageStage reached by the transaction.

WatchMempoolRequest

Request to watch changes of specific mempool txs.

FieldTypeLabelDescription
predicateTxPredicateA predicate to filter transactions by.
field_maskgoogle.protobuf.FieldMaskField mask to selectively return fields.

WatchMempoolResponse

Response that represents a change in a mempool tx.

FieldTypeLabelDescription
txTxInMempoolThe content and stage of the tx that has changed

Stage

Enum representing the various stages of a transaction's lifecycle.

NameNumberDescription
STAGE_UNSPECIFIED0Unspecified stage.
STAGE_ACKNOWLEDGED1Transaction has been acknowledged by the node.
STAGE_MEMPOOL2Transaction is in the mempool.
STAGE_NETWORK3Transaction has been propagated across the network.
STAGE_CONFIRMED4Transaction has been confirmed on the blockchain.

SubmitService

Service definition for submitting transactions and checking their status.

Method NameRequest TypeResponse TypeDescription
EvalTxEvalTxRequestEvalTxResponseEvaluates a transaction without submitting it.
SubmitTxSubmitTxRequestSubmitTxResponseSubmit transactions to the blockchain.
WaitForTxWaitForTxRequestWaitForTxResponse streamWait for transactions to reach a certain stage and stream the updates.
ReadMempoolReadMempoolRequestReadMempoolResponseReturns a point-in-time snapshot of the mempool.
WatchMempoolWatchMempoolRequestWatchMempoolResponse streamStream transactions from the mempool matching the specified predicates.