diff --git a/etherjar-rpc-api/src/main/java/io/emeraldpay/etherjar/rpc/EthCommands.java b/etherjar-rpc-api/src/main/java/io/emeraldpay/etherjar/rpc/EthCommands.java index d9734ae..864ead0 100644 --- a/etherjar-rpc-api/src/main/java/io/emeraldpay/etherjar/rpc/EthCommands.java +++ b/etherjar-rpc-api/src/main/java/io/emeraldpay/etherjar/rpc/EthCommands.java @@ -141,6 +141,16 @@ public RpcCall 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 getRawTransaction(TransactionId hash) { + return RpcCall.create("eth_getRawTransactionByHash", String.class, hash.toHex()) + .converted(HexData.class, HexData::from); + } + /** * * @param hash transaction hash