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

Method decode

crates/rpc/src/server/api/get_network_note_status.rs:21–23  ·  view source on GitHub ↗
(request: proto::note::NoteId)

Source from the content-addressed store, hash-verified

19 type Output = proto::rpc::GetNetworkNoteStatusResponse;
20
21 fn decode(request: proto::note::NoteId) -> tonic::Result<Self::Input> {
22 Ok(GetNetworkNoteStatusInput { request, original_accept_header: None })
23 }
24
25 fn encode(output: Self::Output) -> tonic::Result<proto::rpc::GetNetworkNoteStatusResponse> {
26 Ok(output)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected