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. |
AccountPubKey | String | Yes | AEDC32... |
The public key of the account to create. |
AccountRecoverPubKey | String | Yes | AEDC32... |
The recovery public key used to check whether the recovery private key is used. |
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.