unstale

npm / @metamask/wallet

@metamask/wallet

What changed in @metamask/wallet 1 to 1255, from its official release notes, upgrade guides and advisories. Also covers @metamask/account-tree-controller, @metamask/accounts-controller, @metamask/address-book-controller, @metamask/analytics-controller, @metamask/announcement-controller, @metamask/approval-controller, @metamask/assets-controller, @metamask/assets-controllers, @metamask/authenticated-user-storage, @metamask/base-controller, @metamask/base-data-service, @metamask/bitcoin-regtest-up, @metamask/bridge-controller, @metamask/bridge-status-controller, @metamask/chain-agnostic-permission, @metamask/chomp-api-service, @metamask/claims-controller, @metamask/client-controller, @metamask/client-utils, @metamask/compliance-controller, @metamask/config-registry-controller, @metamask/connectivity-controller, @metamask/controller-utils, @metamask/core-backend, @metamask/delegation-controller, @metamask/eip-5792-middleware, @metamask/eip-7702-internal-rpc-middleware, @metamask/eth-json-rpc-middleware, @metamask/eth-json-rpc-provider, @metamask/foundryup, @metamask/gas-fee-controller, @metamask/gator-permissions-controller, @metamask/geolocation-controller, @metamask/java-tron-up, @metamask/json-rpc-engine, @metamask/json-rpc-middleware-stream, @metamask/keyring-controller, @metamask/logging-controller, @metamask/message-manager, @metamask/messenger, @metamask/messenger-cli, @metamask/money-account-api-data-service, @metamask/money-account-balance-service, @metamask/money-account-controller, @metamask/money-account-upgrade-controller, @metamask/money-account-utils, @metamask/multichain-account-service, @metamask/multichain-api-middleware, @metamask/multichain-network-controller, @metamask/multichain-transactions-controller, @metamask/name-controller, @metamask/network-connection-banner-controller, @metamask/network-controller, @metamask/network-enablement-controller, @metamask/notification-services-controller, @metamask/passkey-controller, @metamask/permission-controller, @metamask/permission-log-controller, @metamask/perps-controller, @metamask/phishing-controller, @metamask/platform-api-docs, @metamask/polling-controller, @metamask/preferences-controller, @metamask/profile-metrics-controller, @metamask/profile-sync-controller, @metamask/ramps-controller, @metamask/rate-limit-controller, @metamask/react-data-query, @metamask/remote-feature-flag-controller, @metamask/seedless-onboarding-controller, @metamask/selected-network-controller, @metamask/sentinel-api-service, @metamask/shield-controller, @metamask/signature-controller, @metamask/smart-transactions-controller, @metamask/snap-account-service, @metamask/solana-test-validator-up, @metamask/storage-service, @metamask/subscription-controller, @metamask/transaction-controller, @metamask/transaction-pay-controller, @metamask/user-operation-controller. Sources checked 2026-11-30.

65 breaking2 security45 new APIs and options2 performance12 behavior and defaults1 tooling13 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@metamask/wallet 12555 changes

New APIs and options 5

  • Exports the default distinct-address cap used during signature address extraction.

    1255.0.0release notes

  • Adds a type for the results returned when collecting address-typed values from an EIP-712 message.

    1255.0.0release notes

  • Adds a utility to collect address-typed values from EIP-712 messages for real-time scanning, with normalization, exclusions, bounded traversal, overflow reporting, and field-name attribution.

    1255.0.0release notes

  • Adds an options type for configuring address extraction, including exclusions and the address limit.

    1255.0.0release notes

  • Exports the hard ceiling for the distinct-address cap during signature address extraction.

    1255.0.0release notes

@metamask/wallet 12475 changes

Breaking changes 3

  • The package is now ESM-only; CommonJS projects can use require(esm) in Node.js 22+ or dynamic imports in older Node.js versions.

    1247.0.0release notes

  • The minimum supported Node.js version is now 22.

    1247.0.0release notes

  • The package now ships ES2022 code, requiring a compatible modern environment or bundler configuration to consume.

    1247.0.0release notes

New APIs and options 2

  • Adds a mock that can substitute for InternalProvider in tests, assert requests, and inject canned responses.

    1247.0.0release notes

  • Adds the MockInternalProviderStub type for use with the new mock provider.

    1247.0.0release notes

@metamask/wallet 901 changes

Breaking changes 1

  • Exported as a class instead of a type, changing how developers can use this API.

    90.0.0release notes

@metamask/wallet 7321 changes

