Returns the receipt of a transaction by transaction hash.
Supported on Fantom (mainnet) only.
Parameters
hash
- string - The hash of a transaction
Returns
object
- A transaction receipt object, or null when no receipt was foundblockHash
- The hash of the block where this transaction was inblockNumber
- The block number where this transaction was added encoded as a hexadecimalcontractAddress
- The contract address created for contract creation, otherwise nullcumulativeGasUsed
- The total gas used when this transaction was executed in the blockeffectiveGasPrice
- The total base charge plus tip paid for each unit of gasfrom
- The address of the sendergasUsed
- The amount of gas used by this specific transaction alonelogs
- An array of log objects that generated this transactionaddress
- The address from which this log was generatedtopics
- An array of zero to four 32 Bytes DATA of indexed log arguments. In Solidity, the first topic is the hash of the signature of the event (e.g. Deposit(address, bytes32, uint256)), except you declare the event with the anonymous specifierdata
- The 32 byte non-indexed argument of the logblockNumber
- The block number where this log was intransactionHash
- The hash of the transaction from which this log was created from. null if the log is pendingtransactionIndex
- The transactions index position from which this log was created from. null if the log is pendingblockHash
- The hash of the block where this log was inlogIndex
- The integer of log index position in the block encoded as hexadecimal. null if the log is pendingremoved
- It is true if log was removed, due to a chain reorganization and false if it's a valid log
logsBloom
- The bloom filter which is used to retrive related logsstatus
- It is either 1 (success) or 0 (failure) encoded as a hexadecimalto
- The address of the receiver. Null when its a contract creation transactiontransactionHash
- The hash of the transactiontransactionIndex
- The transactions index position in the block encoded as a hexadecimaltype
- The type of value
API Endpoint
The format of a Fantom API endpoint is
https://open-platform.nodereal.io/{{apiKey}}/fantom/
Here is an example:
https://open-platform.nodereal.io/4c0a1c23661a4e26bcbcwed461e34ea9/fantom/
Example
Request
curl https://open-platform.nodereal.io/{{apiKey}}/fantom/ \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"eth_getTransactionReceipt","params":["0x1fe56aa4fc2b833c2b17c92944e3c43f5ec93e561d3ff9750ebd838a20c3e21c"],"id":1,"jsonrpc":"2.0"}'
Result