You can call this operation to query the accounts 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 accounts. |
| PageNumber | Integer | Yes | 1 |
The number of the page to return. Pages start from page 1. |
| PageSize | Integer | Yes | 10 |
The number of entries to return on each page. |
| Action | String | No | DescribeAntChainAccounts |
The operation that you want to perform. Set the value to DescribeAntChainAccounts. |
| RegionId | String | No | cn-hangzhou |
The ID of the region where Ant Blockchain is used. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 1692940F-87C5-468F-8188-6C95FC05BBA5 |
The ID of the request. |
| Result |
The result of the operation. |
||
| Accounts |
The information about the accounts on the blockchain. |
||
| AccountPublicKey | String | de44334f1094cbd37e952ef691a837f36eab2e9afdf6bed9bf523c2dde40ff7b1ff526ec11b510d320f536685f75dd90f67fda8d41a69738a76a77c27b1373fb |
The public key of the account. |
| AccountRecoveryKey | String | ee54a9c4511345f2de05889540eedb8dfed7b57ab0647c5894e4333596bc2ecef07a0469331d016ad9978b39367a0a5c217ef92ffffcbd6716db6667353891a9 |
The recovery public key of the account. |
| AccountStatus | String | NORMAL |
The status of the account. |
| AntChainId | String | pYogqb9v |
The ID of the blockchain to which the account belongs. |
| Pagination |
The information about the pages that list the accounts on the blockchain. |
||
| PageNumber | Integer | 1 |
The page number of the returned page. |
| PageSize | Integer | 10 |
The number of entries returned per page. |
| TotalCount | Integer | 1 |
The total number of returned entries. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DescribeAntChainAccounts
&<Common request parameters>
Sample success responses
JSON format
{
"successResponse":true,
"requestId":"1692940F-87C5-468F-8188-6C95FC05BBA5",
"data":{
"Result":{
"Accounts":[
{
"AccountPublicKey":"de44334f1094cbd37e952ef691a837f36eab2e9afdf6bed9bf523c2dde40ff7b1ff526ec11b510d320f536685f75dd90f67fda8d41a69738a76a77c27b1373fb",
"AccountStatus":"NORMAL",
"AccountRecoveryKey":"ee54a9c4511345f2de05889540eedb8dfed7b57ab0647c5894e4333596bc2ecef07a0469331d016ad9978b39367a0a5c217ef92ffffcbd6716db6667353891a9",
"Account":"TestAccount",
"AntChainId":"pYogqb9v"
}
],
"Pagination":{
"PageNumber":1,
"TotalCount":1,
"PageSize":10
}
},
"RequestId":"1692940F-87C5-468F-8188-6C95FC05BBA5"
},
"code":"200"
}
Error codes
For a list of error codes, visit the API Error Center.