curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43114 \
--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=43114 \
--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
Parameters for eth_getTransactionByHash: [transactionHash].Positional parameters for
eth_getTransactionReceipt:params[0]: 32 Bytes - Hash of the transaction.
Returns
Receipt object returned after transaction execution. Can be a legacy receipt (pre-EIP-2718) or AccessList receipt (EIP-2930).
Show variants
Show variants
Legacy transaction receipt (pre-EIP-2718). Includes basic execution result and log data.
Show properties
Show properties
20 Bytes - The contract address created, if the transaction was a contract creation. Null otherwise.
Array of log objects generated by this transaction. Each log contains indexed topics and data.
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=43114 \
--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?