| Field | Value |
|---|---|
| Name | createAccount |
| Title | Create Account |
| Description | Create a new Convex account with the specified public key. Optionally fund via faucet (1 CVM = 1,000,000,000 copper, max 1 CVM). |
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": "Faucet amount in copper (1 CVM = 1,000,000,000 copper). Omit for no funding."
},
"controller": {
"type": "string",
"description": "Controller for new account. Default '*caller*' (faucet account). Use 'nil' for self-sovereign, or '#ADDR' for a specific address."
}
}
}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"
}
}
}