在一条蚂蚁区块链上创建一个账户。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String CreateAntChainAccount

系统规定参数。取值:CreateAntChainAccount

AntChainId String bDXK6boZ

区块链ID

Account String test

账号名,只能是英文大小写、数字、汉字及短划线(-)的自由组合

AccountPubKey String AEDC32...

账户公钥,属于hash值,固定128个字符

AccountRecoverPubKey String AEDC32...

账户恢复公钥,属于hash值,固定128个字符

返回数据

名称 类型 示例值 描述
RequestId String 0301F6CB-4FA6-4D03-8668-963623B63D0F

请求ID

Result Object

请求结果

Account String test

账户名

AntChainId String bDXK6boZ

区块链ID

示例

请求示例

http(s)://[Endpoint]/?Action=CreateAntChainAccount
&<公共请求参数>

正常返回示例

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "code" : "200",
  "data" : {
    "RequestId" : "0301F6CB-4FA6-4D03-8668-963623B63D0F",
    "Result" : {
      "Account" : "test",
      "AntChainId" : "bDXK6boZ"
    }
  },
  "requestId" : "0301F6CB-4FA6-4D03-8668-963623B63D0F",
  "successResponse" : true
}