Before you start. This is for apps already running a Fireblocks NCW integration. The user must be authenticated with Dynamic — migration creates the WaaS wallet for the current user, and your Fireblocks wallet is left untouched. You supply the existing device’s
deviceId, password, and storage from your NCW integration, plus a jwt from your own auth. Migration supports EVM, Solana, and Bitcoin (native SegWit only, see Migrating Bitcoin). Other chains come back as a per-chain failure (see Result).Prerequisites
Fireblocks migration must be enabled for your environment. Contact us to turn it on.
- Console — configure the migration backend base URL and environment (
sandbox/production) in your environment settings. - Backend — expose
POST /api/devices/{deviceId}/rpcthat relays NCW messages to Fireblocks, and enable CORS for the Dynamic iframe originhttps://app.dynamicauth.com.

Usage
Parameters
deviceId: string — The Fireblocks NCW device id being migrated.jwt: string — Your application’s auth token for the user (for example, from social login). It’s forwarded as the bearer token to your backend’s RPC endpoint, which authenticates the request. This is not a Fireblocks credential — your Fireblocks API auth stays on the backend.password: string — The password that encrypted the NCW device storage. Required.waasPassword: string — Optional. The password that encrypts the migrated Dynamic wallet. It is required when Require Password is enabled because migration creates a new embedded wallet. This is separate frompassword, which decrypts the Fireblocks device storage.storage:Record<string, string>— The device’s persisted Fireblocks NCW entries (everyNCW-*key), verbatim — the encrypted values exactly as stored. See Building thestoragemap.expectedAddresses:Record<string, string>— Required. The wallet address Fireblocks held per chain name (for example,{ EVM: "0x…", BTC: "bc1q…" }). Its keys are the chains migration runs on — only those chains are migrated — and each imported Dynamic address is verified against the value, so a wrong derivation fails loudly instead of producing an unusable wallet.
client as the second argument only when using multiple Dynamic clients.
Migrating Bitcoin
To migrate a Bitcoin wallet, include the user’s native SegWit address under the keyBTC in expectedAddresses, in lowercase, and enable Bitcoin for your environment in the Dynamic Console.
expectedAddresses fails the address check. Move funds from a legacy address to the native SegWit address before you migrate. See Bitcoin for the supported scope.
Building the storage map
storage must contain the device’s persisted Fireblocks NCW entries (every NCW-* key) verbatim — the encrypted values exactly as stored. The migration iframe re-hydrates this map and decrypts the secure entries itself using the same password and deviceId, so the values must stay as ciphertext.
Build it in your application, where your Fireblocks NCW integration persisted the device. The snippet below reads the default browser storage; if you configured a custom NCW storage provider, read the device’s entries from there instead.
Result
wallets to see which chains migrated. account is the created WaaS wallet account; fireblocksAlgorithm and fireblocksKeyId identify the source Fireblocks key, useful for logging and reconciliation.
Re-running migration is safe: a chain already imported on a prior run comes back as { ok: true, alreadyMigrated: true }. A { ok: false } entry means that chain failed while others may have succeeded — surface it and let the user retry. Possible errorCode values:
Treat any other
ok: false as a failure to surface and retry.
Error Handling
These are thrown from the call itself (distinct from the per-chainerrorCode above):
- If no WaaS wallet provider is registered, it throws a
NoWalletProviderFoundError. - If the resolved provider is not a WaaS provider, it throws a
NotWaasWalletProviderError. - A wrong
passwordfails the takeover; it does not create a usable wallet.