Before you start. This is for applications already running a Fireblocks NCW integration. Migration imports that device’s keys into a Dynamic embedded wallet for the currently signed-in Dynamic user — your Fireblocks wallet is not changed or disabled. Migration supports EVM, Solana, and Bitcoin (native SegWit only, see Bitcoin). Other chains return a per-chain failure.
How it works
The migration runs inside Dynamic’s embedded-wallet iframe, served fromhttps://app.dynamicauth.com. The Fireblocks key takeover and per-chain key derivation happen in that sandboxed iframe — the raw key material never enters your application’s page context.
During the takeover, the Fireblocks NCW SDK (running in the iframe) exchanges MPC protocol messages with Fireblocks. It does not call Fireblocks directly. Instead it relays each message through your backend’s RPC endpoint, which forwards it to Fireblocks using your Fireblocks API credentials. The flow per message:
- The iframe sends the NCW message to
POST {backendBaseUrl}/api/devices/{deviceId}/rpc, with your application’s auth token for the user as a bearer token. - Your backend relays the message to Fireblocks and returns the response unchanged.
- The iframe completes the takeover, derives each chain’s key, and imports it into the Dynamic embedded wallet.
Your Fireblocks API key and secret stay on your backend. The browser only ever holds your application’s auth token for the user — never a Fireblocks credential.
Multiple Fireblocks accounts
A Fireblocks device can hold several vault accounts, each with its own addresses. Migration handles all of them: pass each account’s addresses underaccounts, keyed by the account’s Fireblocks account index, and each address becomes its own Dynamic embedded wallet.
fireblocksAccountIndex so you can attribute it to the Fireblocks account it came from.
The
coinTypes override applies to every account in the call. To migrate accounts that use different coin types for the same chain, for example mainnet and testnet EVM, migrate them in separate calls.Prerequisites
1
Configure the migration backend in the Dynamic Console
Fireblocks migration must be enabled for your environment before the settings below appear. Contact us to turn it on.
- Backend base URL — the base URL of your backend (HTTPS required). The iframe calls
{backendBaseUrl}/api/devices/{deviceId}/rpc. - Environment —
sandboxorproduction, matching the Fireblocks environment the NCW device belongs to.

2
Expose an RPC endpoint on your backend
Implement
POST /api/devices/{deviceId}/rpc to relay NCW messages to Fireblocks:- Request — header
Authorization: Bearer <token>(your application’s auth token for the user), body{ "message": "<ncw-message>" }. - Action — authenticate the token, then forward the message to Fireblocks with the Fireblocks server SDK,
invokeWalletRpc(walletId, deviceId, message), and return the Fireblocks response JSON unchanged. Your Fireblocks API credentials live here, on the backend.
walletId from the authenticated user behind the token. See the Fireblocks NCW backend demo for a reference implementation.3
Enable CORS for the Dynamic iframe
The RPC request originates from the Dynamic iframe origin,
https://app.dynamicauth.com. Your /rpc endpoint must allow CORS from that origin — allow the POST method and the Content-Type and Authorization request headers.Bitcoin
Migration imports a Bitcoin wallet as a native SegWit (P2WPKH) wallet. Native SegWit addresses start withbc1q, and the migrated wallet keeps the address the user already had in Fireblocks. Migration covers account 0 of the device on Bitcoin mainnet.
Native SegWit is the only Bitcoin address type that migrates. Dynamic embedded wallets do not support legacy P2PKH addresses, which start with 1, so migration does not import them.
To migrate Bitcoin:
- Enable Bitcoin for your environment in the Dynamic Console. Migration runs only on enabled chains.
- Pass the user’s native SegWit address under the chain name
BTCinexpectedAddresses, in lowercase. Other spellings such asbitcoinare skipped. - Expect the address check to reject any other address. If the value does not match the address derived from the Fireblocks key, for example a legacy address, the
BTCentry returnsMIGRATION_IMPORT_ADDRESS_MISMATCHand nothing is imported.