account_create_account
Create a new NEAR account with a unique account ID and initial balance, funded by the calling account. Supports mainnet and testnet with optional account ID generation.
Instructions
Create a new NEAR account with a new account ID. The initial balance of this account will be funded by the account that is calling this tool. This account will be created with a random public key. If no account ID is provided, a random one will be generated. Ensure that mainnet accounts are created with a .near suffix, and testnet accounts are created with a .testnet suffix.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
initialBalance | Yes | The initial balance of the new account in NEAR. If not provided, the new account will be funded with 0.1 NEAR. | |
networkId | No | mainnet | |
newAccountId | No | The account id of the new account. If not provided, a random one will be generated. | |
signerAccountId | Yes | The account that will fund the new account. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"initialBalance": {
"description": "The initial balance of the new account in NEAR. If not provided, the new account will be funded with 0.1 NEAR.",
"type": "number"
},
"networkId": {
"default": "mainnet",
"enum": [
"testnet",
"mainnet"
],
"type": "string"
},
"newAccountId": {
"description": "The account id of the new account. If not provided, a random one will be generated.",
"type": "string"
},
"signerAccountId": {
"description": "The account that will fund the new account.",
"type": "string"
}
},
"required": [
"signerAccountId",
"initialBalance"
],
"type": "object"
}