File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
cardano-rpc/proto/utxorpc/v1alpha/submit Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ syntax = "proto3" ;
2+
3+ package utxorpc.v1alpha.submit ;
4+
5+ // Represents a transaction from any supported blockchain.
6+ message AnyChainTx {
7+ oneof type {
8+ bytes raw = 1 ; // Raw transaction data.
9+ }
10+ }
11+
12+ // Request to submit transactions to the blockchain.
13+ message SubmitTxRequest {
14+ repeated AnyChainTx tx = 1 ; // List of transactions to submit.
15+ }
16+
17+ // TODO u5c: new type
18+ message TxSubmitResult {
19+ oneof result {
20+ bytes ref = 1 ; // Transaction references.
21+ string error_message = 2 ; // The error message
22+ }
23+ }
24+
25+ // Response containing references to the submitted transactions.
26+ // TODO u5c: changed type
27+ message SubmitTxResponse {
28+ repeated TxSubmitResult results = 1 ; // List of either transaction references or error messages.
29+ }
30+
31+ // Service definition for submitting transactions and checking their status.
32+ service SubmitService {
33+ rpc SubmitTx (SubmitTxRequest ) returns (SubmitTxResponse ); // Submit transactions to the blockchain.
34+ }
You can’t perform that action at this time.
0 commit comments