MiniKit. They resolve to a result object shaped like { executedWith, data } and throw if the command fails.
Async Command Results
UseexecutedWith to understand whether the command ran through World App, Wagmi, or a custom fallback.
What To Expect
executedWithtells you which runtime handled the commanddatacontains the success payload for that command- command-specific failures are thrown, so use
try/catch - some commands still require backend verification even after a successful response, such as
walletAuthandpay
Event Subscriptions
MiniKit.subscribe() and MiniKit.unsubscribe() still exist for lower-level integrations and legacy v1 flows. For new 2.x command integrations, prefer await MiniKit.<command>().
If you are migrating from MiniKit 1.x, do not use
finalPayload,
commandPayload, MiniKit.commands, or MiniKit.commandsAsync in new code.