Запрос
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…"
}
Длинные массивы и hex-строки в примере сокращены.
Параметры и свой эндпоинт
Параметры
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.
Связанные методы