unstale

npm / viem

viem

What changed in viem 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

104 breaking14 security4 deprecations259 new APIs and options21 performance43 behavior and defaults2 tooling251 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

viem 2698 changes

Breaking changes 104

  • A requestId containing a line break now throws SiweInvalidMessageFieldError instead of allowing fields such as Resources to be appended to the signed message.

    2.58.1release notes

  • Updated HPP Sepolia and Orderly Sepolia default RPC URLs and the Orderly Sepolia block explorer URL, and removed unusable HPP default WebSocket URLs.

    2.58.1release notes

  • Now rejects fixed-length typed-data array fields with a mismatched number of elements through validation.

    2.58.1release notes

  • The HTTP transport now throws an HttpRequestError instead of resolving with undefined when a server replies with an empty body.

    2.58.1release notes

  • Fixed acceptance of fixed-length array fields with the wrong number of elements in any dimension or inside a struct array; now throws AbiEncodingArrayLengthMismatchError.

    2.58.1release notes

  • The default salt is now the voucher signer's configuration commitment when the signer is a configurable account or an access key of one.

    2.58.0release notes

  • A keychain signature nested in another keychain signature is now refused.

    2.57.20release notes

  • A key authorization scope with recipients but no selector is now refused.

    2.57.20release notes

  • Deriving a Tempo address from a compressed public key is now refused.

    2.57.20release notes

  • Tempo transactions are refused when validBefore or validAfter is not a non-negative safe integer, chainId is not a positive safe integer, or fee payer signature yParity is not 0 or 1.

    2.57.20release notes

  • Parsing now runs in linear time and refuses signatures above 2048 bytes.

    2.57.20release notes

  • Tempo signature verification no longer accepts a signature from a root key retired by a config commitment.

    2.57.19release notes

  • When account is null, throws account is required. instead of falling back to the client account.

    2.57.18release notes

  • When account is null, throws AccountNotFoundError rather than falling back to the client account.

    2.57.18release notes

  • Rejects every call in a multicall batch if the returned result count differs from the number of calls.

    2.57.18release notes

  • Local batch gateway responses in one lookup are limited to 10 MiB; lookups fail if that size is exceeded.

    2.57.18release notes

  • Limits decoded bytes and string values to 32 times the input size and throws AbiDecodingSizeLimitExceededError beyond that limit.

    2.57.18release notes

  • Tempo Earn deposit throws AccountNotFoundError when account is null and no recipient is given, rather than defaulting the recipient to the client account.

    2.57.18release notes

  • Tempo Earn depositShares throws AccountNotFoundError when account is null and no recipient is given, rather than defaulting the recipient to the client account.

    2.57.18release notes

  • Returns only paymaster-related fields from the paymaster response.

    2.57.18release notes

  • Returns only paymaster-related fields from the paymaster response.

    2.57.18release notes

  • Keeps the supplied chainId argument or chain id over the eth_fillTransaction result and throws ChainMismatchError when they differ.

    2.57.18release notes

  • Tempo Earn redeem throws AccountNotFoundError when account is null and no recipient is given, rather than defaulting the recipient to the client account.

    2.57.18release notes

  • In viem/zksync, sends an unsigned eth_sendTransaction when account is null rather than using the Client's account.

    2.57.18release notes

  • Celo transactions with a feeCurrency are serialized as CIP-64 transactions.

    2.57.18release notes

  • In viem/zksync, throws AccountNotFoundError when account is null instead of using the Client's account.

    2.57.18release notes

  • Rejects SIWE messages with a nonce shorter than eight alphanumeric characters or a version other than 1, as required by EIP-4361.

    2.57.18release notes

  • Returns false for the zero address and signatures whose ECDSA recovery fails, rather than matching the zero address.

    2.57.18release notes

  • Disables CCIP-Read for onchain verification calls, so an OffchainLookup revert from a signer returns false.

    2.57.18release notes

  • Tempo Earn withdrawExact throws AccountNotFoundError when account is null and no recipient is given, rather than defaulting the recipient to the client account.

    2.57.18release notes

  • Removes isAdmin as part of retiring Tempo admin access keys.

    2.57.17release notes

  • Removes watchAdminAuthorized as part of retiring Tempo admin access keys.

    2.57.17release notes

  • Removes the admin option from key authorizations as Tempo retires admin access keys.

    2.57.17release notes

  • Renames the UpgradeMustBeOnlyCall error.

    2.57.17release notes

  • With mode allowAccessKey, verification now supports configurable access keys and rejects retired root keys and inner signatures that do not match the stored key type.

    2.57.17release notes

  • Gateway requests now use the HTTP transport timeout and response cap, reject non-HTTP(S) URLs, and enforce limits on nested callbacks, batches, requests, and concurrency.

    2.57.15release notes

  • Throws AbiItemAmbiguityError for overloads JavaScript cannot distinguish, while resolving distinguishable values by byte length and integer range.

    2.57.15release notes

  • Throws InvalidYParityError when yParity is not 0 or 1, as EIP-7702 treats those values as having no authority.

    2.57.15release notes

  • Rejects invalid EIP-712 field types and references to structs missing from types, including structs referenced only as array elements.

    2.57.15release notes

  • Default catch-up is limited to 100 missed blocks; longer gaps emit only the latest block.

    2.57.15release notes

  • AutoSwap swaps now require request opt-in through capabilities.autoSwap; fee estimates remain default.

    2.57.14release notes

  • Balance diffs now require request opt-in through capabilities.balanceDiffs: true; fee estimates remain default.

    2.57.14release notes

  • Same-token incoming and outgoing transfers are reported separately, and approval exposure is net of allowance consumed by the calls.

    2.57.14release notes

  • Formatted Tempo transactions now carry nonce as an exact bigint, fixing errors when nonces exceed Number.MAX_SAFE_INTEGER.

    2.57.13release notes

  • Stored configs are keyed by chain ID, so account_getConfig no longer serves a config stored for another chain; configs stored under the previous key are no longer read.

    2.57.13release notes

  • Configurable account addresses are derived from the initial config hash instead of a recovery factory, so Account.fromConfig no longer takes a factory option.

    2.57.12release notes

  • Removed the configurable account recovery factory address.

    2.57.12release notes

  • Fixed handling of values shorter than 32 bytes and legacy v values with a chain id; invalid v and high s now produce errors.

    2.57.12release notes

  • The default is now the shorter of pollingInterval and half of chain.blockTime, so block numbers are cached for at most half a block and a long pollingInterval no longer lengthens the cache.

    2.57.11release notes

  • Renames the Abis.nativeMultisig export to Abis.configurableAccount.

    2.57.10release notes

  • Renames the Addresses.nativeMultisig export to Addresses.configurableAccount.

    2.57.10release notes

  • Renames the Addresses.nativeMultisigFactory export to Addresses.configurableAccountRecoveryFactory.

    2.57.10release notes

  • Renames the Selectors.nativeMultisig export to Selectors.configurableAccount.

    2.57.10release notes

  • Renamed the experimental native multisig APIs to configurable accounts, following TIP-1107.

    2.57.5release notes

  • Now builds the manager from a Store instead of a custom get/set/remove source.

    2.57.5release notes

  • The Tempo verifier ABI reference changed from Abis.zone to Abis.core.

    2.56.9release notes

  • Tempo's earnMerkleRewardDistributor ABI now uses fundAndPublishRoot with settlementId, expectedRootVersion, funder, assets, minEarnShares, root, totalEntitlement, and statementHash arguments.

    2.56.9release notes

  • Tempo's publishRoot ABI now takes expectedRootVersion before root, totalEntitlement, and statementHash.

    2.56.9release notes

  • Renamed Abis.abis to Abis.all and expanded the aggregate with Earn and Zone ABIs.

    2.56.0release notes

  • Resolves Zone portal addresses deterministically for Zone IDs and chain IDs, replacing chain-specific Zone portal registries.

    2.56.0release notes

  • Replaced tempo.earn.bindErc4626Engine with the engine-agnostic bindEngine action, which adds optional final ownership transfer.

    2.56.0release notes

  • Zone exports moved from viem/tempo/zones into viem/tempo.

    2.56.0release notes

  • Replaced curried Zone network factories with built-in Zone definitions and Zone.from for custom chains.

    2.56.0release notes

  • Renamed the Tempo Earn private entry recovery parameter from recoveryRecipient to tempoRefundRecipient.

    2.55.18release notes

  • Required EIP-4361 / RFC 3339 date-time strings and rejected invalid time values.

    2.55.16release notes

  • Rejects nonstandard uint and int aliases to prevent noncanonical EIP-712 hashes.

    2.55.11release notes

  • Removed portalAddresses from viem/tempo.

    2.55.8release notes

  • Replaced zone.getZoneInfo.sequencer with sequencers.

    2.55.7release notes

  • Bounceback recipients now default to accounts.

    2.55.1release notes

  • Rejects RLP payloads with trailing bytes after a decoded item or list items extending beyond their declared list length.

    2.54.2release notes

  • Validation now rejects claimers that can never claim funds, including TIP-1022 virtual addresses, TIP-20 token addresses, and Tempo system precompiles.

    2.54.2release notes

  • Tempo token .call helpers now take the client before their action arguments.

    2.54.0release notes

  • Tempo token allowance reads now return an Amount object with amount, decimals, and formatted fields instead of a bigint.

    2.54.0release notes

  • Tempo token balance reads now return an Amount object with amount, decimals, and formatted fields instead of a bigint.

    2.54.0release notes

  • Decoding deeply nested payloads now has an RLP depth limit.

    2.54.0release notes

  • ERC-20 token actions now resolve token symbols from the Client tokens array rather than built-in chain tokens config.

    2.54.0release notes

  • Renamed Actions.wallet.send to Actions.wallet.transfer.

    2.49.2release notes

  • The send parameters rename value to amount to match the latest wallet RPC schema.

    2.49.0release notes

  • Added withRelay to viem/tempo as the primary relay transport.

    2.47.18release notes

  • Added hardfork-aware behavior that uses getRemainingLimitWithPeriod on T3+ chains and returns a { remaining, periodEnd } object.

    2.47.10release notes

  • Now propagates execution reverted errors (code 3) from eth_fillTransaction instead of silently falling through.

    2.47.10release notes

  • Removed the Tempo Andantino network and updated references.

    2.47.10release notes

  • Removed deprecated RPCs for Zircuit Mainnet and the old Zircuit testnet.

    2.47.5release notes

  • chainId is now required when signing access key authorizations; client.accessKey.signAuthorization is recommended to infer the chain ID.

    2.47.0release notes

  • Changed the Ronin Saigon Testnet chainId after an L2 migration.

    2.46.3release notes

  • Removed the seiDevnet chain because the network is defunct.

    2.46.3release notes

  • Removed fee payer magic; fee payer envelopes now receive pure support when prefixed with 0x78.

    2.46.2release notes

  • Removed the Ekta chain.

    2.46.1release notes

  • In viem/tempo, use nonceKey: 'expiring' instead of nonceKey: 'random' for time-based replay protection using validBefore timestamps.

    2.46.0release notes

  • Renamed from Abis.stablecoinExchange.

    2.44.0release notes

  • Renamed to Abis.stablecoinDex.

    2.44.0release notes

  • Renamed from Address.stablecoinExchange.

    2.44.0release notes

  • Renamed to Address.stablecoinDex.

    2.44.0release notes

  • Removed because the protocol no longer emits the FeeSwap event.

    2.44.0release notes

  • Removed and merged into the OrderPlaced event.

    2.44.0release notes

  • Removed from the Tempo extension.

    2.44.0release notes

  • Removed from the Tempo extension.

    2.44.0release notes

  • Renamed from reward.start for distributing rewards; it no longer supports streaming.

    2.44.0release notes

  • Renamed from reward.getTotalPerSecond; returns the global reward per token value instead of a per-second rate.

    2.44.0release notes

  • Renamed to reward.getGlobalRewardPerToken, which returns the global reward per token value instead of a per-second rate.

    2.44.0release notes

  • Renamed to reward.distribute, which no longer supports streaming.

    2.44.0release notes

  • Renamed from reward.watchRewardScheduled; watches for reward distributed events.

    2.44.0release notes

  • Renamed to reward.watchRewardDistributed, which watches for reward distributed events.

    2.44.0release notes

  • Removed redundant OP Stack gas estimations.

    2.41.1release notes

