MCPcopy Create free account
hub / github.com/0xMiden/node / decode

Method decode

crates/rpc/src/server/api/submit_proven_tx_batch.rs:28–34  ·  view source on GitHub ↗
(request: proto::transaction::TransactionBatch)

Source from the content-addressed store, hash-verified

26 type Output = proto::blockchain::BlockNumber;
27
28 fn decode(request: proto::transaction::TransactionBatch) -> tonic::Result<Self::Input> {
29 Ok(SubmitProvenTxBatchInput {
30 request,
31 is_authorized_network_tx: false,
32 original_accept_header: None,
33 })
34 }
35
36 fn encode(output: Self::Output) -> tonic::Result<proto::blockchain::BlockNumber> {
37 Ok(output)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected