# 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.

## Result

Public account details after importing an encrypted backup.

## Permissions

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

## Definition 1 (full)

Registered in: Legacy local wallet; Legacy local identity; Local Vault · broadcasting disabled; Local Vault · all roles; Local Vault · payment role only; Local Vault + sponsor.

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.

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| name | string | Yes |  | pattern: "^[a-z0-9][a-z0-9_-]{0,63}$" |
| chain | "main" \| "test" | Yes |  |  |
| encryptedBackup | string | Yes |  | maxLength: 1048576 |

Nested requirements apply when their parent is supplied.

### Input schema

```json
{
  "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"
}
```

[All tools](https://bsvmcp.com/docs/tools)