Security 14

  • Malformed JSON now rejects pending requests instead of escaping the socket data listener.

    2.58.1release notes

  • Nonces are generated with crypto.getRandomValues, avoiding consecutive nonces that previously shared 95 of their 96 characters.

    2.58.0release notes

  • Rejects fills when requested and filled senders differ, and validates and signs for the same sender.

    2.57.18release notes

  • Treats ERC-8010 pre-delegated signatures as valid only when the isValidSignature call succeeds.

    2.57.18release notes

  • Batches no longer use another transport's authorization headers and request configuration.

    2.57.17release notes

  • Waiting for confirmations no longer returns a receipt discarded by a reorg.

    2.57.17release notes

  • Sponsored fills no longer keep a requested feeToken that the fee payer did not sign, avoiding an invalid fee payer signature.

    2.57.15release notes

  • The nonce manager no longer hands out a duplicate nonce when the previously consumed nonce was 0.

    2.57.11release notes

  • Relay sponsorship in viem/tempo was hardened.

    2.57.8release notes

  • Preserves relay-filled validBefore and validAfter bounds so sponsored Tempo transactions retain a valid fee-payer signature.

    2.57.7release notes

  • Token balance and metadata probes now have limited gas so failing candidates cannot exhaust the asset-tracing gas budget.

    2.56.6release notes

  • isHash now validates length directly, preventing odd-length hex strings from incorrectly passing the hash check.

    2.56.2release notes

  • Omitted validAfter values for Tempo expiring-nonce transactions now default to random past timestamps, preventing otherwise-identical transactions from sharing a nonce hash.

    2.55.4release notes

  • Basic-auth credentials are stripped from URLs surfaced in error meta-messages for HttpRequestError, WebSocketRequestError, RpcRequestError, and TimeoutError.

    2.48.6release notes

Deprecations 4

  • Deprecated in favor of areum.

    2.58.1release notes

  • Deprecated whitechainTestnet.

    2.58.0release notes

  • Deprecated withFeePayer in favor of withRelay.

    2.47.18release notes

  • Renamed to tempoModerato; the old export remains available as a deprecated alias.

    2.44.0release notes

