Convex

Convex

FieldValue
NamesigningCreateAccount
TitleCreate Account via Signing Service
DescriptionCreate a new signing key and on-chain account in one step. Optionally fund via faucet. Authenticated.
Input Schema
{
  "type": "object",
  "required": ["passphrase"],
  "properties": {
                  "faucet": {
                              "type": "number",
                              "description": "Faucet amount in copper (1 CVM = 1,000,000,000 copper)."
                            },
                  "passphrase": {
                                  "type": "string",
                                  "description": "Passphrase to encrypt the new signing key"
                                },
                  "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": {
                  "address": {
                               "type": "number",
                               "description": "Address of the newly created account"
                             },
                  "publicKey": {
                                 "type": "string",
                                 "description": "Hex-encoded public key of the created signing key"
                               }
                }
}