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_getTransactionReceipt",
"params": [
"0x444172bef57ad978655171a8af2cfd89baa02a97fcb773067aef7794d6913374"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x67c0303244ae4beeec329e0c66198e8db8938a94d15a366c7514626528abfc8c",
"blockNumber": "0x6914b0",
"contractAddress": "0x471a8bf3fd0dfbe20658a97155388cec674190bf",
"from": "0xc931d93e97ab07fe42d923478ba2465f2",
"to": null,
"cumulativeGasUsed": "0x158e33",
"gasUsed": "0xba2e6",
"logs": [],
"__truncated": true
}
}
EVM
eth_getTransactionReceipt
Returns the receipt of a transaction 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_getTransactionReceipt",
"params": [
"0x444172bef57ad978655171a8af2cfd89baa02a97fcb773067aef7794d6913374"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x67c0303244ae4beeec329e0c66198e8db8938a94d15a366c7514626528abfc8c",
"blockNumber": "0x6914b0",
"contractAddress": "0x471a8bf3fd0dfbe20658a97155388cec674190bf",
"from": "0xc931d93e97ab07fe42d923478ba2465f2",
"to": null,
"cumulativeGasUsed": "0x158e33",
"gasUsed": "0xba2e6",
"logs": [],
"__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_getTransactionReceipt"
required
JSON-RPC method name.
object
required
Parameters for eth_getTransactionByHash: [transactionHash].Positional parameters for
eth_getTransactionReceipt:params[0]: 32 Bytes - Hash of the transaction.
Returns
oneOf
Receipt object returned after transaction execution. Can be a legacy receipt (pre-EIP-2718) or AccessList receipt (EIP-2930).
Show variants
Show variants
object
Legacy transaction receipt (pre-EIP-2718). Includes basic execution result and log data.
Show properties
Show properties
string
32 Bytes - hash of the block where this transaction was included. Null when pending.
oneOf
string
20 Bytes - The contract address created, if the transaction was a contract creation. Null otherwise.
integer
The total amount of gas used when this transaction was executed in the block.
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
The amount of gas used by this specific transaction alone.
array
Array of log objects generated by this transaction. Each log contains indexed topics and data.
string
256 Bytes - Bloom filter for logs/events generated during transaction execution.
string
32 Bytes - Merkle root of the state trie after the transaction (optional after Byzantium).
string
0x0 indicates failure, 0x1 indicates success. Set for blocks after Byzantium, null before.
string
32 Bytes - Hash of the transaction.
integer
The transaction’s index position in the block. Null when pending.
allOf
Legacy transaction receipt (pre-EIP-2718). Includes basic execution result and log data.
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_getTransactionReceipt",
"params": [
"0x444172bef57ad978655171a8af2cfd89baa02a97fcb773067aef7794d6913374"
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0x67c0303244ae4beeec329e0c66198e8db8938a94d15a366c7514626528abfc8c",
"blockNumber": "0x6914b0",
"contractAddress": "0x471a8bf3fd0dfbe20658a97155388cec674190bf",
"from": "0xc931d93e97ab07fe42d923478ba2465f2",
"to": null,
"cumulativeGasUsed": "0x158e33",
"gasUsed": "0xba2e6",
"logs": [],
"__truncated": true
}
}
Was this page helpful?
⌘I