New APIs and options 259

  • Added so createClientResolver.ErrorType narrows on namespaced error names.

    2.58.1release notes

  • Added channel.getOpenSalt for Tempo channels.

    2.58.0release notes

  • Added the typed ChannelSaltNotSignerCommitmentError.

    2.58.0release notes

  • Added the typed ChannelSignerConfigChangedError.

    2.58.0release notes

  • Added the t15 hardfork to viem/tempo.

    2.58.0release notes

  • Added the SaltNotSignerCommitment error to the Tempo channel reserve ABI.

    2.58.0release notes

  • Added the SignerConfigChanged error to the Tempo channel reserve ABI.

    2.58.0release notes

  • Added the SignerSnapshotCached event to the Tempo channel reserve ABI.

    2.58.0release notes

  • Added OP Stack configuration to whitechain.

    2.58.0release notes

  • Kinetiq Elysium and Kinetiq Elysium Testnet chains were added.

    2.57.19release notes

  • Resolved tokens now include the chain they were resolved for.

    2.57.19release notes

  • Adds a blockRange parameter to read logs across a block range in pages, splitting pages rejected by an RPC provider.

    2.57.18release notes

  • Reads logs across a block range in pages and splits pages rejected by an RPC provider.

    2.57.18release notes

  • Adds a signal parameter that stops waiting and rejects with the signal's reason.

    2.57.18release notes

  • Adds configurableAccountShim ABI exports for registered configurable accounts, including isValidSignature and onERC721Received.

    2.57.17release notes

  • Adds an access option so a configurable account can sign as another account's access key, using keychain envelopes accepted by the relay fee payer.

    2.57.17release notes

  • Allows keyAuthorization in account upgrades; the accounts relay also caches configs from upgrades anywhere in a batch.

    2.57.17release notes

  • Adds an error phase to chain prepareTransactionRequest hooks, allowing them to return a request that retries eth_fillTransaction once.

    2.57.17release notes

  • Adds a Tempo transaction request field populated during preparation while a configurable account's key authorization lacks owner quorum.

    2.57.17release notes

  • Adds owner approval coordination for configurable accounts acting as access keys.

    2.57.17release notes

  • Added experimental Gateway actions for wallet-paid inference, object storage, compute, and key-value state, including standalone actions and capability lookup.

    2.57.16release notes

  • Added keyAuthorization to attach a signed key authorization to account transactions until the chain registers the access key.

    2.57.15release notes

  • Added to viem/tempo to rebuild a configurable TIP-1107 account from JSON with passkey owners that sign.

    2.57.15release notes

  • Added to viem/tempo to store a configurable TIP-1107 account as JSON.

    2.57.15release notes

  • Added an optional nonce parameter to reset; sendTransaction and sendTransactionSync set it to the consumed nonce when a send fails after consume returns.

    2.57.15release notes

  • Added expiringNonceMaxExpiry to Transaction.

    2.57.15release notes

  • Added Turkchain Mainnet, chain ID 1919, to the supported chains.

    2.57.15release notes

  • Added autoSwap, which buys a fill's missing token on the stablecoin DEX and reports the swap as capabilities.autoSwap.

    2.57.14release notes

  • Added the Molibra chain.

    2.57.13release notes

  • Added an option that resolves and stores configs the store does not hold.

    2.57.13release notes

  • Configurable accounts created with Account.fromConfig can sign messages using the same configurable signature envelope as sign.

    2.57.13release notes

  • Configurable accounts created with Account.fromConfig can sign typed data using the same configurable signature envelope as sign.

    2.57.13release notes

  • Added an even option that rejects hex values with an odd number of hex characters.

    2.57.12release notes

  • Added ValueChain mainnet and testnet chains.

    2.57.12release notes

  • Added a replacement parameter to detect a transaction replacement when the node dropped the transaction before the wait first read it.

    2.57.12release notes

  • Exported from viem/tempo so declaration emit can name the transport returned by withFeePayer.

    2.57.11release notes

  • Exported from viem/tempo so declaration emit can name the transport returned by withRelay.

    2.57.11release notes

  • Added the ZKsync Era Testnet chain.

    2.57.11release notes

  • Adds a factory option that defaults to Addresses.configurableAccountRecoveryFactory.

    2.57.10release notes

  • Adds an upgrade form for creating the upgraded account.

    2.57.10release notes

  • Adds the configurable key type.

    2.57.10release notes

  • Adds an action to derive configurable account precompile accounts.

    2.57.10release notes

  • Adds an action to upgrade an existing account to a configurable account in place.

    2.57.10release notes

  • Adds a synchronous action to upgrade an existing account to a configurable account in place.

    2.57.10release notes

  • Adds an action for configurable account precompiles and configurable account signature support.

    2.57.10release notes

  • Adds hardforks t7 through t14.

    2.57.10release notes

  • RWA Chain and RWA Chain Sepolia chains were added.

    2.57.8release notes

  • Added a transactionReplacement chain config hook to waitForTransactionReceipt.

    2.57.8release notes

  • Added the ousd token address to Addresses in viem/tempo.

    2.57.6release notes

  • Tempo actions now provide typed TempoExecutionError errors, with per-module subclasses carrying decoded arguments, fetched onchain details, and resolution hints.

    2.57.6release notes

  • Added an action for saving authorizations signed elsewhere.

    2.57.5release notes

  • Added the QMS Testnet chain.

    2.57.5release notes

  • Added a Tempo plugin that saves key authorizations signed with Actions.accessKey.signAuthorization and attaches them to the access key's next transaction, including configurable account authorizations at quorum.

    2.57.5release notes

  • Adds the current Tempo ZoneInbox ABI, selectors, and predeploy address for reading deposit outcomes.

    2.57.4release notes

  • Added the CRYMAD Chain chain.

    2.57.2release notes

  • Added the CRYMAD Chain L2 chain.

    2.57.2release notes

  • Added from to burn tokens from another address via TIP-1006 burnAt (T12).

    2.57.2release notes

  • Added Open USD (OUSD) token support on Ethereum, Tempo, and Base.

    2.57.1release notes

  • Added the BlockDAG chain definition.

    2.57.0release notes

  • Added the CandyChain chain definition.

    2.57.0release notes

  • Added a resolver that lazily resolves and caches typed clients across configured chains using a transport map or callback.

    2.57.0release notes

  • Added the Kortana chain definition.

    2.57.0release notes

  • Added a Relay RPC handler in viem/tempo with a composable plugin mechanism.

    2.57.0release notes

  • Added an action for batch retrieval of contract storage slots.

    2.56.9release notes

  • simulateBlocks call results can include the node-reported gas used before refunds, on successful or failed calls; it is undefined when the node does not report it and is not a guaranteed sufficient gas limit.

    2.56.9release notes

  • Added PropAMM actions to viem/tempo.

    2.56.9release notes

  • Added Rabbit Chain Testnet (chain ID 9280) to viem/chains.

    2.56.9release notes

  • Added E Canna Mainnet (4111) as a supported chain.

    2.56.7release notes

  • Added E Canna Testnet (4112) as a supported chain.

    2.56.7release notes

  • Added OrdoFi public RPC endpoints over HTTP and WebSocket to Robinhood Chain.

    2.56.7release notes

  • Added Zagros as a supported chain.

    2.56.7release notes

  • Added public RPC, block explorer, Multicall3, and USDC address metadata for Arc.

    2.56.6release notes

  • Added HyveChain.

    2.56.6release notes

  • Added whitechainSepolia to viem/op-stack chain exports.

    2.56.6release notes

  • Added Multisig accounts to viem/tempo.

    2.56.2release notes

  • Added the core contract ABI group.

    2.56.0release notes

  • Added the Earn contract ABI group.

    2.56.0release notes

  • Added the Zone contract ABI group.

    2.56.0release notes

  • Added selector maps for Zone portal, outbox, messenger, and verifier ABIs.

    2.56.0release notes

  • The Zone Portal ABI output now includes the derived public key address while preserving T10 encryption key reads.

    2.56.0release notes

  • Added an action to read Zone Portal administration, sequencer, and token metadata.

    2.56.0release notes

  • Added ZoneFactory registry reads to Tempo exports.

    2.56.0release notes

  • Added ZonePortal administration operations to Tempo exports.

    2.56.0release notes

  • Added the Morph Tachyon mainnet chain.

    2.55.19release notes

  • Added the Morph Tachyon testnet chain.

    2.55.19release notes

  • Added the YNX Testnet chain.

    2.55.19release notes

  • Added Haus Chain Testnet.

    2.55.17release notes

  • Added the Tempo Validator Config V2 precompile address.

    2.55.10release notes

  • Added the multicall3 contract to EDU Chain mainnet.

    2.55.10release notes

  • Added address registries to viem/tempo.

    2.55.8release notes

  • Added Portal and Messenger contracts to viem/tempo.

    2.55.8release notes

  • Added Zone E metadata to viem/tempo.

    2.55.8release notes

  • Added earn actions to tempo/viem.

    2.55.7release notes

  • The Robinhood chain definition now includes blockTime.

    2.55.4release notes

  • The xLayer chain definition now includes blockTime.

    2.55.4release notes

  • Added helpers to prepare encrypted deposit recipients and withdrawal requests with normalized details, maximum fees, and distinct callback and Zone transaction gas limits.

    2.55.2release notes

  • Adds actions for waiting on Tempo deposit status.

    2.55.1release notes

  • Adds actions for Tempo zone encryption keys.

    2.55.1release notes

  • Adds blockHash and requireCanonical parameters to pin onchain signature verification to a specific block via EIP-1898.

    2.55.1release notes

  • Added the Defi Oracle Meta Mainnet chain.

    2.55.0release notes

  • Added to OP Stack transaction receipts.

    2.55.0release notes

  • Added a utility for filtering chain definitions by structured criteria.

    2.55.0release notes

  • Added the Robinhood Chain.

    2.55.0release notes

  • Added the Robinhood Chain Testnet.

    2.55.0release notes

  • Adds an action to retrieve a raw, serialized transaction via eth_getRawTransactionByHash.

    2.54.4release notes

  • Added as a TIP-1061 multisig gas estimation hint and attached to multisig requests so node-side fill and estimation price bootstrap gas.

    2.54.3release notes

  • Added as a TIP-1061 multisig gas estimation hint.

    2.54.3release notes

  • Exported the Tempo tip20ChannelReserve address.

    2.54.2release notes

  • Added the Mars Credit chain.

    2.54.2release notes

  • Added the Storage Credits precompile ABI, address, and selectors to Tempo exports.

    2.54.2release notes

  • Added preparation support for Tempo Zone encrypted deposits.

    2.54.2release notes

  • Added a tokens export with curated token sets that can be passed to a Client's tokens property.

    2.54.1release notes

  • Added EURC, USYC, and cirBTC token definitions for use from viem/tokens.

    2.54.1release notes

  • BattleChain Mainnet, with chainId 626, was added to viem/chains.

    2.54.0release notes

  • MarooTestnet was added as a chain.

    2.54.0release notes

  • A new entrypoint provides token exports such as the usdc import shown in the notes.

    2.54.0release notes

  • Adds createClient to viem/tempo with a default chain, transport, and actions.

    2.53.1release notes

  • Adds access-key witness actions in viem/tempo.

    2.52.0release notes

  • Adds an access-key hash verification action in viem/tempo.

    2.52.0release notes

  • Adds the receivePolicyGuard precompile address to Addresses.

    2.52.0release notes

  • Adds the signatureVerifier precompile address to Addresses.

    2.52.0release notes

  • Adds admin access key actions in viem/tempo.

    2.52.0release notes

  • Adds the t4 hardfork to Hardfork.

    2.52.0release notes

  • Adds the t5 hardfork to Hardfork.

    2.52.0release notes

  • Adds the t6 hardfork to Hardfork.

    2.52.0release notes

  • Adds receivePolicy actions in viem/tempo.

    2.52.0release notes

  • Added a manager that can be used by prepareTransactionRequest to attach pending key authorizations.

    2.51.2release notes

  • Added channel actions for reading and mutating TIP-20 channel reserve state.

    2.51.0release notes

  • Added support for the eth_getBlockReceipts RPC method.

    2.51.0release notes

  • Exported ExtractFormattedTransactionRequest for use by developers.

    2.51.0release notes

  • Added logoURI to TIP-20 metadata and token creation.

    2.51.0release notes

  • Added raw signing support to Tempo access key accounts.

    2.51.0release notes

  • Added the Arc chain.

    2.49.3release notes

  • Adds an optional UTF-8 memo field, up to 32 bytes; it is rejected for non-TIP-20 tokens.

    2.49.0release notes

  • Request options and the call action now support AbortSignal, allowing requests to be aborted.

    2.49.0release notes

  • Added wallet_ JSON-RPC Actions for opening send, swap, and deposit flows.

    2.48.11release notes

  • Added capabilities to TransactionRequestTempo and forwarded it through formatTransactionRequest.

    2.48.8release notes

  • Re-exports VirtualAddress from ox/tempo.

    2.48.4release notes

  • Adds an action to the TIP-1022 Address Registry precompile virtual address API.

    2.48.4release notes

  • Adds an action to the TIP-1022 Address Registry precompile virtual address API.

    2.48.4release notes

  • Adds an action to the TIP-1022 Address Registry precompile virtual address API.

    2.48.4release notes

  • Adds an action to the TIP-1022 Address Registry precompile virtual address API.

    2.48.4release notes

  • Re-exports Bytes, PublicKey, and Secp256k1 from viem/tempo, making them available through this entry point.

    2.48.3release notes

  • Added Tron block time.

    2.48.2release notes

  • Added support for { address, type } and { publicKey, type } access key formats, alongside { accessKeyAddress, keyType }, for signKeyAuthorization and access key actions.

    2.48.2release notes

  • Added OP Stack chain configuration for Zircuit.

    2.48.2release notes

  • Added Tempo zones support.

    2.48.0release notes

  • Added a combined abis export in viem/tempo that concatenates all Tempo precompile ABIs into a single array.

    2.47.18release notes

  • Added the error capability for structured execution error reporting from the relay.

    2.47.18release notes

  • Added EIP-5792 capabilities to the fillTransaction return type.

    2.47.15release notes

  • The fillTransaction return type now includes a meta property.

    2.47.14release notes

  • Added the Expiry module to viem/tempo for generating unix timestamp expiries, such as Expiry.hours(1) and Expiry.days(30).

    2.47.12release notes

  • Added the Fluent Mainnet chain.

    2.47.11release notes

  • Added limits.period to access key authorizations for periodic spending limits.

    2.47.11release notes

  • Added scopes to access key authorizations for contract call scoping.

    2.47.11release notes

  • Added the BattleChain Testnet chain definition.

    2.47.10release notes

  • Added the Eden chain definition.

    2.47.10release notes

  • Added the Gensyn Mainnet chain definition.

    2.47.10release notes

  • Added the Igra Network chain definition.

    2.47.10release notes

  • Added the multicall3 configuration to the Katana chain config.

    2.47.10release notes

  • Added the Mezo chain definition.

    2.47.10release notes

  • Added the Mezo Testnet chain definition.

    2.47.10release notes

  • Added the Radius Network chain definition with chain ID 723487.

    2.47.10release notes

  • Added the Radius Test Network chain definition with chain ID 72344.

    2.47.10release notes

  • Added TIP-1004 (EIP-2612) permit functions and related errors to the tip20 ABI.

    2.47.10release notes

  • Added access key signature verification support through mode: 'allowAccessKey'.

    2.47.10release notes

  • Added a mode parameter to verifyHash.

    2.47.6release notes

  • Added a mode parameter to verifyMessage.

    2.47.6release notes

  • Added the CONX chain definition for use with viem.

    2.47.5release notes

  • Defined DisputeGameFactory for Lisk, Mode, and Zora.

    2.47.5release notes

  • TempoAddress is now exported from ox/tempo.

    2.47.0release notes

  • Exported from from Account in viem/tempo.

    2.46.3release notes

  • Added the getDelegation utility for EIP7702.

    2.46.3release notes

  • Added the getMetadata accessKey action in viem/tempo.

    2.46.3release notes

  • Added the getRemainingLimit accessKey action in viem/tempo.

    2.46.3release notes

  • Added the Krown chain for use in viem.

    2.46.3release notes

  • Added the revoke accessKey action in viem/tempo.

    2.46.3release notes

  • Added the updateLimit accessKey action in viem/tempo.

    2.46.3release notes

  • Added support for the Citrea Mainnet chain.

    2.45.2release notes

  • Added the LuxePorts chain.

    2.45.2release notes

  • Added an Etherscan explorer for MegaETH.

    2.45.2release notes

  • Added WalletConnectSessionSettlementError as a non-retryable transport error.

    2.45.2release notes

  • Added the XGR Mainnet chain.

    2.45.2release notes

  • Added a chain definition for Alpen Testnet.

    2.45.1release notes

  • Added the faucet.fundSync action to the decorator.

    2.45.1release notes

  • Added a chain definition for Horizen Testnet.

    2.45.1release notes

  • Added a chain definition for KiiChain mainnet.

    2.45.1release notes

  • Added the nonce action to the decorator.

    2.45.1release notes

  • Added a chain definition for the Subtensor EVM chain.

    2.45.1release notes

  • Adds a dataSuffix parameter to attach additional calldata to transactions.

    2.45.0release notes

  • Adds a dataSuffix parameter that automatically appends the suffix to transaction actions submitted by the client.

    2.45.0release notes

  • Adds the MegaETH Mainnet chain.

    2.45.0release notes

  • Adds RISE Mainnet.

    2.45.0release notes

  • Exports the SignTransactionRequest type.

    2.45.0release notes

  • Added an assertChainId parameter to optionally skip chain ID assertion.

    2.44.4release notes

  • Added support for the ADI_Chain network.

    2.44.2release notes

  • Added support for embeddable Basic authentication on the http transport.

    2.44.2release notes

  • Added a mainnet placeholder for the tempo chain.

    2.44.2release notes

  • Added the zkXPLA network.

    2.44.2release notes

  • Added an action to cancel stale orders from restricted makers.

    2.44.0release notes

  • The event now includes isFlipOrder and flipTick fields; FlipOrderPlaced was merged into it.

    2.44.0release notes

  • Added support for the Tempo Moderato testnet; this replaces tempoTestnet, which remains available as a deprecated alias.

    2.44.0release notes

  • Added the salt parameter.

    2.44.0release notes

  • Added the CpChain network.

    2.43.4release notes

  • Added Apollo mainnet.

    2.43.2release notes

  • Added HPP Mainnet and Sepolia.

    2.43.2release notes

  • Adds the DataHaven Testnet chain.

    2.43.0release notes

  • Adds experimental named tuple support for contract-related actions and utilities.

    2.43.0release notes

  • Adds new SKALE Base Chains for Testnet and Mainnet.

    2.43.0release notes

  • Adds the Somnia network.

    2.43.0release notes

  • Adds Tempo Actions for calling enshrined protocol features such as the Stablecoin Token Factory.

    2.43.0release notes

  • Adds defineChain#verifyHash for chain-specific signature verification.

    2.43.0release notes

  • Added blockTimestamp to the Log type.

    2.42.1release notes

  • Added XRPL EVM support.

    2.42.1release notes

  • Adds the EntryPoint v0.9 ABI constant for Account Abstraction (ERC-4337).

    2.42.0release notes

  • Adds the EntryPoint v0.9 address constant for Account Abstraction (ERC-4337).

    2.42.0release notes

  • Adds '0.9' as a supported EntryPoint version.

    2.42.0release notes

  • Adds the Henesys network.

    2.42.0release notes

  • Adds Stable Testnet.

    2.42.0release notes

  • Adds the Taiko Hoodi Testnet.

    2.42.0release notes

  • Adds UserOperation<'0.9'> with a paymasterSignature field for parallelizable paymaster signing.

    2.42.0release notes

  • Added a preference to use a chain-specific prepared transaction nonce.

    2.41.2release notes

  • Added chain-specific transaction preparation logic through the chain.prepareTransactionRequest config.

    2.41.1release notes

  • Added the estimateOperatorFee action for OP Stack chains.

    2.40.4release notes

  • Added Reactive Lasna Testnet.

    2.40.4release notes

  • verifyMessage now supports getAction.

    2.40.2release notes

  • verifyTypedData now supports getAction.

    2.40.2release notes

  • Added the hyperliquid chain.

    2.40.1release notes

  • Adds an action supporting eth_fillTransaction.

    2.40.0release notes

  • Adds a passphrase option.

    2.40.0release notes

  • Adds a url property to request errors.

    2.40.0release notes

  • Added the Etherlink Shadownet Testnet chain definition.

    2.39.3release notes

  • Added the Monad mainnet chain definition.

    2.39.3release notes

  • Transport configuration now accepts account as a parameter.

    2.39.2release notes

  • Jasmy Chain was added as a supported chain.

    2.39.2release notes

  • POTOS Testnet was added as a supported chain.

    2.39.2release notes

  • Added the nonce property to support eth_getTransactionBySenderAndNonce.

    2.39.0release notes

  • Added the sender property to support eth_getTransactionBySenderAndNonce.

    2.39.0release notes

  • Added Helios Testnet.

    2.39.0release notes

  • Added POTOS Mainnet.

    2.39.0release notes

  • Added Silent Data Mainnet.

    2.39.0release notes

  • Added Xone mainnet.

    2.39.0release notes

  • Added Xone testnet.

    2.39.0release notes

  • Added the Arc Testnet chain.

    2.38.6release notes

  • Added blockTime to the abstract, abstractTestnet, sophon, sophonTestnet, zksync, and zksyncSepoliaTestnet chain definitions.

    2.38.6release notes

  • Added support for 0g testnet.

    2.38.5release notes

  • Added support for Nomina mainnet.

    2.38.5release notes

  • Transaction request formatters now receive account.

    2.38.4release notes

  • Added support for Gatechain Mainnet.

    2.38.4release notes

  • Added support for the Quai network.

    2.38.4release notes

  • Added Kii Testnet Oro chain.

    2.38.3release notes

  • Added the blockTime property to Linea.

    2.38.3release notes

  • Added blockTime to Plasma chain.

    2.38.3release notes

  • Added the blockTime property to Polygon.

    2.38.3release notes

  • Added the blockTime property to Scroll.

    2.38.3release notes

  • Added Surge Testnet.

    2.38.3release notes

  • Added the Vana chain.

    2.38.3release notes

  • Added the Vana Moksha Testnet chain.

    2.38.3release notes

  • Viem 2.0 adds low-level OP Stack extensions.

    2.0.0release notes

