Querying Transaction Quantity
Function
Querying Transaction Quantity
URI
GET /v2/agent/apis/channel/{channel_name}/transactions/count
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| channel_name | Yes | String | Channel name. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | User token. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| channel_id | String | Channel ID. |
| block_height | Integer | Block height. |
| transaction_num | Integer | Transaction quantity. |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_message | String | Error description. |
| error_msg | String | Error description. |
Example Requests
GET https://192.168.0.90:30603/v2/agent/apis/channel/channel/transactions/count
Example Responses
Status code: 200
Success
{
"channel_id" : "channel",
"block_height" : 2,
"transaction_num" : 2
} Status code: 400
Bad Request
{
"error_code" : "BCS.4000013",
"error_message" : "request body is too large"
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request |
Error Codes
See Error Codes.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot