Updated on 2023-10-09 GMT+08:00

Querying Transaction Quantity

Function

Querying Transaction Quantity

URI

GET /v2/agent/apis/channel/{channel_name}/transactions/count

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

channel_name

Yes

String

Channel name.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

channel_id

String

Channel ID.

block_height

Integer

Block height.

transaction_num

Integer

Transaction quantity.

Status code: 400

Table 4 Response body parameters

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.