Performance 21

  • Decoding parses parameters once per call, reads offsets, lengths, and integers directly from the data, and tracks re-reads with a bitset.

    2.58.0release notes

  • Encoding parses parameters once per call and builds the hex output in one pass.

    2.58.0release notes

  • Encoding builds the hex output in one pass and caches function selectors per ABI item.

    2.58.0release notes

  • Transaction formatting avoids delete; OP Stack, Celo, and zkSync block formatters format each block transaction once.

    2.58.0release notes

  • Calls are appended to chunks in place, making chunking linear in the number of calls.

    2.58.0release notes

  • Events are prepared once per call and looked up by selector; address, uint, and bytesN topics are read directly.

    2.58.0release notes

  • Performance improved across ABI encoding and decoding, event logs, RLP, hex and data utilities, formatters, request batching, IPC, multicall, and transaction preparation.

    2.58.0release notes

  • Priority-fee estimation runs concurrently with transaction-type detection when the chain has no fee hooks; legacy fees no longer trigger an unnecessary latest-block request.

    2.58.0release notes

  • Transaction serialization and parsing handle hex RLP directly from strings instead of converting through bytes.

    2.58.0release notes

  • RLP operations encode and decode hex directly from strings instead of converting through bytes.

    2.58.0release notes

  • Runtime parseAbi calls were replaced with literal ABIs, removing the human-readable ABI parser from bundles that only read contracts.

    2.57.20release notes

  • Checksum results are cached by lowercase address, avoiding recomputation for differently cased inputs.

    2.57.20release notes

  • Checks that do not need a checksum now skip the isAddress cache.

    2.57.20release notes

  • When the chain has no fee hooks, nonce, block, and priority fee are fetched concurrently.

    2.57.20release notes

  • Reduced per-request overhead by creating the onFetchRequest Request only when its hook is set and creating TimeoutError only when a request times out.

    2.57.16release notes

  • Cached signature hashes so ABI selector lookups no longer hash every ABI item on each call.

    2.57.16release notes

  • Compatible concurrent multicall actions are batched into one aggregate call.

    2.55.5release notes

  • When batch.multicall is enabled, getBalance calls are batched via eth_call instead of making individual eth_getBalance RPC calls.

    2.45.3release notes

  • Improved performance by memoizing parseEventLogs.

    2.45.1release notes

  • Added an optimization to check whether eth_fillTransaction needs to be called.

    2.41.1release notes

  • Routes transaction preparation through eth_fillTransaction when the execution node supports it, reducing the required RPC calls from 3–4 to 1.

    2.40.0release notes

