Skip to content

Commit

Permalink
Merge pull request #77 from emeraldpay/fix/missing-get-raw-tx-command
Browse files Browse the repository at this point in the history
problem: eth_getRawTransactionByHash is missing
  • Loading branch information
splix committed Apr 11, 2024
2 parents 3228992 + 242185a commit 75affa4
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,16 @@ public RpcCall<TransactionJson, TransactionJson> getTransaction(long block, long
return RpcCall.create("eth_getTransactionByBlockNumberAndIndex", TransactionJson.class, HexQuantity.from(block).toHex(), HexQuantity.from(index).toHex());
}

/**
*
* @param hash transaction hash
* @return raw transaction data
*/
public RpcCall<String, HexData> getRawTransaction(TransactionId hash) {
return RpcCall.create("eth_getRawTransactionByHash", String.class, hash.toHex())
.converted(HexData.class, HexData::from);
}

/**
*
* @param hash transaction hash
Expand Down

0 comments on commit 75affa4

Please sign in to comment.