You can call this operation to query the transaction statistics 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 statistics. |
Action | String | No | DescribeAntChainTransactionStatistics |
The operation that you want to perform. Set the value to DescribeAntChainTransactionStatistics. |
End | Long | No | 1563897600000 |
The end of the time range to query. |
RegionId | String | No | cn-hangzhou |
The ID of the region where Ant Blockchain is used. |
Start | Long | No | 1563206400000 |
The beginning of the time range to query. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | E93884AC-6C21-4FEA-8E3A-7377D33B194F |
The ID of the request. |
Result |
The result of the operation. |
||
AntChainId | String | pYogqb9v |
The ID of the blockchain to which the transactions belong. |
CreatTime | Long | 1563294007000 |
The time when the statistics were generated. |
Dt | String | July 16, 2019 |
The day on which the transactions were executed. |
LastSumBlockHeight | Long | 148018 |
The height of the latest block. |
TransCount | Long | 0 |
The total number of transactions that were executed on the day. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeAntChainTransactionStatistics
&<Common request parameters>
Sample success responses
JSON
format
{
"successResponse":true,
"requestId":"E93884AC-6C21-4FEA-8E3A-7377D33B194F",
"data":{
"Result":[
{
"TransCount":0,
"Dt":"2019-07-16",
"AntChainId":"pYogqb9v",
"LastSumBlockHeight":148018,
"CreatTime":1563294007000
},
{
"TransCount":1,
"Dt":"2019-07-17",
"AntChainId":"pYogqb9v",
"LastSumBlockHeight":176768,
"CreatTime":1563380401000
},
{
"TransCount":0,
"Dt":"2019-07-18",
"AntChainId":"pYogqb9v",
"LastSumBlockHeight":205517,
"CreatTime":1563466809000
},
{
"TransCount":0,
"Dt":"2019-07-19",
"AntChainId":"pYogqb9v",
"LastSumBlockHeight":234268,
"CreatTime":1563553209000
},
{
"TransCount":0,
"Dt":"2019-07-20",
"AntChainId":"pYogqb9v",
"LastSumBlockHeight":263020,
"CreatTime":1563639601000
},
{
"TransCount":0,
"Dt":"2019-07-21",
"AntChainId":"pYogqb9v",
"LastSumBlockHeight":291772,
"CreatTime":1563726001000
},
{
"TransCount":1,
"Dt":"2019-07-22",
"AntChainId":"pYogqb9v",
"LastSumBlockHeight":320523,
"CreatTime":1563812401000
},
{
"TransCount":26,
"Dt":"2019-07-23",
"AntChainId":"pYogqb9v",
"LastSumBlockHeight":349284,
"CreatTime":1563898810000
}
],
"RequestId":"E93884AC-6C21-4FEA-8E3A-7377D33B194F"
},
"code":"200"
}
Error codes
For a list of error codes, visit the API Error Center.