Behavior and default changes 43

  • Updated base and baseSepolia blockTime to 200 ms to match Base's 200 ms blocks, lowering their default pollingInterval to 500 ms.

    2.58.1release notes

  • Updated unavailable default RPC URLs for Klaytn, Klaytn Baobab, Metis, Shibarium, Puppynet Shibarium, TAC, TAC SPB Testnet, Mezo and Areon Network.

    2.58.1release notes

  • The default pollingInterval for base and baseSepolia is lowered to 500 ms following their blockTime update.

    2.58.1release notes

  • ENS avatar metadata and image requests have a 10-second timeout, and avatar metadata response bodies are limited to 10 MiB.

    2.57.18release notes

  • Access key accounts provide TIP-1165 pre-authorized signatures while authorization is pending, and Tempo verifyHash with mode allowAccessKey accepts them before registration.

    2.57.18release notes

  • Tempo Mainnet now uses its genesis-deployed Multicall3 for client batching and multicall, without needing deployless.

    2.57.17release notes

  • Tempo Devnet now uses its genesis-deployed Multicall3 for client batching and multicall, without needing deployless.

    2.57.17release notes

  • Tempo Moderato now uses its genesis-deployed Multicall3 for client batching and multicall, without needing deployless.

    2.57.17release notes

  • Adds owner approval coordination for configurable accounts acting as access keys.

    2.57.17release notes

  • Replaced the random expiring nonce validAfter with a random nonce discriminator.

    2.57.15release notes

  • Updated the chain display name, native currency name, and block explorer URL.

    2.57.15release notes

  • Expiring nonce windows are capped at 300 seconds.

    2.57.15release notes

  • The default expiring nonce validBefore increased from 25 to 270 seconds.

    2.57.15release notes

  • The base fee multiplier is now 2 for HyperEVM mainnet and testnet, providing more headroom for fee increases.

    2.57.11release notes

  • The blockTime for monad and monadTestnet is now 300 ms.

    2.57.11release notes

  • Stores relay state under configurableAccount:* store keys.

    2.57.10release notes

  • Updated the RPC and block explorer URLs from arc.network to arc.io.

    2.57.5release notes

  • Updated the Tempo mainnet and testnet Earn factory addresses to the latest releases.

    2.57.5release notes

  • Open USD is now marked as popular in its token definition and included in the popular token list.

    2.57.2release notes

  • Updated for the latest protocol, including recovery-factory addresses, initial config caching, and primitive-only approvals.

    2.56.7release notes

  • Updated chain metadata for the Data Network rebrand, including its name, native currency, RPC URLs, and block explorer; the chain ID and export are unchanged.

    2.55.11release notes

  • Updated chain metadata for the Data Network Aeneid rebrand, including its name, native currency, RPC URLs, and block explorer; the chain ID and export are unchanged.

    2.55.11release notes

  • Updated Polygon Amoy's deprecated default RPC URL.

    2.55.10release notes

  • Ethereum's default RPC URL was updated.

    2.55.4release notes

  • viem/tempo's createClient now defaults tokens to tokens.tempo.

    2.54.1release notes

  • The Tempo Testnet (Moderato) chain now uses the t5 hardfork.

    2.52.2release notes

  • Updates the precompile ABIs in viem/tempo.

    2.52.0release notes

  • Emits a full broadcast envelope when the fee payer co-signs, enabling single round-trip sponsorship.

    2.51.0release notes

  • Added support for OP Stack super-root dispute games in withdrawal prove flows.

    2.51.0release notes

  • The token parameter now also accepts curated tokenlist symbols.

    2.49.0release notes

  • Tempo RPC URLs were updated, changing the endpoints developers use to connect to Tempo.

    2.47.19release notes

  • The default internal_version on access keys is now v2.

    2.47.1release notes

  • Updated the default RPC URL for the Polygon chain.

    2.46.3release notes

  • Updated the Sei block explorer from Seitrace to Seiscan.

    2.46.3release notes

  • Updated the native currency of Stable Mainnet.

    2.45.2release notes

  • Adds stable mainnet and updates stable testnet definitions.

    2.45.0release notes

  • Updated the tempo chain config.

    2.43.3release notes

  • Adds support for EntryPoint 0.9.

    2.43.0release notes

  • Supports v0.9, using EIP-712 typed data like v0.8.

    2.42.0release notes

  • Adds preconf support for the GIWA testnet.

    2.42.0release notes

  • Updates the block explorer URL and adds WebSocket URLs, a Multicall3 contract, a second block explorer, and a second RPC URL.

    2.40.0release notes

  • hashStruct now supports Uint8Array values.

    2.39.2release notes

  • The hashkeyChainTestnet config was updated.

    2.38.4release notes

Tooling 2

