unstale

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

@unstale/cli on npm

@metamask/account-api 1391 changes

Fixes and other changes 1

@metamask/account-api 1369 changes

Breaking changes 7

  • Key creation and rotation now take custodian share bindings.

    136.0.0release notes

  • Removed in favor of the isMfaRequired callback.

    136.0.0release notes

  • Replaces getMfaWhitelistConfig with a callback that decides whether a signature requires MFA; omitting the callback or throwing from it still requires MFA.

    136.0.0release notes

  • The MfaWhitelistConfig re-export is replaced with MoneyAccountSignatureRequest.

    136.0.0release notes

  • Replaces the MfaWhitelistConfig re-export.

    136.0.0release notes

  • Noise transport keys no longer match peers on 0.1.0.

    136.0.0release notes

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

    136.0.0release notes

Fixes and other changes 2

  • Serializes bigint values as decimal strings instead of throwing.

    136.0.0release notes

  • Signs plain-text messages as UTF-8 instead of throwing, and treats 0x as an empty hex string.

    136.0.0release notes

@metamask/account-api 1347 changes

Breaking changes 6

  • The V2 createAccounts method no longer accepts a mode option.

    134.0.0release notes

  • deserialize no longer accepts mode in its setup parameters.

    134.0.0release notes

  • The MpcMoneyKeyringSetupMode export is removed.

    134.0.0release notes

  • serialize no longer includes mode; keyring state is either empty or initialized.

    134.0.0release notes

  • Replaces init with an explicit method that runs key generation or import, inferring the mode from the backend.

    134.0.0release notes

  • Each setup call infers import when an active epoch exists for the profile, and create otherwise; pending share or backup alone results in create.

    134.0.0release notes

Behavior and default changes 1

  • Whitelisted signature requests skip MFA; requests receive a retry with a 2FA token when the backend returns mfa_required.

    134.0.0release notes

@metamask/account-api 1298 changes

New APIs and options 8

  • Adds the address:import create account option for importing watch-only accounts by address.

    129.0.0release notes

  • Adds an optional accountType field because the account type cannot always be detected from the address alone.

    129.0.0release notes

  • Adds an optional scopes field; when omitted, the keyring decides the scopes.

    129.0.0release notes

  • Adds the type related to the MPC entropy option for accounts derived from an MPC key share.

    129.0.0release notes

  • Adds the 'mpc' entropy option for accounts derived from an MPC key share.

    129.0.0release notes

  • Adds the address capability to declare whether a keyring supports importing watch-only accounts by address.

    129.0.0release notes

  • Adds the Mpc keyring type.

    129.0.0release notes

  • Adds the WatchOnly keyring type.

    129.0.0release notes

@metamask/account-api 1231 changes

Breaking changes 1

  • Node.js v18 and v20 are no longer supported; the minimum version is now v22.

    123.0.0release notes

@metamask/account-api 1213 changes

Breaking changes 1

  • Now composes BalanceStruct, changing the structure's composition.

    121.0.0release notes

New APIs and options 2

  • Adds a metadata field to pass extra metadata alongside asset balances.

    121.0.0release notes

  • Accepts metadata alongside account balance updates.

    121.0.0release notes

@metamask/account-api 1203 changes

Breaking changes 3

  • Removed exactOptional superstruct support; use @metamask/superstruct instead.

    120.0.0release notes

  • Removed object superstruct support; use @metamask/superstruct instead.

    120.0.0release notes

  • Removed type superstruct support; use @metamask/superstruct instead.

    120.0.0release notes

@metamask/account-api 11510 changes

New APIs and options 9

  • Adds EIP-7702 authorization signing support to the Ledger keyring.

    115.0.0release notes

  • Adds a custom command for retrieving Ethereum app configuration via DMK.

    115.0.0release notes

  • Both bridges throw until DMK support lands, so they are not yet functional.

    115.0.0release notes

  • Adds a getter for checking whether the device is connected.

    115.0.0release notes

  • Adds a utility for identifying device exchange errors.

    115.0.0release notes

  • Adds a LedgerBridge implementation using Ledger's Device Management Kit.

    115.0.0release notes

  • Adds middleware for managing DMK sessions, device discovery, and Ethereum signer lifecycle.

    115.0.0release notes

  • Adds an observable for monitoring session state.

    115.0.0release notes

  • Adds DMK error translation to TransportStatusError.

    115.0.0release notes

Fixes and other changes 1

  • Fixes parsing of hex v value '1b' for personal_sign and typed data.

    115.0.0release notes

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

    114.0.0release notes

@metamask/account-api 1132 changes

New APIs and options 2

  • Adds optional typeLabel, which can display a custom label regarding the transaction type.

    113.0.0release notes

  • Adds TransactionType.TokenDisapprove for token disapproval transactions.

    113.0.0release notes

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

    108.0.0release notes

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

    107.0.0release notes

