npm / @metamask/account-api
@metamask/account-api
What changed in @metamask/account-api 7 to 139, from its official release notes, upgrade guides and advisories. Also covers @metamask/eth-hd-keyring, @metamask/eth-ledger-bridge-keyring, @metamask/eth-money-keyring, @metamask/eth-qr-keyring, @metamask/eth-snap-keyring, @metamask/eth-trezor-keyring, @metamask/hw-wallet-sdk, @metamask/keyring-api, @metamask/keyring-internal-api, @metamask/keyring-sdk, @metamask/keyring-snap-client, @metamask/keyring-utils. Sources checked 2026-11-30.
36 breaking1 deprecations43 new APIs and options4 behavior and defaults9 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@metamask/account-api 1391 changes
Fixes and other changes 1
Declared @ethereumjs/tx as a dependency.
@metamask/account-api 1369 changes
Breaking changes 7
Key creation and rotation now take custodian share bindings.
Removed in favor of the isMfaRequired callback.
Replaces getMfaWhitelistConfig with a callback that decides whether a signature requires MFA; omitting the callback or throwing from it still requires MFA.
The MfaWhitelistConfig re-export is replaced with MoneyAccountSignatureRequest.
Replaces the MfaWhitelistConfig re-export.
Noise transport keys no longer match peers on 0.1.0.
Import and sync keep the stored key share, which no longer includes a party mapping; persisted shares from 0.1.0 still deserialize, and partyMapping is omitted on the next serialize.
Fixes and other changes 2
Serializes bigint values as decimal strings instead of throwing.
Signs plain-text messages as UTF-8 instead of throwing, and treats 0x as an empty hex string.
@metamask/account-api 1347 changes
Breaking changes 6
The V2 createAccounts method no longer accepts a mode option.
deserialize no longer accepts mode in its setup parameters.
The MpcMoneyKeyringSetupMode export is removed.
serialize no longer includes mode; keyring state is either empty or initialized.
Replaces init with an explicit method that runs key generation or import, inferring the mode from the backend.
Each setup call infers import when an active epoch exists for the profile, and create otherwise; pending share or backup alone results in create.
Behavior and default changes 1
Whitelisted signature requests skip MFA; requests receive a retry with a 2FA token when the backend returns mfa_required.
@metamask/account-api 1298 changes
New APIs and options 8
Adds the address:import create account option for importing watch-only accounts by address.
Adds an optional accountType field because the account type cannot always be detected from the address alone.
Adds an optional scopes field; when omitted, the keyring decides the scopes.
Adds the type related to the MPC entropy option for accounts derived from an MPC key share.
Adds the 'mpc' entropy option for accounts derived from an MPC key share.
Adds the address capability to declare whether a keyring supports importing watch-only accounts by address.
Adds the Mpc keyring type.
Adds the WatchOnly keyring type.
@metamask/account-api 1231 changes
Breaking changes 1
Node.js v18 and v20 are no longer supported; the minimum version is now v22.
@metamask/account-api 1213 changes
Breaking changes 1
Now composes BalanceStruct, changing the structure's composition.
New APIs and options 2
Adds a metadata field to pass extra metadata alongside asset balances.
Accepts metadata alongside account balance updates.
@metamask/account-api 1203 changes
Breaking changes 3
Removed
exactOptionalsuperstruct support; use@metamask/superstructinstead.Removed
objectsuperstruct support; use@metamask/superstructinstead.Removed
typesuperstruct support; use@metamask/superstructinstead.
@metamask/account-api 11510 changes
New APIs and options 9
Adds EIP-7702 authorization signing support to the Ledger keyring.
Adds a custom command for retrieving Ethereum app configuration via DMK.
Both bridges throw until DMK support lands, so they are not yet functional.
Adds a getter for checking whether the device is connected.
Adds a utility for identifying device exchange errors.
Adds a LedgerBridge implementation using Ledger's Device Management Kit.
Adds middleware for managing DMK sessions, device discovery, and Ethereum signer lifecycle.
Adds an observable for monitoring session state.
Adds DMK error translation to TransportStatusError.
Fixes and other changes 1
Fixes parsing of hex
vvalue'1b'for personal_sign and typed data.
@metamask/account-api 1141 changes
New APIs and options 1
Adds a static type for v2 SnapKeyring, allowing developers to use its type in their code.
@metamask/account-api 1132 changes
New APIs and options 2
Adds optional typeLabel, which can display a custom label regarding the transaction type.
Adds TransactionType.TokenDisapprove for token disapproval transactions.
@metamask/account-api 1081 changes
Fixes and other changes 1
On mobile, falls back to blind signing when clearSignTransaction fails, except when the user rejects on the device.
@metamask/account-api 1071 changes
Fixes and other changes 1
Keyring is verified as compatible with BaseKeyring instead of being narrowed, preserving the proper getAccounts() signature.
@metamask/account-api 1061 changes
New APIs and options 1
Adds the minimum interface used by KeyringController to handle keyring lifecycles.
@metamask/account-api 1002 changes
New APIs and options 2
Adds selectors for the three EIP-20 write functions: transfer, transferFrom, and approve.
Adds a function to read the 4-byte calldata selector from serialized transaction hex for legacy and typed transactions.
@metamask/account-api 9417 changes
Breaking changes 12
Serialized state stores the derived account address instead of numberOfAccounts, and restores it directly without calling getMnemonic.
decryptMessage is no longer exposed.
Serialized state stores entropySource instead of mnemonic; deserialize() sets it, while the mnemonic is resolved through the callback.
exportAccount is no longer exposed.
getAppKeyAddress is no longer exposed.
getEncryptionPublicKey is no longer exposed.
hdPath is no longer serialized and is always MONEY_DERIVATION_PATH.
mnemonic is no longer stored in serialized state; it is resolved at deserialization time through the callback.
The constructor now requires a MoneyKeyringOptions object containing a getMnemonic callback.
numberOfAccounts is replaced in serialized state by the derived account address.
removeAccount() has been removed; accounts are permanent once added.
signMessage is no longer exposed.
New APIs and options 2
Custom cryptographic functions are supported and forwarded to the inner HdKeyring.
A GetMnemonicCallback type is newly exported.
Behavior and default changes 3
getAccounts() is now a cheap synchronous-like read that never triggers getMnemonic.
The inner HdKeyring is initialized lazily on the first signing call and protected by a mutex for single initialization under concurrency.
MoneyKeyring now uses composition and wraps an inner HdKeyring instead of extending it.
@metamask/account-api 861 changes
New APIs and options 1
Adds an alias export for the legacy Keyring type.
@metamask/account-api 857 changes
New APIs and options 6
Adds the ConnectionStatus enum for representing hardware wallet connection status.
Adds the DeviceEvent enum for representing hardware wallet device events.
Adds the DeviceEventPayload type for device event payloads.
Adds the HardwareWalletConnectionState type for hardware wallet connection state.
Adds the HardwareWalletType enum for representing hardware wallet connection types.
Adds a static method to HardwareWalletError for type-safe error checking.
Fixes and other changes 1
Adds Ledger error mappings for device locked and Ethereum app closed states, improving error handling.
@metamask/account-api 823 changes
New APIs and options 3
Adds BLE and mobile error mappings, including error codes for Bluetooth permissions, connection states, and mobile support.
Adds a custom hardware error.
Adds mappings for hardware-related errors.
@metamask/account-api 812 changes
Deprecations 1
The Tron method was deprecated.
New APIs and options 1
A new Tron method was added.
@metamask/account-api 801 changes
Fixes and other changes 1
The notify:accountCreated event is now idempotent.
@metamask/account-api 231 changes
New APIs and options 1
Adds the AccountIdStruct alias for use in code.
@metamask/account-api 221 changes
Fixes and other changes 1
Handling of EIP-712 content is fixed.
@metamask/account-api 211 changes
New APIs and options 1
definePattern now accepts a generic type, allowing use of a template literal type that matches the pattern.
@metamask/account-api 201 changes
New APIs and options 1
Adds Bitcoin address helpers for developers using the package.
@metamask/account-api 161 changes
Breaking changes 1
Initial release of the common utilities package, making those utilities available as a separate package.
@metamask/account-api 151 changes
Breaking changes 1
LedgerSignTypedDataParams now requires message instead of domainSeparatorHex and hashStructMessage}Hex for Ledger clear signing.
@metamask/account-api 141 changes
New APIs and options 1
Adds the listAccountTransactions keyring method.
@metamask/account-api 134 changes
Breaking changes 3
Seed generation moves to deserialization; using the constructor directly no longer generates the seed required for account derivation.
deserialize is now an async method, and seed generation moves to deserialization.
serialize is now an async method.
New APIs and options 1
The constructor accepts cryptographicFunctions for using custom cryptographic functions during seed generation.
@metamask/account-api 71 changes
Breaking changes 1
Renames the btc_sendmany method to sendBitcoin.