Quickstart
Concepts
- What is Smart Wallet?
- Features
- Usage Details
- Base Gasless Campaign
Guides
Technical Reference
- Coinbase Wallet SDK
- Coinbase Wallet SDK
- Overview
- eth_accounts
- eth_blockNumber
- eth_chainId
- eth_coinbase
- eth_estimateGas
- eth_feeHistory
- eth_gasPrice
- eth_getBalance
- eth_getBlockByHash
- eth_getBlockByNumber
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_getCode
- eth_getLogs
- eth_getProof
- eth_getStorageAt
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getTransactionByHash
- eth_getTransactionCount
- eth_getTransactionReceipt
- eth_getUncleCountByBlockHash
- eth_getUncleCountByBlockNumber
- eth_requestAccounts
- eth_sendRawTransaction
- eth_sendTransaction
- eth_signTypedData_v4
- personal_sign
- wallet_addEthereumChain
- wallet_addSubAccount
- wallet_connect
- wallet_switchEthereumChain
- wallet_watchAsset
- web3_clientVersion
- Spend Permissions
- Sub Accounts Reference
- Profiles Reference
eth_getTransactionReceipt
Get the receipt of a transaction by transaction hash
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"params": [
"0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"
]
}
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"transactionHash": "0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238",
"transactionIndex": "0x1",
"blockHash": "0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b",
"blockNumber": "0xb",
"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1",
"to": "0x85h43d8a49eeb85d32cf465507dd71d507100c1",
"cumulativeGasUsed": "0x33bc",
"gasUsed": "0x4dc",
"contractAddress": null,
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "0x1"
}
}
Defined in the Ethereum JSON-RPC Specification
Returns the receipt of a transaction by transaction hash. Note that the receipt is not available for pending transactions.
Parameters
The hash of a transaction (32 bytes).
Returns
A transaction receipt object, or null when no receipt was found.
Hash of the transaction.
Integer of the transaction index position in the block.
Hash of the block where this transaction was in.
Block number where this transaction was in.
Address of the sender.
Address of the receiver. null when it’s a contract creation transaction.
The total amount of gas used when this transaction was executed in the block.
The amount of gas used by this specific transaction alone.
The contract address created, if the transaction was a contract creation, otherwise null.
Array of log objects, which this transaction generated.
Bloom filter for the logs of the transaction.
Either 1 (success) or 0 (failure).
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"params": [
"0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"
]
}
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"transactionHash": "0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238",
"transactionIndex": "0x1",
"blockHash": "0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b",
"blockNumber": "0xb",
"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1",
"to": "0x85h43d8a49eeb85d32cf465507dd71d507100c1",
"cumulativeGasUsed": "0x33bc",
"gasUsed": "0x4dc",
"contractAddress": null,
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "0x1"
}
}
Error Handling
Code | Message | Description |
---|---|---|
-32602 | Invalid transaction hash | The provided transaction hash is invalid |
4100 | Requested method not supported | The method is not supported by the wallet |
Transaction receipts are only available for mined transactions. Pending transactions will return null.
Was this page helpful?
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"params": [
"0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238"
]
}
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"transactionHash": "0xb903239f8543d04b5dc1ba6579132b143087c68db1b2168786408fcbce568238",
"transactionIndex": "0x1",
"blockHash": "0xc6ef2fc5426d6ad6fd9e2a26abeab0aa2411b7ab17f30a99d3cb96aed1d1055b",
"blockNumber": "0xb",
"from": "0x407d73d8a49eeb85d32cf465507dd71d507100c1",
"to": "0x85h43d8a49eeb85d32cf465507dd71d507100c1",
"cumulativeGasUsed": "0x33bc",
"gasUsed": "0x4dc",
"contractAddress": null,
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"status": "0x1"
}
}