MiniKit methods and removes World ID verification from MiniKit.
Breaking Changes
- World ID verification moved out of MiniKit and into
@worldcoin/idkit - Commands moved to top-level async methods on
MiniKitinstead ofcommandsAsyncandcommands - Response interface changed to
{ executedWith, data } - Types and helpers moved to
@worldcoin/minikit-js/commands,@worldcoin/minikit-js/siwe, and@worldcoin/minikit-js/address-book walletAuthnonce validation is stricter and expects an alphanumeric nonce without hyphenssignTypedDatadeprecatedsendTransactionnow takes encoded calldatatransactionsand returnsuserOpHash- Permit2 switched from SignatureTransfer to AllowanceTransfer
- Standard ERC-20
approve()calls are now allowed, and approval will be revoked after the transaction
World ID Changes
Any oldMiniKit.verify or MiniKit.commandsAsync.verify flow should be replaced with IDKit. MiniKit 2.x only owns mini app commands.
Old To New
Import Path Changes
walletAuth Changes
- Validation now requires you to strip hyphens from UUID-based nonces
sendTransaction Migration
- No longer uses abi encoding and instead expects pre-encoded calldata in the
transactionsarray - Poll transaction progress with
userOpHash