MiniKit methods and removes World ID verification from MiniKit.
What Changed
- World ID verification moved out of MiniKit and into
@worldcoin/idkit MiniKit.commandsandMiniKit.commandsAsyncwere removed- command results now resolve 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 hyphenssendTransactionnow takes calldata-styletransactionsand returnsuserOpHash
Old To New
Import Path Changes
walletAuth Migration
- generate the nonce on your backend
- strip hyphens from UUID-based nonces
- use
await MiniKit.walletAuth(...) - verify the returned SIWE payload on your backend
sendTransaction Migration
- move from ABI-driven
transactionobjects to calldata-driventransactions - pass
chainId: 480 - poll transaction progress with
userOpHash
Standalone Apps
If your app already uses wagmi, addMiniKitProvider and the worldApp() connector so the same command calls can adapt to World App automatically. If you use viem or ethers directly, use getWorldAppProvider() when MiniKit.isInWorldApp() is true.
Verification Migration
Any oldMiniKit.verify or MiniKit.commandsAsync.verify flow should be replaced with IDKit. MiniKit 2.x only owns mini app commands.