Breaking changes 8

  • All but the first argument to addTransaction have moved into an options bag.

    73.0.0release notes

  • The constructor now requires a getSelectedAddress callback argument.

    73.0.0release notes

  • Removes fetchAll; transaction history fetching is handled automatically on each new block when polling is enabled.

    73.0.0release notes

  • Removes the getCommonConfiguration method, which was intended mainly for internal use.

    73.0.0release notes

  • Removes the prepareUnsignedEthTx method, which was intended mainly for internal use.

    73.0.0release notes

  • The RemoteTransactionSource interface now requires an isSupportedNetwork method.

    73.0.0release notes

  • The fromBlock property type changed from string to number.

    73.0.0release notes

  • The networkType property was removed from RemoteTransactionSourceRequest.

    73.0.0release notes

New APIs and options 13

  • Adds a requireApproval option to addTransaction method options.

    73.0.0release notes

  • Transaction metadata now includes baseFeePerGas.

    73.0.0release notes

  • Transaction metadata now includes dappSuggestedGasFees.

    73.0.0release notes

  • Adds an optional apiKey constructor argument for incoming transactions.

    73.0.0release notes

  • Adds an optional includeTokenTransfers constructor argument for incoming transactions.

    73.0.0release notes

  • Adds an optional isEnabled constructor argument that can override the incoming transaction functionality based on a client preference.

    73.0.0release notes

  • Adds an optional updateTransactions constructor argument for incoming transactions.

    73.0.0release notes

  • Adds a method to generate approval requests from unapproved transactions.

    73.0.0release notes

  • Adds a method to start incoming transaction polling.

    73.0.0release notes

  • Adds a method to stop incoming transaction polling.

    73.0.0release notes

  • Transaction metadata now includes txReceipt.

    73.0.0release notes

  • Adds a method to request an immediate update of incoming transactions.

    73.0.0release notes

  • The wipeTransactions method now accepts an address argument.

    73.0.0release notes

@metamask/wallet 511 changes

Breaking changes 1

  • Signature requests now validate the chain, which may affect requests with a mismatched chain.

    51.0.0release notes

@metamask/wallet 3211 changes

Breaking changes 6

  • Now throws an error when decimals() returns an empty value (0x).

    32.0.0release notes

  • Now throws an error when symbol() returns an empty value (0x).

    32.0.0release notes

  • Controller subscriptions must be registered through the controller messenger rather than directly through the controller.

    32.0.0release notes

  • The constructor must receive infuraProjectId and messenger options; messenger should be a restricted controller messenger.

    32.0.0release notes

  • Migrates to BaseControllerV2: the constructor takes one options object instead of separate parameters, with initial state passed through its state property.

    32.0.0release notes

  • Phishing lists are no longer updated automatically; check with isOutOfDate and call updatePhishingLists to update them.

    32.0.0release notes

New APIs and options 3

  • Adds an action that returns an EthQuery set up with the current provider; obtain it again after each providerChange event.

    32.0.0release notes

  • Adds a PhishingController method for checking whether the phishing lists are out-of-date.

    32.0.0release notes

  • Adds an event dispatched when the provider instance variable is updated; on a network switch, it fires after the network is fully initialized.

    32.0.0release notes

Tooling 1

Fixes and other changes 1

  • Prevents parallel phishing configuration updates.

    32.0.0release notes

@metamask/wallet 315 changes

Breaking changes 3

New APIs and options 1

  • Adds support for caveats on endowment permissions.

    31.0.0release notes

Behavior and default changes 1

  • Use this method to change the polling interval.

    31.0.0release notes

@metamask/wallet 294 changes

Breaking changes 2

  • Returns a buffer rather than a string, so consumers must adapt to the new return type.

    29.0.0release notes

  • Mnemonics in keyrings of this type are always serialized as arrays of numbers.

    29.0.0release notes

New APIs and options 2

  • Reintroduces NotificationController for in-app notifications.

    29.0.0release notes

  • Adds an optional timeout parameter for the token service.

    29.0.0release notes

@metamask/wallet 277 changes

Breaking changes 4

  • This class has been removed with no replacement.

    27.0.0release notes

  • This function has been removed with no replacement.

    27.0.0release notes

  • This type is no longer public; use FeeHistoryBlock instead.

    27.0.0release notes

  • This field can now be null in GasFeeEstimates returned by fetchGasEstimatesViaEthFeeHistory and stored in GasFeeController.

    27.0.0release notes

Behavior and default changes 2

  • This field can now be null in GasFeeEstimates returned by fetchGasEstimatesViaEthFeeHistory and stored in GasFeeController.

    27.0.0release notes

  • The userAddress parameter is now optional.

    27.0.0release notes

