You can call this operation to query a transaction receipt based on the hash of a transaction on a blockchain in Ant Blockchain.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
AntChainId | String | Yes | pYogqb9v |
The ID of the blockchain on which you want to query the transaction receipt. |
Hash | String | Yes | b3b0d2db83d3e670449d1e2a39d1d13b7e0e6080b0f9c6945f79eca68d1dd2ca |
The hash of the transaction whose transaction receipt is to be queried. |
Action | String | No | DescribeAntChainTransactionReceipt |
The operation that you want to perform. Set the value to DescribeAntChainTransactionReceipt. |
RegionId | String | No | cn-hangzhou |
The ID of the region where Ant Blockchain is used. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 9EC8FDC1-ED32-4EC0-AEC2-AFAA906ADBAB |
The ID of the request. |
Result |
The result of the operation. |
||
Data | String | data |
The returned data. |
GasUsed | String | 20000 |
The gas consumed by the transaction. |
Logs | [""] |
The logs of running the contract code. |
|
Result | Long | 0 |
The result of the operation. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=DescribeAntChainTransactionReceipt
&<Common request parameters>
Sample success responses
JSON
format
{
"successResponse":true,
"requestId":"9EC8FDC1-ED32-4EC0-AEC2-AFAA906ADBAB",
"data":{
"Result":{
"Result":0,
"Logs":[
""
],
"Data":"",
"GasUsed":"20000"
},
"RequestId":"9EC8FDC1-ED32-4EC0-AEC2-AFAA906ADBAB"
},
"code":"200"
}
Error codes
For a list of error codes, visit the API Error Center.