Fixes and other changes 251

  • Fixed truncated ABI parameter heads being decoded from a stale position after a dynamic read.

    2.58.1release notes

  • Fixed Multicall3 blockCreated values for Core Dao, BOB, Shape, Shape Sepolia, Soneium, Soneium Minato, Celo Sepolia and XDC Apothem.

    2.58.1release notes

  • Decoded strings no longer drop a leading U+FEFF byte order mark.

    2.58.1release notes

  • The error now sets its documented name to ProviderRpcError instead of Error.

    2.58.1release notes

  • Fixed ranking so a failing Transport no longer stays first when every sampled latency is 0 ms.

    2.58.1release notes

  • Its error union now includes error types of actions and helpers called internally, describing propagated contract and RPC failures.

    2.58.1release notes

  • Right-side trimming now removes whole zero bytes without shifting nonzero nibbles.

    2.58.1release notes

  • Strings no longer drop a leading U+FEFF byte order mark.

    2.58.1release notes

  • Batch replies are matched to requests by id, including numeric ids echoed as strings, so id: null no longer gives other requests the wrong results.

    2.58.1release notes

  • Stray closing braces between messages no longer permanently desynchronize IPC framing.

    2.58.1release notes

  • Subscriptions no longer hang or skip onError when the socket closes or errors.

    2.58.1release notes

  • The ERC-7739 action now produces signatures accepted by ERC-7739 accounts when a nested type sorts before the primary type.

    2.58.1release notes

  • Dropping a client that will not reconnect closes its socket, and a failed request is no longer reported again on later disconnects.

    2.58.1release notes

  • WebSocket and IPC unsubscribe requests no longer hang on socket failures or missing responses, and do not raise unhandled rejections when the result is not awaited.

    2.58.1release notes

  • Fixed signatures rejected by ERC-7739 accounts when a nested type sorted before the primary type.

    2.58.1release notes

  • With includeTransactions set, CIP-64 and deposit transactions now receive a defined type, and deposit mint values are parsed.

    2.58.0release notes

  • Reads the dispute game and finalized state concurrently with the proof submitter.

    2.58.0release notes

  • Fault-proof chains without disputeGameFactory no longer cause a TypeError; the factory address is read from the portal.

    2.58.0release notes

  • The error now sets its documented name.

    2.58.0release notes

  • Pending requests are rejected when the node closes the connection, and requests and subscriptions share one socket when reconnect is set.

    2.58.0release notes

  • Polling no longer starts if timeout fires during the first receipt lookup.

    2.58.0release notes

  • Clients keep reconnecting after a failed attempt; after attempts run out, the client is dropped so the next request opens a new socket.

    2.58.0release notes

  • Caches are bounded, preventing them from growing indefinitely.

    2.58.0release notes

  • Batched http and multicall requests no longer flush before wait elapses after an earlier batch was split at batchSize.

    2.57.20release notes

  • Fixed the Multicall3 blockCreated values for Darwinia and Flow EVM Mainnet.

    2.57.20release notes

  • viem/experimental/erc7821 now refuses call data with an odd number of hex digits.

    2.57.20release notes

  • Now throws RlpNonCanonicalError for non-minimal RLP length prefixes and length-prefixed single bytes below 0x80.

    2.57.20release notes

  • Now includes every domain field that is present, so a string chainId from a JSON payload is no longer omitted when hashing and signing.

    2.57.20release notes

  • Now throws InvalidPublicKeyError for public keys that are not uncompressed 65-byte keys with a 0x04 prefix, instead of silently returning a wrong address.

    2.57.20release notes

  • In viem/tempo, the payload is now hashed when hash: true is used with address.

    2.57.20release notes

  • On chains without the configurable account precompile, the action now returns the zero commitment instead of rejecting.

    2.57.19release notes

  • Actions called by deployContract, getDelegation, sendCalls, and signAuthorization are resolved through getAction, so client overrides are used.

    2.57.19release notes

  • The generic ErrorType was appended so unexpected throw sites are assignable.

    2.57.19release notes

  • The error now sets its name.

    2.57.19release notes

  • The Tempo Moderato address was added to ousd.

    2.57.19release notes

  • Requests with bodies over 16 MiB now receive a 413 response even when the request has an unread clone.

    2.57.19release notes

  • The type now describes TxHashNotFoundInLogsError.

    2.57.19release notes

  • Forwards an explicit account: null instead of falling back to the client account.

    2.57.18release notes

  • No longer checks the client account when account is null.

    2.57.18release notes

  • Passes transfer arguments correctly to the write action so a JSON-RPC account sending transferFrom sends the transaction from the account instead of from.

    2.57.18release notes

  • Batched calls no longer hang with an unhandled rejection when the batch function throws synchronously.

    2.57.18release notes

  • CCIP-Read callbacks now use the supplied blockNumber, blockTag, or blockHash instead of the default block.

    2.57.18release notes

  • Correctly left-pads odd-length hex bytes and bytesN values to whole bytes when encoding.

    2.57.18release notes

  • Correctly left-pads odd-length hex bytes values to whole bytes when encoding.

    2.57.18release notes

  • In viem/zksync, no longer falls back to the client account when account is null.

    2.57.18release notes

  • No longer returns a contract address at block 0 when the contract was created later.

    2.57.18release notes

  • Resolves leading-zero EVM addresses and returns null for the zero address instead of throwing for address-encoded offchain resolver responses.

    2.57.18release notes

  • Reads the L2OutputOracle directly when no portal address or target chain portal is provided.

    2.57.18release notes

  • No longer shifts bytes of odd-length hex values when size is specified.

    2.57.18release notes

  • Batched HTTP requests no longer hang with an unhandled rejection when the batch function throws synchronously.

    2.57.18release notes

  • Batched multicall no longer hangs with an unhandled rejection when the batch function throws synchronously.

    2.57.18release notes

  • Preserves an explicit account: null instead of replacing it with the client account or modifying the passed parameters.

    2.57.18release notes

  • No longer defaults recipient and customerId from the client account when account is null.

    2.57.18release notes

  • No longer falls back to the client account when account is null.

    2.57.18release notes

  • Adds usesSuperRoots to getL2Output and waitToProve outputs so buildProveWithdrawal can resolve the L2 block for super-root outputs passed as output.

    2.57.18release notes

  • Honors blockTag when verifying pre-delegated ERC-8010 signatures and falls back to pending only when no block is selected.

    2.57.18release notes

  • Runs onchain verification calls as separate eth_call requests instead of sending them through multicall batching.

    2.57.18release notes

  • Uses the deployless validator when blockNumber predates the chain's erc6492Verifier blockCreated.

    2.57.18release notes

  • Tempo reads no longer fail with “Key not found” when the client account is an access key the chain has not registered yet.

    2.57.17release notes

  • On an account's first transaction, updateConfigSync now returns the installed config rather than the version-0 registration config.

    2.57.17release notes

  • Allows keyAuthorization in account upgrades; the accounts relay also caches configs from upgrades anywhere in a batch.

    2.57.17release notes

  • Tempo no longer performs the decimals read when resolving an insufficient TIP-20 balance error.

    2.57.17release notes

  • String overloads now resolve for non-hex strings when a bytes overload is also present.

    2.57.17release notes

  • Tempo no longer reads getKey before transactions for access keys with pending authorization; it retries filling without authorization if the chain has already registered the key.

    2.57.17release notes

  • The HTTP transport no longer drops fetchOptions.headers when supplied as a Headers instance or tuple array.

    2.57.17release notes

  • Webpack builds without mppx no longer fail on the gatewayActions import; it now only warns.

    2.57.17release notes

  • Integer filters supplied as JavaScript numbers now match decoded bigint values.

    2.57.17release notes

  • Falsy per-operation paymasterContext values are no longer replaced by the bundler client's default.

    2.57.17release notes

  • Signature objects with an EIP-155 v value no longer cause an Invalid yParityOrV value error.

    2.57.17release notes

  • Struct names containing a colon are no longer rejected; this also affects hashTypedData and signTypedData.

    2.57.17release notes

  • A block arriving during transaction lookup or replacement scanning is no longer dropped, avoiding a timeout when no later block is mined.

    2.57.17release notes

  • Nested retries no longer cause inner transports to send failed requests up to 16 times; relay retries use the client's retryCount.

    2.57.17release notes

  • Gateway actions pay in the Gateway currency held most by the Client account, report account balances when funds are insufficient, and explain how to pay when payment is required.

    2.57.16release notes

  • Stopped retrying method-not-found and method-not-supported errors returned from non-2xx HTTP responses because retries receive the same refusal.

    2.57.16release notes

  • Fetched the withdrawal receipt once in the ZKsync finalizeWithdrawal and isWithdrawalFinalized actions.

    2.57.16release notes

  • Decodes anonymous event logs when eventName names the event or every event in abi is anonymous.

    2.57.15release notes

  • No longer returns a gas limit filled by eth_fillTransaction that ignores blockNumber, blockTag, and stateOverride.

    2.57.15release notes

  • No longer sends a transaction to the next node after the node accepted it but stopped waiting for its receipt.

    2.57.15release notes

  • No longer returns gasPrice alongside EIP-1559 fees on Anvil, which caused transaction actions to fail on Anvil 1.8.5 and later.

    2.57.15release notes

  • Formats nonce as a bigint.

    2.57.15release notes

  • A priority fee above maxFeePerGas of 0n now raises TipAboveFeeCapError or MaxFeePerGasTooLowError; fee error messages retain zero values.

    2.57.15release notes

  • Accepts EIP-7702 authorization yParity values from 2 to 255 so serialized transactions parse back.

    2.57.15release notes

  • Raises TipAboveFeeCapError when encoded maxFeePerGas is zero.

    2.57.15release notes

  • Does not fail immediately or free the nonce when the node accepted the transaction but stopped waiting for its receipt, even if the error has no transaction hash.

    2.57.15release notes

  • Fixes skipped blocks over HTTP on fast chains such as Monad and Arbitrum.

    2.57.15release notes

  • Fixes skipped blocks over HTTP on fast chains and falling behind while catching up on missed blocks.

    2.57.15release notes

  • Removed a trailing slash from the ZKsync explorer URL.

    2.57.15release notes

  • Tempo request formatting no longer drops capabilities from fill requests without Tempo-specific fields.

    2.57.14release notes

  • Relay previews now include balance diffs for moved plain ERC-20 tokens, such as vault shares, by reading standard metadata.

    2.57.14release notes

  • Gas is reserved for the fee payer's signature and fee token, fixing sponsored Tempo transactions failing with intrinsic gas too low on T14.

    2.57.14release notes

  • Fixed returning a number nonce on Tempo transactions when a nonce was passed and no fee payer signed the filled transaction.

    2.57.13release notes

  • Fixed base-fee floor rejections not being reported when the Tempo node returns fee cap less than base fee.

    2.57.13release notes

  • Fixed eth_getLogs fallback polling stalls, repeated or out-of-range logs, ignored fromBlock values, and missed logs in the first polling interval.

    2.57.13release notes

  • Accepts domains with punycode top-level domains and rejects top-level-domain labels longer than 63 characters.

    2.57.12release notes

  • Fixed overload resolution for arrays with a 0 in the element size or the wrong fixed length, tuple objects with reordered keys, and ambiguous address[] overloads.

    2.57.12release notes

  • Array requests now handle servers that reject a whole batch with one error or return fewer responses than requests.

    2.57.12release notes

  • Finalization timing now accounts for the proof's dispute game resolving and passing its finality delay, not only the proof maturity delay.

    2.57.12release notes

  • When l2Timestamp is omitted, super-root dispute games are matched using the receipt logs' blockTimestamp, or an L2TimestampRequiredError is thrown if it is missing.

    2.57.12release notes

  • Accepts struct names starting with Solidity type names, rejects names that shadow Solidity types, and includes struct names containing $ in the encoded type.

    2.57.12release notes

  • Transport batches now handle servers that reject a whole batch with one error or return fewer responses than requests.

    2.57.12release notes

  • The error is now raised for reth's EVM error: OutOfFunds node message.

    2.57.12release notes

  • The callback is now called for a replacement when confirmations is greater than 1.

    2.57.12release notes

  • Args filters no longer drop logs with decoded string or bytes values or differing hex case, and no longer match every partially decoded log.

    2.57.12release notes

  • Request retries no longer fire immediately for HTTP-date header values or delays longer than the 24.8-day timer limit.

    2.57.12release notes

  • Exposes status and headers; the HTTP transport also retries JSON-RPC errors from non-2xx responses according to HTTP status and Retry-After.

    2.57.12release notes

  • No longer drops a call's dataSuffix when the call has no data.

    2.57.12release notes

  • EIP-7702 authorization yParity values above 1 are encoded as-is instead of normalized to 1, avoiding a changed transaction hash.

    2.57.12release notes

  • String signatures retain correct selector generation by removing the error keyword from signatures such as error Foo(uint256).

    2.57.12release notes

  • Accepts struct names starting with Solidity type names, rejects names that shadow Solidity types, and encodes struct names containing $.

    2.57.12release notes

  • The package and its entrypoints can now be imported under SES lockdown() without a read-only call property error.

    2.57.12release notes

  • Finalization waits now account for the proof's dispute game resolving and passing its finality delay, not only the proof maturity delay.

    2.57.12release notes

  • Passes strict to the getLogs fallback, so strict watchers on RPC providers without filters no longer receive logs that do not match the event.

    2.57.12release notes

  • Inline SVG avatars containing non-Latin-1 characters no longer return null, and base64 NFT metadata is decoded as UTF-8.

    2.57.11release notes

  • No longer returns 0n or a negative number for a transaction already in a block when the read block number is lower than the transaction's block number.

    2.57.11release notes

  • In viem/tempo, nonceKey: 0n no longer defaults nonce to 0; the protocol nonce key now fills nonce from the account's transaction count or nonceManager.

    2.57.11release notes

  • Concurrent calls with the same options no longer leave a listener behind that causes later waits for the same hash to join a non-polling observer and never settle.

    2.57.11release notes

  • Concurrent polling watchers on one client now each honor their own events and strict options instead of sharing the first watcher's filter.

    2.57.11release notes

  • Adds execution error messages for configurable account upgrades and retired root keys.

    2.57.10release notes

  • Sends configurableAccountSimulation to the node for configurable accounts.

    2.57.10release notes

  • Fixes Hardfork.lt treating unknown hardforks as older than every known hardfork.

    2.57.10release notes

  • Uses the tempo:configurable-account:* domains to derive configurable account addresses and signatures.

    2.57.10release notes

  • An empty version on EIP712Domain now generates the correct signature.

    2.57.8release notes

  • Indexed string arguments that look like hex are hashed as UTF-8 rather than raw bytes; this also fixes parseEventLogs.

    2.57.8release notes

  • ERC-1155 metadata URI {id} placeholders now use the lowercase, zero-padded hexadecimal token ID instead of the raw token ID.

    2.57.8release notes

  • viem/tempo replacement detection now respects nonce slots, preventing expiring-nonce waits from resolving to an earlier transaction's receipt.

    2.57.8release notes

  • The transport timeout now applies while reading the response body and when the request is given an abort signal.

    2.57.5release notes

  • No longer drops the first parameter when a space follows an opening parenthesis; the same fix applies to toFunctionSelector, toEventSelector, and toSignature.

    2.57.5release notes

  • Calling unsubscribe on webSocket and ipc transports after reconnect now uses the current subscription id, preventing subscription leaks.

    2.57.5release notes

  • Concurrent waits no longer resolve using the first call's options or leave a later wait for the same id hanging.

    2.57.5release notes

  • Now detects replacement transactions and avoids reporting a repriced transaction as replaced when RPC address casing differs.

    2.57.5release notes

  • Absent Tempo key-authorization limits remain distinct from an empty list: absent means unlimited, while an empty list means deny-all.

    2.57.4release notes

  • Automatic selection now skips tokens without fee AMM liquidity in the existing preflight request.

    2.57.3release notes

  • getContractError no longer throws when an error cause is not an object.

    2.57.3release notes

  • IPC response framing now handles JSON strings containing braces and escaped quotes.

    2.57.3release notes

  • Updated Jasmy Chain and Jasmy Chain Testnet RPC URLs and added their block explorers.

    2.57.3release notes

  • With experimental_fallback enabled, sendCalls now recognizes Base RPC's unsupported-method response.

    2.57.3release notes

  • Fixed retention of timed-out IPC and WebSocket request callbacks.

    2.57.3release notes

  • The awaited transaction is no longer treated as its own replacement when its receipt is unavailable.

    2.57.3release notes

  • A later call for the same hash no longer hangs until timeout after concurrent calls for that hash have settled.

    2.57.3release notes

  • The Tempo preparation hook now preserves explicitly supplied expiring nonces for TIP-1106.

    2.57.2release notes

  • Treats a dispute game at exactly the requested L2 block number as covering it.

    2.57.0release notes

  • Treats an L2 output at exactly the requested L2 block number as covering it.

    2.57.0release notes

  • Updated deployment metadata for Creditcoin Devnet, Testnet, and Mainnet.

    2.57.0release notes

  • No longer loses or truncates resources when Resources: appears in the statement, URI, Request ID, or a resource.

    2.57.0release notes

  • Concurrent calls for the same hash on one client now honor each call's own timeout, confirmations, pollingInterval, retryCount, and checkReplacement options.

    2.57.0release notes

  • Added Plasma mainnet addresses for USDC and EURC.

    2.56.9release notes

  • The Tempo verifier selector is now selected by its full function signature.

    2.56.9release notes

  • Exported Tempo chains now preserve named formatter return types, fixing declaration inference.

    2.56.8release notes

  • Added Arc mainnet addresses for EURC and cirBTC.

    2.56.7release notes

  • Fixed retry handling for QuickNode's -32007 rate-limit error code, matching the existing handling for the 429 (Alchemy) case.

    2.56.6release notes

  • Fixed stateOverride being serialized onto the linea_estimateGas request so overrides reach the node.

    2.56.5release notes

  • Added chain inference to downstream request options.

    2.56.3release notes

  • Made return types portable across declaration-emitting projects.

    2.56.3release notes

  • Fixed signed calls with odd-length hex values.

    2.56.2release notes

  • Fixed declaration emit for inferred Tempo chains.

    2.56.1release notes

  • Updated the Berachain Bepolia block explorer.

    2.56.0release notes

  • The multisig implementation was updated.

    2.55.19release notes

  • Operator Fee estimation for the Isthmus upgrade uses the Gas Price Oracle's getOperatorFee function instead of manually computing from L1Block parameters.

    2.55.17release notes

  • Filled transaction fields covered by a Tempo fee payer signature are preserved.

    2.55.17release notes

  • Fixed asset discovery across reverting, state-dependent, malformed, and newly deployed tokens by pinning stable block tags and isolating balance probes.

    2.55.16release notes

  • Encrypted Zone deposits are bound to the parent-chain portal caller.

    2.55.15release notes

  • Chain preparation avoids consuming sequential nonces when it selects an expiring nonce.

    2.55.13release notes

  • Sender tags for Zone withdrawals now include the emitted fallback nonce.

    2.55.13release notes

  • Refreshed the experimental Tempo Earn interfaces against the latest reviewed contract source.

    2.55.11release notes

  • Tempo token metadata fetching now respects explicit client multicall configuration.

    2.55.11release notes

  • Fixed withRetry hanging when shouldRetry or the retry delay callback throws.

    2.55.11release notes

  • Refreshed Zone router actions against the latest reviewed contract source.

    2.55.11release notes

  • Updated the 0G Testnet native currency to 0G and updated explorer names.

    2.55.10release notes

  • Updated EDU Chain and EDU Chain Testnet RPC URLs and block explorer URLs.

    2.55.10release notes

  • Recovers the base fee multiplier with Math.round instead of Math.ceil, avoiding overshooting intended values such as 1.09.

    2.55.10release notes

  • Encodes an EIP-7702 authorization yParity of 0 as 0x00 instead of a 32-byte zero value.

    2.55.10release notes

  • Added the missing module marker in the emitted _types/ folder so declaration files resolve correctly under TypeScript nodenext.

    2.55.10release notes

  • Fixed gas estimation for sponsored access key transactions prepared without gas.

    2.55.8release notes

  • No longer scales the decoded value when size is larger than the input byte length.

    2.55.7release notes

  • Tempo access key transactions no longer fail because the gas limit covered by fee payer signatures is preserved.

    2.55.7release notes

  • No longer misreads a 0x80 data byte at a blob boundary as the terminator.

    2.55.7release notes

  • With to set to bigint or number, no longer scales the decoded value when size is larger than the input byte length.

    2.55.7release notes

  • Fetches Tempo fee payer signatures when the caller's parameters option omits fees or gas.

    2.55.5release notes

  • Fetches Tempo fee payer signatures for fully specified transactions.

    2.55.5release notes

  • The Tempo multisig implementation was updated.

    2.55.5release notes

  • Receipt polling is adapted for private Zone RPCs.

    2.55.1release notes

  • Token .call builders can be called without a Client, restoring the pre-2.54 call signature. Without a Client, token must be a TIP20 token id or contract address, and formatted amounts require explicit decimals.

    2.54.6release notes

  • Preserved sponsor-returned feeToken values from eth_fillTransaction responses with feePayerSignature.

    2.54.5release notes

  • Fixed fee-payer sponsorship for native multisig transaction preparation and serialization.

    2.54.5release notes

  • Fixed handling of zero-width types, including zero-length fixed arrays and empty tuples.

    2.54.3release notes

  • Includes fees during User Operation preparation, preventing strict bundlers from rejecting gas estimation requests.

    2.54.2release notes

  • Added USDC token addresses for more supported chains.

    2.54.1release notes

  • Access key metadata reads no longer incorrectly use the client account.

    2.51.3release notes

  • Fixed signVoucher to raw sign channel vouchers with access key accounts.

    2.51.2release notes

  • Handles responses that include an error field.

    2.51.0release notes

  • Strips feeToken from the sender's sign payload under sponsorship, per the Tempo Transaction spec.

    2.51.0release notes

  • Tempo chain declarations now emit portable inferred types for exported derived chains.

    2.50.4release notes

  • wallet.deposit uses amount and supported token symbols for wallet_deposit requests.

    2.50.3release notes

  • Preserves feeToken on the broadcast envelope when feePayerSignature is present, enabling on-chain fee payer signature verification.

    2.49.3release notes

  • When no account is present, formatTransactionRequest preserves keyType, keyId, and keyData from the input request.

    2.48.7release notes

  • Uses the l2SequenceNumber() contract call instead of manually decoding extraData.

    2.48.2release notes

  • The type now accepts readonly arrays.

    2.48.2release notes

  • Preserves nonce: 0 instead of dropping it.

    2.48.2release notes

  • Tempo's formatter now forwards feePayer: false in transaction requests.

    2.48.1release notes

  • Tempo's formatTransactionRequest no longer drops feePayerSignature.

    2.48.1release notes

  • fillTransaction now preserves an explicitly provided nonce.

    2.48.1release notes

  • Fixed native currencies on chains.

    2.48.1release notes

  • Added the missing testnet: false value for testnet and devnet chain definitions.

    2.48.1release notes

  • Fixed a crash when the dispute game factory has zero or one games.

    2.47.18release notes

  • withFeePayer transports forward eth_fillTransaction requests to the fee payer transport only when feePayer: true is requested.

    2.47.18release notes

  • Fixed prepareTransactionRequest dropping feeToken from the eth_fillTransaction response.

    2.47.17release notes

  • Fixed serializeTempo preserving feePayerSignature: null so the 0x00 fee-payer marker is not omitted from serialization.

    2.47.17release notes

  • Fixed Account.signTransaction computing the wrong presign hash when feePayerSignature is present by normalizing it to null before hashing.

    2.47.17release notes

  • Fixed types.

    2.47.16release notes

  • Skips the fee multiplier when feePayerSignature is present.

    2.47.14release notes

  • The formatted transaction request now includes the from field from the account address.

    2.47.14release notes

  • Fixed the tokenMetadata return type for simulateBlocks.

    2.47.14release notes

  • Fixed the tokenMetadata return type for simulateCalls.

    2.47.14release notes

  • Fixed shouldRetry to handle RPC code 429 in batch mode when providers return HTTP 200 with a JSON-RPC body containing code 429.

    2.47.11release notes

  • Fixed gas estimation for access key transactions with a fee payer.

    2.47.10release notes

  • prepareTransactionRequest now extracts keyAuthorization from the eth_fillTransaction response.

    2.47.10release notes

  • Added basic OP definitions to MegaETH and fixed Blockscout definitions.

    2.47.10release notes

  • Fixed transaction type detection for secp256k1 access key accounts.

    2.47.10release notes

  • dataSuffix is now applied to all transactions, regardless of whether data is present.

    2.47.6release notes

  • Updated a chain definition.

    2.47.5release notes

  • Added error preservation in getContractError.

    2.47.5release notes

  • Fixed the incorrect error message for PaymasterStakeTooLowError (code -32505).

    2.47.5release notes

  • Fixed unbounded LRU cache growth on iOS 18+.

    2.47.5release notes

  • Now normalizes RpcLog inputs before decoding.

    2.46.3release notes

  • Now sends timeout as an integer instead of hex.

    2.46.3release notes

  • Fixed sendCallsSync to respect client-level action overrides, such as those used by smart account clients.

    2.45.2release notes

  • Fixed error decoding when RPC returns revert data in returnData instead of error.data.

    2.45.1release notes

  • Fixes the MegaETH Testnet chain ID from 6342 to 6343.

    2.45.0release notes

  • Exports previously missing OP Stack actions.

    2.45.0release notes

  • Fixed a silent error when the value exceeds the safe range.

    2.44.2release notes

  • Gas was increased for tempo transactions using feePayer and keyAuthorization.

    2.44.1release notes

  • Exported missing types for inference.

    2.44.0release notes

  • Fixed timeout propagation.

    2.44.0release notes

  • Updated the chain id for Tempo Devnet to 31318.

    2.43.5release notes

  • Fixed handling of overloaded tuples with additional child tuple components beyond the number of args.

    2.43.4release notes

  • Fixed hash calculation for EIP-7702 UserOperations.

    2.43.4release notes

  • Restored behavior where chain is not passed as a return value.

    2.43.3release notes

  • Fixed the tempo formatter for access keys.

    2.43.3release notes

  • Fixed JSON-RPC account formatting for Tempo transactions.

    2.43.2release notes

  • Renamed the MANTRA DuKong native coin.

    2.43.2release notes

  • Updated Moonbeam and Moonriver RPC URLs.

    2.43.2release notes

  • Fixed createCursor throwing when bytes.buffer is undefined in React Native environments.

    2.42.1release notes

  • Fixed explorer API URLs for Polygon Amoy and Mainnet.

    2.42.1release notes

  • Fixed the timeout not being respected.

    2.42.1release notes

  • Fixed subscriptions being duplicated after reconnection when unwatching and rewatching.

    2.42.1release notes

  • Handles the paymasterSignature field when packing a user operation.

    2.42.0release notes

  • Fixed an issue where nonceManager would unexpectedly consume a nonce when eth_fillTransaction is not supported.

    2.40.3release notes

  • Fixed the sendTransactionSync generic.

    2.40.1release notes

  • Handling was added for Nethermind execution reverted errors.

    2.39.2release notes

  • Updated the ApeChain name.

    2.39.0release notes

  • Fixed the timeout not being cleared properly after the receipt was returned.

    2.39.0release notes