Get transaction receipt
This operation retrieves the receipt of a specified transaction on a specified EVM-compatible chain, which records the execution result of the transaction, including its status, block information, gas consumption, and the event logs emitted during execution.
You need to specify the chain ID and the transaction hash. The chain ID can be retrieved by calling List enabled chains, and the transaction hash can be retrieved by calling Get transaction information.
The receipt is read from a blockchain node in real time and is returned as it is recorded on the chain. The event logs are returned in their raw form and are not filtered, so you need to decode them with the contract ABI yourself.
ETH (Ethereum mainnet) and SETH (Ethereum Sepolia testnet) only. Requests for any other chain are rejected.Authorizations
The API key. For more details, refer to API key.
In the API playground, enter your API secret, and your API key will be accordingly calculated.
Path Parameters
The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling List enabled chains.
This operation currently supports the following chains only:
ETH: Ethereum mainnet.SETH: Ethereum Sepolia testnet.
The transaction hash, which is the unique identifier of a transaction on the blockchain. You can retrieve the transaction hash of a transaction by calling Get transaction information.
You need to specify the hash with the 0x prefix.
Response
The information about a transaction receipt.
The information about a transaction receipt, which records the execution result of a transaction that has been included in a block.
All the numeric properties are returned as decimal values instead of the hexadecimal values used by the JSON-RPC interfaces of the chains. The properties that record on-chain amounts are returned as strings to avoid any precision loss.
The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling List enabled chains.
"ETH"
The transaction hash, returned with the 0x prefix.
"0x239861be9a4afe080c359b7fe4a1d035945ec46256b1a0f44d1267c71de8ec28"
The execution result of the transaction.
1: The transaction was executed successfully.0: The transaction failed, for example, because it was reverted by the contract or ran out of gas.
1
The number of the block that contains the transaction.
20123456
The hash of the block that contains the transaction.
"0xc9ee947f8bb6027c161888bf0d004bec05e7c2beec7e6b187dc512174e438735"
The index position of the transaction within the block.
42
The address that sent the transaction.
"0x1234567890abcdef1234567890abcdef12345678"
The number of gas units consumed by the transaction.
"21000"
The event logs emitted during the execution of the transaction, in the order in which they were emitted. The array is empty if the transaction emitted no logs. A maximum of 1,000 logs are returned. If the transaction emitted more logs, only the first 1,000 are returned and logs_truncated is true.
Whether the event logs returned in logs were truncated.
true: The transaction emitted more than 1,000 logs and only the first 1,000 are returned.false: All the logs emitted by the transaction are returned.
false
The address that received the transaction. The value is null if the transaction created a contract.
"0xdac17f958d2ee523a2206206994597c13d831ec7"
The address of the contract created by the transaction. The value is null if the transaction did not create a contract.
"0xabcdef1234567890abcdef1234567890abcdef12"
The total number of gas units consumed by all the transactions up to and including this transaction in the block.
"8000000"
The gas price actually paid for each gas unit consumed by the transaction, in the smallest unit of the chain's native token. For example, the value is in wei for Ethereum.
"25000000000"
The transaction envelope type defined by the chain. This property describes the on-chain transaction format, not the Cobo transaction type returned by Get transaction information.
0: A legacy transaction.1: An access list transaction, as defined in EIP-2930.2: A dynamic fee transaction, as defined in EIP-1559.
2
The bloom filter of the event logs emitted during the execution of the transaction, which can be used to quickly check whether the transaction emitted a specific log. The value is a 256-byte hexadecimal string.
"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
