diff --git a/sequencer_rpc/src/process.rs b/sequencer_rpc/src/process.rs index 0068437..f8dc7da 100644 --- a/sequencer_rpc/src/process.rs +++ b/sequencer_rpc/src/process.rs @@ -163,6 +163,9 @@ impl JsonHandler { respond(helperstruct) } + + /// Returns the transaction corresponding to the given hash, if it exists in the blockchain. + /// The hash must be a valid hex string of the correct length. async fn process_get_transaction_by_hash(&self, request: Request) -> Result { let get_transaction_req = GetTransactionByHashRequest::parse(Some(request.params))?; let bytes: Vec = hex::decode(get_transaction_req.hash)