account_export_account
Export a NEAR account from the local keystore to a specified file path, enabling easy backup or transfer. Supports testnet and mainnet.
Instructions
Export a NEAR account from the local keystore to a file.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
accountId | Yes | ||
filePath | No | The path to the file to write the account to. If not provided, the account will be written to the current working directory. | |
networkId | No | mainnet |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"accountId": {
"type": "string"
},
"filePath": {
"description": "The path to the file to write the account to. If not provided, the account will be written to the current working directory.",
"type": "string"
},
"networkId": {
"default": "mainnet",
"enum": [
"testnet",
"mainnet"
],
"type": "string"
}
},
"required": [
"accountId"
],
"type": "object"
}