You can call this operation to create an account on a blockchain in Ant Blockchain.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
Account | String | Yes | test | The name of the account to create. It can only be a free combination of English uppercase and lowercase, numbers, Chinese characters and dashes (-). |
AccountPubKey | String | Yes | AEDC32... | The public key of the account to create. It is the hash value, fixed 128 characters. |
AccountRecoverPubKey | String | Yes | AEDC32... | The recovery public key used to check whether the recovery private key is used. It is the hash value, fixed 128 characters. |
AntChainId | String | Yes | bDXK6boZ | The ID of the blockchain on which you want to create the account. |
Action | String | No | CreateAntChainAccount | The operation that you want to perform. Set the value to CreateAntChainAccount. |
RegionId | String | No | cn-hangzhou | The ID of the region where Ant Blockchain is used. |
Response parameters
Parameter | Type | Example | Description |
RequestId | String | 0301F6CB-4FA6-4D03-8668-963623B63D0F | The ID of the request. |
Result | The result of the operation. | ||
Account | String | test | The name of the created account. |
AntChainId | String | bDXK6boZ | The ID of the blockchain on which the account was created. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=CreateAntChainAccount
&<Common request parameters>
Sample success responses
JSON
format
{
"successResponse":true,
"requestId":"0301F6CB-4FA6-4D03-8668-963623B63D0F",
"data":{
"Result":{
"Account":"test",
"AntChainId":"bDXK6boZ"
},
"RequestId":"0301F6CB-4FA6-4D03-8668-963623B63D0F"
},
"code":"200"
}
Error codes
For a list of error codes, visit the API Error Center.