Skip to content

v25.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Nov 14:11
e965b3c

Taquito v25.2.0

Taquito v25.2.0 is now available on the npm latest dist-tag across all 18 @taquito/* packages, bundled directly with @ecadlabs/beacon-*@4.9.0-ecad (no npm overrides required).

Install or upgrade:

npm install @taquito/taquito@25.2.0 @taquito/beacon-wallet@25.2.0

Explore v25.2.0 and Beacon 4.9.0-ecad live:


Upgrade Your dApp with a Coding Assistant

Faster QR pairing, recovery after a tab wakes up, Protocol 026 (Ushuaia2) support, and 375x faster large-message encoding come with the upgrade. Open your coding assistant in your dApp repository and paste either prompt. The short version gets you running; the extended version also puts the new wallet APIs to work in your existing UI.

Quick upgrade

Upgrade this Tezos dApp to Taquito 25.2.0 (latest) using its existing package manager. Update the @taquito/* packages we already use to 25.2.0, refresh the lockfile, and verify the resolved versions. If we use @taquito/beacon-wallet, it brings in @ecadlabs/beacon-*@4.9.0-ecad automatically; align any direct @ecadlabs/beacon-* dependencies we already use with 4.9.0-ecad.

Check our connect and signing flows for short app-side timeouts that can report failure while the wallet is still waiting for approval. Where we ask users to check their wallet, show its name from getWalletInfo() when available. Run our existing checks and give me a short Shadownet checklist for pairing, rejecting a request, and approving one after switching tabs.

Extended prompt for wallet UX, recovery, and testing

Upgrade this Tezos dApp to Taquito 25.2.0 and apply the changes below wherever they improve a flow we already have. Start by locating our package manifests, wallet setup, account state, and the screens users see while signing. Use our existing framework, package manager, and UI conventions.

  1. Dependencies and wallet setup. Update our direct @taquito/* packages to 25.2.0, refresh the lockfile, and check the resolved versions. @taquito/beacon-wallet supplies the matching @ecadlabs/beacon-*@4.9.0-ecad packages; align any direct @ecadlabs/beacon-* dependencies we use to 4.9.0-ecad. If we offer WalletConnect, verify that pairing uses our own Reown project ID and works from our dApp's origin. Preserve other wallet providers and network settings.
  2. Show users where to look. Use getWalletInfo() to name the active wallet in our confirmation UI, for example "Check Kukai to confirm." Fall back to "Check your wallet" when metadata is missing. Refresh the label after restoring a session or switching accounts, and clear it on disconnect. Subscribe once per wallet lifecycle and release listeners on teardown so reconnecting produces one notification per event.
  3. Make pending requests understandable. Review our timers and retry buttons. Beacon gives permissions a 60-second default and lets signing and operation requests stay pending. Where we show progress, distinguish "Request sent," "Wallet received your request" on ACKNOWLEDGE_RECEIVED (if (ack.correlated)), and the actual approval or rejection. Some wallets may respond without a separate acknowledgement. If our product requires a local deadline, handle LATE_RESPONSE_RECEIVED and surface any returned operation hash so users can check the result before retrying.
  4. Give users a recovery path. Use isBeaconError() and the typed error fields to distinguish a user declining, an unreachable wallet, and a rejected operation. Preserve useful RPC error details (err.data on TransactionInvalidBeaconError, filtered with isTezosRpcError). If Beacon deactivates an invalid saved account, clear stale connected UI and offer Reconnect. If we already have a support or debug view, use getConnectionInfo() and getPendingRequests() there to help explain a stalled request.
  5. Fit the chooser to our app. Keep browser language detection as the default. If our app already has a language or theme preference, apply it when creating the wallet and sync subsequent changes with setLocale() and setColorMode(). Check Arabic RTL, keyboard-only pairing, Escape, and focus returning to Connect.
  6. Verify the user journey. Run our typecheck, build, and relevant tests. Give me a short real-wallet Shadownet checklist covering fresh pairing, a restored session, rejection followed by retry, and approval after leaving the tab long enough to unlock a phone. If our app sends large contract parameters, include one representative payload. Report what passed, what still needs a person with a wallet, and which files changed.

Highlights

1. Day-Zero Protocol 026 (Ushuaia2) Support

  • Protocol 026 Ushuaia2 (PtUSHuaiA, #3615): Registers PtUSHuaiA2pg9vB3Lruk6qkuvu55J41qxECxUuNRXj3HDFmykQy across @taquito/taquito (Protocols.PtUSHuaiA, protocols['026']), @taquito/local-forging (ProtocolsHash.PtUSHuaiA, default forging protocol), and @taquito/michel-codec (Protocol.PtUSHuaiA, DefaultProtocol), shifting ProtoALpha to 027. Ships ahead of Mainnet UAU activation at block 16046689.

2. Tezos X & Etherlink Horus Support

  • Versioned Tezos X aliases & Horus alias materialization (#3600, #3601, #3602): Adds deterministic versioned Tezos X alias derivation, Horus alias materialization call builders, and Etherlink Horus migration documentation.
  • Experimental @taquito/tezosx & synthetic operation hashes (#3529, #3531): Prepares unsigned Michelson-to-EVM and EVM-to-Michelson calls for compatible Tezos X kernels, alongside getTezosOperationHash() and getEthereumTransactionHash() in @taquito/utils.

3. Next-Generation Wallet Connectivity (@ecadlabs/beacon-*@4.9.0-ecad)

@taquito/beacon-wallet@25.2.0 ships @ecadlabs/beacon-*@4.9.0-ecad directly (#3613, #3614), delivering a full lifecycle, transport, security, and accessibility overhaul today:

  • No more 4-to-5-minute half-open Matrix /sync stalls: Enforces client-side /sync timeouts and immediate wake/visibility/online recovery so backgrounding a mobile browser or waking a laptop no longer freezes wallet prompts.
  • First-relay Matrix pairing & 375x faster large payloads: Connects to the first responsive Matrix relay (median Connect-to-QR time dropped from 10.31s to 0.55s when one relay is stalled) and accelerates 128 KiB Micheline Base58Check encoding from 31.5s to 84ms (decoding from 18.9s to 28ms).
  • Zero legacy papers.tech dependencies & cleaner wallet chooser: Removes legacy papers.tech metrics/reporting endpoints and prunes broken or unmaintained wallet entries from the chooser, including Tezos MetaMask Snap (metamask.tezos.com / trilitech/tezos-metamask-snap, which still bundles an outdated Beacon SDK and points at retired tez.ie RPC nodes), TzSafe, Infinity Wallet, Atomex, Exodus, and dead Kukai testnet subdomains.
  • 7 built-in locales, Arabic RTL & WCAG/WAI-ARIA accessibility: Automatic browser language detection (en, de, pl, fr, es, ja, ar), runtime wallet.setLocale() / wallet.setColorMode(), focus trapping, keyboard navigation, and screen-reader announcements.
  • Typed errors, wallet metadata & observability: Concrete BeaconError subclasses (AbortedBeaconError, TransactionInvalidBeaconError, PeerUnreachableBeaconError, etc.), isBeaconError(), isTezosRpcError(), WireRequestErrorResponse, await wallet.getWalletInfo(), await wallet.getConnectionInfo(), wallet.getPendingRequests(), and wallet.subscribeToMessages().
  • Non-expiring signing/operation requests by default: Prevents premature dApp timeouts while users unlock their phone and review operations (requestTimeoutMs remains configurable alongside BeaconEvent.LATE_RESPONSE_RECEIVED).

4. Wallet API, Smart Rollups, Detached Signing, Big-Maps, BLS & Sapling

  • Detached signing & Smart Rollups in the Wallet API (#3480, #3483, #3486): Adds Tezos.prepareFor({ pkh, publicKey?, proof? }) (DetachedSigningWorkflow) and Tezos.wallet.smartRollupOriginate() (with private rollup whitelist support), smartRollupAddMessages(), smartRollupExecuteOutboxMessage(), and withSmartRollup* batch methods.
  • Paginated big-map reads & two-step block polling (#3485, #3523, #3482): Adds RpcClient.getBigMapValuesPage() and BigMapAbstraction.getValuesPage() / listValues() / isEmpty(), and checks /chains/main/blocks/head/hash before fetching full blocks.
  • BLS (tz4), tz5, BIP39 helpers & Sapling (#3474, #3479, #3484, #3492, #3499, #3533, #3540, #3547): Aggregate-key BLS proof-of-possession signing (provePossession(overridePublicKey?)), Octez POST /bls/* RPC endpoints, tz4/BLpk packing in michel-codec, tz5 (mdpk) Beacon permission support, English BIP39 mnemonic derivation helpers, opt-in randomized Sapling output ordering, custom Sapling boundData exports, and @taquito/sapling-wasm@0.3.0 with browser-native Uint8Array bytes (no global Buffer polyfill required).

5. Security, Parsing & RPC Resilience

  • @taquito/sapling (GHSA-6r9w-cxjj-5776, #3587): Samples a fresh commitment trapdoor (rcm) for every deposit, payment, and payback output and a fresh spend randomizer for every input.
  • @taquito/local-forging (GHSA-9wjf-4grc-2g2h, #3463, #3581, #3583): Enforces strict bounds checking in Uint8ArrayConsumer and slices bounded sub-buffers matching the declared 4-byte length prefix when decoding smart_rollup_originate whitelists, governance proposals, and BLS signature_v1 proofs.
  • Core parsing & confirmation hardening (#3550, #3584, #3611, #3612): One-pass packed Micheline decoding, one-pass TZIP-16 storage view validation, Base58 bounds checking, BigNumber isolation, confirmation ancestry validation, and ECDSA leading-zero key export preservation.
  • Verified TZIP-16 metadata & HTTP resilience (#3461, #3500, #3502, #3506, #3605): SHA-256 and raw IPFS block CID verification with gateway fallback, response-body timeouts, HTTP 429 retries with bounded Retry-After handling, and transient 502/503/504 and Firefox/WebKit network failure retries.
  • Modern toolchain & docs (#3398, #3495, #3548, #3596, #3610): TypeScript 6, ESLint 10, @noble/curves / @noble/hashes / @scure/bip39 2.4.0, Beacon 4.9 visual walkthroughs, overhauled dApp Best Practices Checklist, and LLM-friendly documentation endpoints.

Upgrading from v25.1.x

  • Retired @taquito/wallet-connect package (#3517): Migrate integrations using @taquito/wallet-connect to @taquito/beacon-wallet. For WalletConnect, register a project ID at https://dashboard.reown.com/ and pass walletConnectOptions: { projectId }.
  • Beacon request deadlines & PAIR_INIT discriminator: Signing and operation requests no longer time out after 60 seconds by default (permission requests still default to 60 seconds). Pass requestTimeoutMs: 60_000 explicitly if your UI expects a local deadline, and handle BeaconEvent.LATE_RESPONSE_RECEIVED. Custom PAIR_INIT handlers should check ok before reading uri on walletConnectPeerInfo.
  • TZIP-16 SHA-256 & IPFS gateway requirements (#3506): TZIP-16 metadata reads reject SHA-256 digest mismatches, and IPFS gateways used with IpfsHttpHandler require raw block support (?format=raw) and CORS for browser clients.

Credits

Special thanks to David Kaminski (@dvkam) for extensive contributions across Beacon, Smart Rollups, detached signing, Tezos X / Etherlink Horus, HTTP retries, and conformance tests; to Rahul Saxena (@saxenism) of Bluethroat Labs (GHSA-6r9w-cxjj-5776) and byfor (@byfor8) (GHSA-9wjf-4grc-2g2h) for responsible security disclosures; to petroskiscoble4143 on Tezos Agora for mobile background/wake testing feedback; to Martin at Tezos Domains for metadata verification and wallet timeout feedback; and to Klas Harrysson at Kukai for the encoder regression report.

Full Changelog: v25.1.3...v25.2.0