mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-05 23:03:06 +00:00
add docstrings
This commit is contained in:
parent
693aa0c9f7
commit
db5815ec09
@ -163,6 +163,9 @@ impl JsonHandler {
|
|||||||
|
|
||||||
respond(helperstruct)
|
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<Value, RpcErr> {
|
async fn process_get_transaction_by_hash(&self, request: Request) -> Result<Value, RpcErr> {
|
||||||
let get_transaction_req = GetTransactionByHashRequest::parse(Some(request.params))?;
|
let get_transaction_req = GetTransactionByHashRequest::parse(Some(request.params))?;
|
||||||
let bytes: Vec<u8> = hex::decode(get_transaction_req.hash)
|
let bytes: Vec<u8> = hex::decode(get_transaction_req.hash)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user