Repository navigation
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.0Explore v25.2.0 and Beacon 4.9.0-ecad live:
- Live Shadownet Test dApp (with Beacon Inspector in the header): https://shadownet.dapp.taquito.io/
- Beacon UI, i18n & Theme Playground: https://shadownet.dapp.taquito.io/tests/beacon-ui
- Large Payload Timing Harness (1 to 256 KiB): https://shadownet.dapp.taquito.io/tests/large-payload
- Documentation (
v25.2.0): https://taquito.io/docs/25.2.0/wallet_API/ - Beacon SDK
v4.9.0-ecadRelease Notes: https://github.com/ecadlabs/beacon-sdk-taquito-patches/releases/tag/v4.9.0-ecad
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 to25.2.0, refresh the lockfile, and verify the resolved versions. If we use@taquito/beacon-wallet, it brings in@ecadlabs/beacon-*@4.9.0-ecadautomatically; align any direct@ecadlabs/beacon-*dependencies we already use with4.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.0and 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.
- Dependencies and wallet setup. Update our direct
@taquito/*packages to25.2.0, refresh the lockfile, and check the resolved versions.@taquito/beacon-walletsupplies the matching@ecadlabs/beacon-*@4.9.0-ecadpackages; align any direct@ecadlabs/beacon-*dependencies we use to4.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.- 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.- 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, handleLATE_RESPONSE_RECEIVEDand surface any returned operation hash so users can check the result before retrying.- 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.dataonTransactionInvalidBeaconError, filtered withisTezosRpcError). If Beacon deactivates an invalid saved account, clear stale connected UI and offer Reconnect. If we already have a support or debug view, usegetConnectionInfo()andgetPendingRequests()there to help explain a stalled request.- 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()andsetColorMode(). Check Arabic RTL, keyboard-only pairing, Escape, and focus returning to Connect.- 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): RegistersPtUSHuaiA2pg9vB3Lruk6qkuvu55J41qxECxUuNRXj3HDFmykQyacross@taquito/taquito(Protocols.PtUSHuaiA,protocols['026']),@taquito/local-forging(ProtocolsHash.PtUSHuaiA, default forging protocol), and@taquito/michel-codec(Protocol.PtUSHuaiA,DefaultProtocol), shiftingProtoALphato027. 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, alongsidegetTezosOperationHash()andgetEthereumTransactionHash()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
/syncstalls: Enforces client-side/synctimeouts 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.techdependencies & cleaner wallet chooser: Removes legacypapers.techmetrics/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 retiredtez.ieRPC 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), runtimewallet.setLocale()/wallet.setColorMode(), focus trapping, keyboard navigation, and screen-reader announcements. - Typed errors, wallet metadata & observability: Concrete
BeaconErrorsubclasses (AbortedBeaconError,TransactionInvalidBeaconError,PeerUnreachableBeaconError, etc.),isBeaconError(),isTezosRpcError(),WireRequestErrorResponse,await wallet.getWalletInfo(),await wallet.getConnectionInfo(),wallet.getPendingRequests(), andwallet.subscribeToMessages(). - Non-expiring signing/operation requests by default: Prevents premature dApp timeouts while users unlock their phone and review operations (
requestTimeoutMsremains configurable alongsideBeaconEvent.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) andTezos.wallet.smartRollupOriginate()(with private rollupwhitelistsupport),smartRollupAddMessages(),smartRollupExecuteOutboxMessage(), andwithSmartRollup*batch methods. - Paginated big-map reads & two-step block polling (#3485, #3523, #3482): Adds
RpcClient.getBigMapValuesPage()andBigMapAbstraction.getValuesPage()/listValues()/isEmpty(), and checks/chains/main/blocks/head/hashbefore 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?)), OctezPOST /bls/*RPC endpoints,tz4/BLpkpacking inmichel-codec,tz5(mdpk) Beacon permission support, English BIP39 mnemonic derivation helpers, opt-in randomized Sapling output ordering, custom SaplingboundDataexports, and@taquito/sapling-wasm@0.3.0with browser-nativeUint8Arraybytes (no globalBufferpolyfill 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 inUint8ArrayConsumerand slices bounded sub-buffers matching the declared 4-byte length prefix when decodingsmart_rollup_originatewhitelists, governance proposals, and BLSsignature_v1proofs.- 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
429retries with boundedRetry-Afterhandling, and transient502/503/504and Firefox/WebKit network failure retries. - Modern toolchain & docs (#3398, #3495, #3548, #3596, #3610): TypeScript 6, ESLint 10,
@noble/curves/@noble/hashes/@scure/bip392.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-connectpackage (#3517): Migrate integrations using@taquito/wallet-connectto@taquito/beacon-wallet. For WalletConnect, register a project ID at https://dashboard.reown.com/ and passwalletConnectOptions: { projectId }. - Beacon request deadlines &
PAIR_INITdiscriminator: Signing and operation requests no longer time out after 60 seconds by default (permission requests still default to 60 seconds). PassrequestTimeoutMs: 60_000explicitly if your UI expects a local deadline, and handleBeaconEvent.LATE_RESPONSE_RECEIVED. CustomPAIR_INIThandlers should checkokbefore readingurionwalletConnectPeerInfo. - TZIP-16 SHA-256 & IPFS gateway requirements (#3506): TZIP-16 metadata reads reject SHA-256 digest mismatches, and IPFS gateways used with
IpfsHttpHandlerrequire 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