eth_getTransactionReceipt

Returns the transaction info: receipt, transaction fee, block height ... by transaction hash. Please refer to http api: wallet/gettransactioninfobyid

Starting with GreatVoyage-v4.8.2, each item in the receipt's logs array contains blockTimestamp. This field is the block's Unix timestamp in seconds, encoded as a hexadecimal string following the JSON-RPC QUANTITY rules.

Parameters

  1. DATA, 32 Bytes - Transaction hash. It must contain exactly 64 hexadecimal characters, with or without a 0x prefix.

Example

Request

curl -X POST 'https://api.trongrid.io/jsonrpc' --data '{
	"jsonrpc": "2.0",
	"method": "eth_getTransactionReceipt",
	"params": ["5a71eb78216e74de956fd5db476757f8a7d9c9d08c088f8a2d5a51c7bbf1f08e"],
	"id": 64
}'

Response

{
	"jsonrpc": "2.0",
	"id": 64,
	"result": {
		"blockHash": "0x000000000523cf27f4557c313730fe72c9ee08340c9d6b4d01707249bf71f800",
		"blockNumber": "0x523cf27",
		"contractAddress": null,
		"cumulativeGasUsed": "0x0",
		"effectiveGasPrice": "0x64",
		"from": "0x3ff32c35d44cb419ef0a41c8013077329684e135",
		"gasUsed": "0x0",
		"logs": [],
		"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
		"status": "0x1",
		"to": "0x1fdf5a23bbe985eba3d336577784afd4ac9200f4",
		"transactionHash": "0x5a71eb78216e74de956fd5db476757f8a7d9c9d08c088f8a2d5a51c7bbf1f08e",
		"transactionIndex": "0x0",
		"type": "0x0"
	}
}