Fixes and other changes 1

  • The rate limit is no longer reset aggressively.

    27.0.0release notes

@metamask/wallet 242 changes

Breaking changes 1

  • Renames checkAndUpdateCollectibleOwnershipStatus; consumers using the old name must update their code.

    24.0.0release notes

New APIs and options 1

  • Adds a method to check and update the ownership status of a single collectible.

    24.0.0release notes

@metamask/wallet 236 changes

Breaking changes 1

  • Callers must provide an error when calling clear for the method to function properly.

    23.0.0release notes

New APIs and options 3

  • A method was added to set a collectible as a favorite.

    23.0.0release notes

  • A method was added to check and update collectible ownership state.

    23.0.0release notes

  • GasFeeController exposes additional data sourced from the MetaSwap API to support edit gas fee functionality in the extension.

    23.0.0release notes

Behavior and default changes 1

  • GasFeeController uses eth_feeHistory to compute gas fee recommendations when the MetaSwap API is down.

    23.0.0release notes

Fixes and other changes 1

  • Polling initialization for collectibles was fixed.

    23.0.0release notes

@metamask/wallet 224 changes

Breaking changes 1

  • The chainId in the collectibles state shape is no longer normalized to decimal.

    22.0.0release notes

Security 1

  • IPFS URLs now use subdomains and CIDv1s instead of CIDv0s to enhance origin-based security for IPFS assets.

    22.0.0release notes

New APIs and options 1

  • Set this option to false to retain IPFS resolution support when using gateways that do not support IPFS subdomain formats.

    22.0.0release notes

Fixes and other changes 1

@metamask/wallet 215 changes

Breaking changes 2

  • Changes the expected shape of the OpenSea contract API to use collections.

    21.0.0release notes

  • Adds an OpenSea preference. Consumers that want to continue using OpenSea's API and AutoDetection must set it to true after instantiating the controller or expose a user toggle.

    21.0.0release notes

New APIs and options 2

Behavior and default changes 1

  • Modifies the requirements for adding an OpenSea-detected contract.

    21.0.0release notes

@metamask/wallet 203 changes

Breaking changes 3

  • Signature overloads for ApprovalController.has were removed.

    20.0.0release notes

  • Constructing the controller no longer starts polling; call its start method immediately after instantiation to start polling.

    20.0.0release notes

  • Constructing the controller no longer starts polling; call its start method immediately after instantiation to start polling.

    20.0.0release notes

@metamask/wallet 192 changes

Breaking changes 2

  • AssetsDetectionController was split into TokenDetectionController and CollectiblesDetectionController; consumers must import both and split method calls accordingly.

    19.0.0release notes

  • conversionDate is set to null when fetching data fails, so consumers must handle a null value.

    19.0.0release notes

@metamask/wallet 183 changes

Breaking changes 1

  • The constructor now requires getOwnerOf, balanceOfERC1155Collectible and uriERC1155Collectible properties from AssetsContractController for ERC1155 support.

    18.0.0release notes

New APIs and options 2

  • Custom networks are supported by querying the blockchain as the default.

    18.0.0release notes

  • Support is added for IPFS metadata URIs.

    18.0.0release notes

@metamask/wallet 174 changes

Breaking changes 1

  • Simplifies the state type: controller state must use simple objects; custom interfaces and classes are no longer allowed. Controllers based on BaseControllerV2 might need type updates.

    17.0.0release notes

Behavior and default changes 2

Fixes and other changes 1

  • Improves transaction state management for custom networks.

    17.0.0release notes

@metamask/wallet 164 changes

Breaking changes 1

  • The syncTokens method is removed from TokenListController.

    16.0.0release notes

Performance 1

  • HTTP caching is enabled for the dynamic token list managed by TokenListController.

    16.0.0release notes

Fixes and other changes 2

  • The method no longer initiates multiple simultaneous fetch requests.

    16.0.0release notes

  • Fixes controller state containing an invalid tokenList when the active network is not supported by the tokenList API.

    16.0.0release notes

@metamask/wallet 1511 changes

Breaking changes 7

  • The DynamicToken and TokenListToken types no longer contain an aggregators field, so consumers must remove it from objects using these types.

    15.0.0release notes

  • A new state field manages ignored tokens by network and accountAddress; consumers must migrate the existing ignoredTokens array to this object.

    15.0.0release notes

  • The TokensController state is reorganized so network/chainID is the parent of account; consumers must migrate existing token state.

    15.0.0release notes

  • ApprovalController migrated to BaseControllerV2, and its resolve method was renamed to accept.

    15.0.0release notes

  • Extending BaseControllerV2 now requires supplying an additional generic parameter.

    15.0.0release notes

  • This is now an array of token address strings hidden for the active network and accountAddress pair, rather than an array of full token objects.

    15.0.0release notes

  • The redundant default export was removed; consumers using a default import must use named imports instead.

    15.0.0release notes

