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@metamask/wallet 12555 changes
New APIs and options 5
Exports the default distinct-address cap used during signature address extraction.
Adds a type for the results returned when collecting address-typed values from an EIP-712 message.
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.
Adds an options type for configuring address extraction, including exclusions and the address limit.
Exports the hard ceiling for the distinct-address cap during signature address extraction.
@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.
The minimum supported Node.js version is now 22.
The package now ships ES2022 code, requiring a compatible modern environment or bundler configuration to consume.
New APIs and options 2
Adds a mock that can substitute for InternalProvider in tests, assert requests, and inject canned responses.
Adds the MockInternalProviderStub type for use with the new mock provider.
@metamask/wallet 901 changes
Breaking changes 1
Exported as a class instead of a type, changing how developers can use this API.
@metamask/wallet 7321 changes
Breaking changes 8
All but the first argument to addTransaction have moved into an options bag.
The constructor now requires a getSelectedAddress callback argument.
Removes fetchAll; transaction history fetching is handled automatically on each new block when polling is enabled.
Removes the getCommonConfiguration method, which was intended mainly for internal use.
Removes the prepareUnsignedEthTx method, which was intended mainly for internal use.
The RemoteTransactionSource interface now requires an isSupportedNetwork method.
The fromBlock property type changed from string to number.
The networkType property was removed from RemoteTransactionSourceRequest.
New APIs and options 13
Adds a requireApproval option to addTransaction method options.
Transaction metadata now includes baseFeePerGas.
Transaction metadata now includes dappSuggestedGasFees.
Adds an optional apiKey constructor argument for incoming transactions.
Adds an optional includeTokenTransfers constructor argument for incoming transactions.
Adds an optional isEnabled constructor argument that can override the incoming transaction functionality based on a client preference.
Adds an optional updateTransactions constructor argument for incoming transactions.
Adds a method to generate approval requests from unapproved transactions.
Adds a method to start incoming transaction polling.
Adds a method to stop incoming transaction polling.
Transaction metadata now includes txReceipt.
Adds a method to request an immediate update of incoming transactions.
The wipeTransactions method now accepts an address argument.
@metamask/wallet 511 changes
Breaking changes 1
Signature requests now validate the chain, which may affect requests with a mismatched chain.
@metamask/wallet 3211 changes
Breaking changes 6
Now throws an error when decimals() returns an empty value (0x).
Now throws an error when symbol() returns an empty value (0x).
Controller subscriptions must be registered through the controller messenger rather than directly through the controller.
The constructor must receive infuraProjectId and messenger options; messenger should be a restricted controller messenger.
Migrates to BaseControllerV2: the constructor takes one options object instead of separate parameters, with initial state passed through its state property.
Phishing lists are no longer updated automatically; check with isOutOfDate and call updatePhishingLists to update them.
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.
Adds a PhishingController method for checking whether the phishing lists are out-of-date.
Adds an event dispatched when the provider instance variable is updated; on a network switch, it fires after the network is fully initialized.
Tooling 1
PhishingController test is now synchronous.
Fixes and other changes 1
Prevents parallel phishing configuration updates.
@metamask/wallet 315 changes
Breaking changes 3
The minimum Node.js version is bumped to Node 14.
PhishingController.test now returns a Promise.
This method is no longer async.
New APIs and options 1
Adds support for caveats on endowment permissions.
Behavior and default changes 1
Use this method to change the polling interval.
@metamask/wallet 294 changes
Breaking changes 2
Returns a buffer rather than a string, so consumers must adapt to the new return type.
Mnemonics in keyrings of this type are always serialized as arrays of numbers.
New APIs and options 2
Reintroduces NotificationController for in-app notifications.
Adds an optional timeout parameter for the token service.
@metamask/wallet 277 changes
Breaking changes 4
This class has been removed with no replacement.
This function has been removed with no replacement.
This type is no longer public; use FeeHistoryBlock instead.
This field can now be null in GasFeeEstimates returned by fetchGasEstimatesViaEthFeeHistory and stored in GasFeeController.
Behavior and default changes 2
This field can now be null in GasFeeEstimates returned by fetchGasEstimatesViaEthFeeHistory and stored in GasFeeController.
The userAddress parameter is now optional.
Fixes and other changes 1
The rate limit is no longer reset aggressively.
@metamask/wallet 242 changes
Breaking changes 1
Renames
checkAndUpdateCollectibleOwnershipStatus; consumers using the old name must update their code.
New APIs and options 1
Adds a method to check and update the ownership status of a single collectible.
@metamask/wallet 236 changes
Breaking changes 1
Callers must provide an error when calling clear for the method to function properly.
New APIs and options 3
A method was added to set a collectible as a favorite.
A method was added to check and update collectible ownership state.
GasFeeController exposes additional data sourced from the MetaSwap API to support edit gas fee functionality in the extension.
Behavior and default changes 1
GasFeeController uses eth_feeHistory to compute gas fee recommendations when the MetaSwap API is down.
Fixes and other changes 1
Polling initialization for collectibles was fixed.
@metamask/wallet 224 changes
Breaking changes 1
The chainId in the collectibles state shape is no longer normalized to decimal.
Security 1
IPFS URLs now use subdomains and CIDv1s instead of CIDv0s to enhance origin-based security for IPFS assets.
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.
Fixes and other changes 1
Fixed collectibles collection images.
@metamask/wallet 215 changes
Breaking changes 2
Changes the expected shape of the OpenSea contract API to use collections.
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.
New APIs and options 2
Adds chainId as a detection parameter.
Adds userAddress as a detection parameter.
Behavior and default changes 1
Modifies the requirements for adding an OpenSea-detected contract.
@metamask/wallet 203 changes
Breaking changes 3
Signature overloads for ApprovalController.has were removed.
Constructing the controller no longer starts polling; call its start method immediately after instantiation to start polling.
Constructing the controller no longer starts polling; call its start method immediately after instantiation to start polling.
@metamask/wallet 192 changes
Breaking changes 2
AssetsDetectionController was split into TokenDetectionController and CollectiblesDetectionController; consumers must import both and split method calls accordingly.
conversionDate is set to null when fetching data fails, so consumers must handle a null value.
@metamask/wallet 183 changes
Breaking changes 1
The constructor now requires getOwnerOf, balanceOfERC1155Collectible and uriERC1155Collectible properties from AssetsContractController for ERC1155 support.
New APIs and options 2
Custom networks are supported by querying the blockchain as the default.
Support is added for IPFS metadata URIs.
@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.
Behavior and default changes 2
Adds a client id header to GasFeeController.
Supports fiat conversion for more networks.
Fixes and other changes 1
Improves transaction state management for custom networks.
@metamask/wallet 164 changes
Breaking changes 1
The syncTokens method is removed from TokenListController.
Performance 1
HTTP caching is enabled for the dynamic token list managed by TokenListController.
Fixes and other changes 2
The method no longer initiates multiple simultaneous fetch requests.
Fixes controller state containing an invalid tokenList when the active network is not supported by the tokenList API.
@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.
A new state field manages ignored tokens by network and accountAddress; consumers must migrate the existing ignoredTokens array to this object.
The TokensController state is reorganized so network/chainID is the parent of account; consumers must migrate existing token state.
ApprovalController migrated to BaseControllerV2, and its resolve method was renamed to accept.
Extending BaseControllerV2 now requires supplying an additional generic parameter.
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.
The redundant default export was removed; consumers using a default import must use named imports instead.
Performance 1
Token detection is faster for the most popular 1000 tokens.
Behavior and default changes 3
Inflight requests are canceled when chainId changes or the useStaticTokenList flag changes.
The host used by the token list API was updated.
Token list polling now restarts only when the network switches or useStaticTokenList changes, rather than on any preference or network configuration change.
@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.
Fixes and other changes 3
Updates asset detection to handle new fetch limits for the OpenSea collectibles API.
Gas fee estimate polling resets onNetworkStateChange.
Equality comparisons for token and collectible addresses are now case insensitive.
@metamask/wallet 133 changes
Breaking changes 3
AssetsController is removed and replaced by CollectiblesController and TokensController.
CollectiblesController is added as a replacement for AssetsController.
TokensController is added as a replacement for AssetsController.
@metamask/wallet 124 changes
Breaking changes 1
The constructor now requires an onNetworkStateChange listener.
New APIs and options 3
TokenRatesControllers now support chainId.
Added GasFeeController to provide gas fee estimates.
Added iconUrl to the Token type in TokenListController.
@metamask/wallet 101 changes
Breaking changes 1
The CurrencyRateController conversionRate state is now nullable after switching networks.
@metamask/wallet 84 changes
Breaking changes 2
The controller context was replaced, which may affect code that uses it.
The minimum supported Node.js version is now v12.
New APIs and options 1
A restricted controller messenger was added.
Fixes and other changes 1
Collectibles are no longer removed during auto detection.
@metamask/wallet 73 changes
Breaking changes 1
Assets are now organized by chainid; this is a breaking change.
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.
Behavior and default changes 1
Supports longer token symbols when using wallet_watchAsset.
@metamask/wallet 62 changes
Breaking changes 2
The default approval controller type was removed.
Enforces using chainId instead of networkId in NetworkController.
@metamask/wallet 58 changes
Breaking changes 2
The ApprovalInfo interface is renamed to Approval.
All approval requests must now specify types.
Security 1
Fixes an overly loose origin parameter type check that could permit invalid origins.
New APIs and options 3
Approval requests now include Date.now() timestamps in approval.time.
Adds a user-defined default type for approvals.
Enables has lookups using only the approval type.
Fixes and other changes 2
The PhishingController fetch option no-cache is now explicit.
The package is now compatible with Node 12.
@metamask/wallet 43 changes
Breaking changes 1
Removes NetworkStatusController, which is a breaking change for developers using it.
New APIs and options 2
Adds ApprovalController.
Can be configured to always fetch the USD rate.
@metamask/wallet 31 changes
Breaking changes 1
A project ID is now required when instantiating a NetworkController backed by Infura.
@metamask/wallet 22 changes
Breaking changes 2
The minimum required Node.js version is now 16.
TypeScript types were updated, which may require changes to developer code.
@metamask/wallet 11 changes
Behavior and default changes 1
Assets detection is improved.