Skip to content

Commit 47f8b61

Browse files
committed
cardano-rpc | Add UTxO RPC: submit.proto - submitTx
1 parent 2e8dc19 commit 47f8b61

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
// Response containing references to the submitted transactions.
18+
message SubmitTxResponse {
19+
repeated bytes ref = 1; // List of transaction references.
20+
}
21+
22+
// Service definition for submitting transactions and checking their status.
23+
service SubmitService {
24+
rpc SubmitTx(SubmitTxRequest) returns (SubmitTxResponse); // Submit transactions to the blockchain.
25+
}

0 commit comments

Comments
 (0)