L0vdL0vd

eth_getRawTransactionByHash

Returns a transaction as raw signed bytes (RLP or typed envelope), ready to decode or rebroadcast.

归档 · 可查询任意历史区块

curl https://eth.l0vdinfra.com/YOUR_KEY \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":1,"method":"eth_getRawTransactionByHash","params":["0xbb62ecfc053ce6aa2f12dd09261e27e7c06b46dd015c67e28d5f7200bd6251ac"]}'

响应示例

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xf86b0185104c533c00825208940016c0d0343e8f2c3a7b6a51606b84b1545ec6068733d16ab24750008025a096a1dd0c9729d6340a778a1d5c405f02e25fb2c6eae9f90c2ef30fc7127e50a3a03dd747997bd8aa478bbdf2e242ae481995b061be95bf51…"
}

示例中较长的数组和十六进制字符串已截断。

参数与您的端点

参数

transactionHashstring必填
32-byte transaction hash.

返回值

string Raw signed transaction, hex encoded.

适用场景

Get a transaction's exact signed bytes: archive it, verify the signature yourself, or rebroadcast it elsewhere.

如何解读结果

Hex of the signed envelope. Decode with viem parseTransaction, ethers Transaction.from or rlp.decode in Python.

提示

  • For readable fields use eth_getTransactionByHash; this method is for the raw form.

相关方法