Performance 1

  • Token detection is faster for the most popular 1000 tokens.

    15.0.0release notes

Behavior and default changes 3

  • Inflight requests are canceled when chainId changes or the useStaticTokenList flag changes.

    15.0.0release notes

  • The host used by the token list API was updated.

    15.0.0release notes

  • Token list polling now restarts only when the network switches or useStaticTokenList changes, rather than on any preference or network configuration change.

    15.0.0release notes

@metamask/wallet 144 changes

Breaking changes 1

  • Adds EIP1559 support, including speedUpTransaction and stopTransaction. Consumers must check whether the transaction object includes a gas price and fetch and add one if needed.

    14.0.0release notes

Fixes and other changes 3

  • Updates asset detection to handle new fetch limits for the OpenSea collectibles API.

    14.0.0release notes

  • Gas fee estimate polling resets onNetworkStateChange.

    14.0.0release notes

  • Equality comparisons for token and collectible addresses are now case insensitive.

    14.0.0release notes

@metamask/wallet 133 changes

Breaking changes 3

  • AssetsController is removed and replaced by CollectiblesController and TokensController.

    13.0.0release notes

  • CollectiblesController is added as a replacement for AssetsController.

    13.0.0release notes

  • TokensController is added as a replacement for AssetsController.

    13.0.0release notes

@metamask/wallet 124 changes

Breaking changes 1

  • The constructor now requires an onNetworkStateChange listener.

    12.0.0release notes

New APIs and options 3

  • TokenRatesControllers now support chainId.

    12.0.0release notes

  • Added GasFeeController to provide gas fee estimates.

    12.0.0release notes

  • Added iconUrl to the Token type in TokenListController.

    12.0.0release notes

@metamask/wallet 101 changes

Breaking changes 1

  • The CurrencyRateController conversionRate state is now nullable after switching networks.

    10.0.0release notes

@metamask/wallet 84 changes

Breaking changes 2

  • The controller context was replaced, which may affect code that uses it.

    8.0.0release notes

  • The minimum supported Node.js version is now v12.

    8.0.0release notes

New APIs and options 1

Fixes and other changes 1

  • Collectibles are no longer removed during auto detection.

    8.0.0release notes

@metamask/wallet 73 changes

Breaking changes 1

  • Assets are now organized by chainid; this is a breaking change.

    7.0.0release notes

New APIs and options 1

  • Adds the ability to indicate whether a transaction was added from the user's local device and to indicate account creation time.

    7.0.0release notes

Behavior and default changes 1

  • Supports longer token symbols when using wallet_watchAsset.

    7.0.0release notes

@metamask/wallet 62 changes

Breaking changes 2

  • The default approval controller type was removed.

    6.0.0release notes

  • Enforces using chainId instead of networkId in NetworkController.

    6.0.0release notes

@metamask/wallet 58 changes

Breaking changes 2

  • The ApprovalInfo interface is renamed to Approval.

    5.0.0release notes

  • All approval requests must now specify types.

    5.0.0release notes

Security 1

  • Fixes an overly loose origin parameter type check that could permit invalid origins.

    5.0.0release notes

New APIs and options 3

  • Approval requests now include Date.now() timestamps in approval.time.

    5.0.0release notes

  • Adds a user-defined default type for approvals.

    5.0.0release notes

  • Enables has lookups using only the approval type.

    5.0.0release notes

Fixes and other changes 2

  • The PhishingController fetch option no-cache is now explicit.

    5.0.0release notes

  • The package is now compatible with Node 12.

    5.0.0release notes

@metamask/wallet 43 changes

Breaking changes 1

  • Removes NetworkStatusController, which is a breaking change for developers using it.

    4.0.0release notes

New APIs and options 2

@metamask/wallet 31 changes

Breaking changes 1

  • A project ID is now required when instantiating a NetworkController backed by Infura.

    3.0.0release notes

@metamask/wallet 22 changes

Breaking changes 2

  • The minimum required Node.js version is now 16.

    2.0.0release notes

  • TypeScript types were updated, which may require changes to developer code.

    2.0.0release notes

@metamask/wallet 11 changes

Behavior and default changes 1