curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=1 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getTransactionByHash",
"params": [
"0xbfb3bb785c60ee4f93aa6e506f6f5d5fc5173301f537d856cac59d91e7a0ce09"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"hash": "0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b",
"nonce": "0x0",
"blockHash": "0xbeab0aa2411b7ab17f30a99d3cb9c6ef2fc5426d6ad6fd9e2a26a6aed1d1055b",
"blockNumber": "0x15df",
"transactionIndex": "0x1",
"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1",
"to": "0x853f43d8a49eeb85d32cf465507dd71d507100c1",
"value": "0x7f110",
"__truncated": true
}
}
EVM
eth_getTransactionByHash
Returns the information about a transaction requested by transaction hash.
POST
/
uni
/
v1
/
json-rpc
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=1 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getTransactionByHash",
"params": [
"0xbfb3bb785c60ee4f93aa6e506f6f5d5fc5173301f537d856cac59d91e7a0ce09"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"hash": "0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b",
"nonce": "0x0",
"blockHash": "0xbeab0aa2411b7ab17f30a99d3cb9c6ef2fc5426d6ad6fd9e2a26a6aed1d1055b",
"blockNumber": "0x15df",
"transactionIndex": "0x1",
"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1",
"to": "0x853f43d8a49eeb85d32cf465507dd71d507100c1",
"value": "0x7f110",
"__truncated": true
}
}
Parameters
string
default:"1"
required
Unique identifier for a blockchain network.
number
default:1
required
Request identifier used to match responses.
string
default:"2.0"
required
JSON-RPC version.
string
default:"eth_getTransactionByHash"
required
JSON-RPC method name.
object
required
Parameters for eth_getTransactionByHash: [transactionHash].Positional parameters for
eth_getTransactionByHash:params[0]: 32 Bytes - Hash of the transaction.
Returns
oneOf
Transaction response object. Can be a legacy transaction (pre-EIP-2718) or an AccessList transaction (EIP-2930).
Show variants
Show variants
object
Legacy transaction (pre-EIP-2718).
Show properties
Show properties
string
32 Bytes - hash of the transaction.
integer
Quantity - (optional) Integer of a nonce. This allows you to overwrite your own pending transactions that use the same nonce.
string
32 Bytes - hash of the block where this transaction was included. Null when pending.
oneOf
integer
The transaction’s index position in the block. Null when pending.
string
20 Bytes - The address the transaction is sent from.
string
20 Bytes - The address the transaction is directed to. (Optional when creating new contract)
integer
Quantity - (optional) Integer of the value sent with this transaction.
integer
Quantity - (optional) Integer of the gas price used for each paid gas.
integer
Quantity - (optional) Integer of the gas provided for the transaction execution. (eth_call consumes zero gas)
string
The data sent along with the transaction.
integer
The standardised V field of the signature.
integer
The standardised V field of the signature (0 or 1). Only applicable to legacy transactions.
integer
The R field of the signature.
string
Raw transaction data.
string
Public key of the signer.
integer
The chain id of the transaction, if any.
string
Creates contract hash.
allOf
Legacy transaction (pre-EIP-2718).
Show variants
Show variants
object
Legacy transaction (pre-EIP-2718).
object
AccessList transaction (EIP-2930). Extends LegacyTransaction but omits standardV.
Show properties
Show properties
string
Transaction type (EIP-2930). Fixed value “0x1” for accessList transactions.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=1 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getTransactionByHash",
"params": [
"0xbfb3bb785c60ee4f93aa6e506f6f5d5fc5173301f537d856cac59d91e7a0ce09"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"hash": "0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b",
"nonce": "0x0",
"blockHash": "0xbeab0aa2411b7ab17f30a99d3cb9c6ef2fc5426d6ad6fd9e2a26a6aed1d1055b",
"blockNumber": "0x15df",
"transactionIndex": "0x1",
"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1",
"to": "0x853f43d8a49eeb85d32cf465507dd71d507100c1",
"value": "0x7f110",
"__truncated": true
}
}
Was this page helpful?
⌘I