@metamask/account-api 1061 changes

New APIs and options 1

  • Adds the minimum interface used by KeyringController to handle keyring lifecycles.

    106.0.0release notes

@metamask/account-api 1002 changes

New APIs and options 2

  • Adds selectors for the three EIP-20 write functions: transfer, transferFrom, and approve.

    100.0.0release notes

  • Adds a function to read the 4-byte calldata selector from serialized transaction hex for legacy and typed transactions.

    100.0.0release notes

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

    94.0.0release notes

  • decryptMessage is no longer exposed.

    94.0.0release notes

  • Serialized state stores entropySource instead of mnemonic; deserialize() sets it, while the mnemonic is resolved through the callback.

    94.0.0release notes

  • exportAccount is no longer exposed.

    94.0.0release notes

  • getAppKeyAddress is no longer exposed.

    94.0.0release notes

  • getEncryptionPublicKey is no longer exposed.

    94.0.0release notes

  • hdPath is no longer serialized and is always MONEY_DERIVATION_PATH.

    94.0.0release notes

  • mnemonic is no longer stored in serialized state; it is resolved at deserialization time through the callback.

    94.0.0release notes

  • The constructor now requires a MoneyKeyringOptions object containing a getMnemonic callback.

    94.0.0release notes

  • numberOfAccounts is replaced in serialized state by the derived account address.

    94.0.0release notes

  • removeAccount() has been removed; accounts are permanent once added.

    94.0.0release notes

  • signMessage is no longer exposed.

    94.0.0release notes

New APIs and options 2

  • Custom cryptographic functions are supported and forwarded to the inner HdKeyring.

    94.0.0release notes

  • A GetMnemonicCallback type is newly exported.

    94.0.0release notes

Behavior and default changes 3

  • getAccounts() is now a cheap synchronous-like read that never triggers getMnemonic.

    94.0.0release notes

  • The inner HdKeyring is initialized lazily on the first signing call and protected by a mutex for single initialization under concurrency.

    94.0.0release notes

  • MoneyKeyring now uses composition and wraps an inner HdKeyring instead of extending it.

    94.0.0release notes

@metamask/account-api 861 changes

New APIs and options 1

  • Adds an alias export for the legacy Keyring type.

    86.0.0release notes

@metamask/account-api 857 changes

New APIs and options 6

  • Adds the ConnectionStatus enum for representing hardware wallet connection status.

    85.0.0release notes

  • Adds the DeviceEvent enum for representing hardware wallet device events.

    85.0.0release notes

  • Adds the DeviceEventPayload type for device event payloads.

    85.0.0release notes

  • Adds the HardwareWalletConnectionState type for hardware wallet connection state.

    85.0.0release notes

  • Adds the HardwareWalletType enum for representing hardware wallet connection types.

    85.0.0release notes

  • Adds a static method to HardwareWalletError for type-safe error checking.

    85.0.0release notes

Fixes and other changes 1

  • Adds Ledger error mappings for device locked and Ethereum app closed states, improving error handling.

    85.0.0release notes

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

    82.0.0release notes

  • Adds a custom hardware error.

    82.0.0release notes

  • Adds mappings for hardware-related errors.

    82.0.0release notes

@metamask/account-api 812 changes

Deprecations 1

New APIs and options 1

@metamask/account-api 801 changes

Fixes and other changes 1

  • The notify:accountCreated event is now idempotent.

    80.0.0release notes

@metamask/account-api 231 changes

New APIs and options 1

  • Adds the AccountIdStruct alias for use in code.

    23.0.0release notes

@metamask/account-api 221 changes

Fixes and other changes 1

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

    21.0.0release notes

@metamask/account-api 201 changes

New APIs and options 1

  • Adds Bitcoin address helpers for developers using the package.

    20.0.0release notes

@metamask/account-api 161 changes

Breaking changes 1

  • Initial release of the common utilities package, making those utilities available as a separate package.

    16.0.0release notes

@metamask/account-api 151 changes

Breaking changes 1

  • LedgerSignTypedDataParams now requires message instead of domainSeparatorHex and hashStructMessage}Hex for Ledger clear signing.

    15.0.0release notes

@metamask/account-api 141 changes

New APIs and options 1

  • Adds the listAccountTransactions keyring method.

    14.0.0release notes

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

    13.0.0release notes

  • deserialize is now an async method, and seed generation moves to deserialization.

    13.0.0release notes

  • serialize is now an async method.

    13.0.0release notes

New APIs and options 1

  • The constructor accepts cryptographicFunctions for using custom cryptographic functions during seed generation.

    13.0.0release notes

@metamask/account-api 71 changes

Breaking changes 1

  • Renames the btc_sendmany method to sendBitcoin.

    7.0.0release notes