All Products
Search
Document Center

Blockchain as a Service:CreateAntChainAccount

Last Updated:Aug 18, 2023

You can call this operation to create an account on a blockchain in Ant Blockchain.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

ParameterTypeRequiredExampleDescription
AccountStringYestest

The name of the account to create. It can only be a free combination of English uppercase and lowercase, numbers, Chinese characters and dashes (-).

AccountPubKeyStringYesAEDC32...

The public key of the account to create. It is the hash value, fixed 128 characters.

AccountRecoverPubKeyStringYesAEDC32...

The recovery public key used to check whether the recovery private key is used. It is the hash value, fixed 128 characters.

AntChainIdStringYesbDXK6boZ

The ID of the blockchain on which you want to create the account.

ActionStringNoCreateAntChainAccount

The operation that you want to perform. Set the value to CreateAntChainAccount.

RegionIdStringNocn-hangzhou

The ID of the region where Ant Blockchain is used.

Response parameters

ParameterTypeExampleDescription
RequestIdString0301F6CB-4FA6-4D03-8668-963623B63D0F

The ID of the request.

Result

The result of the operation.

AccountStringtest

The name of the created account.

AntChainIdStringbDXK6boZ

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.