| Field | Value |
|---|---|
| Name | createAccount |
| Title | Create Account |
| Description | Create a new Convex account with the specified public key. Optionally request faucet coins (in copper). Requires a peer willing to accept faucet requests. |
Input Schema
{
"type": "object",
"required": ["accountKey"],
"properties": {
"accountKey": {
"type": "string",
"description": "Hex encoded public key (account key) for the new account (0x prefix optional)"
},
"faucet": {
"type": "string",
"description": "Optional amount of convex coins to request from faucet (in copper). If not provided, no faucet request is made. MAx of 1 CVM is default."
}
}
}Output Schema
{
"type": "object",
"properties": {
"errorCode": {
"description": "CVM error code if the account creation failed"
},
"value": {
"description": "Result value from account creation"
},
"info": {
"description": "Additional execution metadata"
},
"address": {
"type": "number",
"description": "The address of the newly created account"
}
}
}