← BSV MCPInstall
Wallet

wallet_import

Import an encrypted bitcoin-backup WIF account after human approval. Never provide a plaintext key or password. BSV_MCP_PASSWORD must already be configured locally; use the terminal wallet_import command for a WIF.

Read as Markdown

Result

Public account details after importing an encrypted backup.

Permissions

Requires human approval. Plaintext WIF import is terminal-only.

Inputs and availability

Full catalog · Legacy local wallet; Legacy local identity; Local Vault · broadcasting disabled; Local Vault · all roles; Local Vault · payment role only; Local Vault + sponsor

FieldType / requiredDescription
namestring
Required
See schema for details.

pattern: "^[a-z0-9][a-z0-9_-]{0,63}$"

chain"main" | "test"
Required
See schema for details.
encryptedBackupstring
Required
See schema for details.

maxLength: 1048576

Nested fields are required only when their parent object or array item is supplied.

Full input schema
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
    },
    "chain": {
      "type": "string",
      "enum": [
        "main",
        "test"
      ]
    },
    "encryptedBackup": {
      "type": "string",
      "maxLength": 1048576
    }
  },
  "required": [
    "name",
    "chain",
    "encryptedBackup"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}