- wallet_getCapabilities
- wallet_sendCalls
- wallet_getCallsStatus
wallet_getCapabilities
This method queries the wallet for its supported execution capabilities. AppKit inspects the response to determine what features are supported by the wallet, including (but not limited to) atomic batch execution. Wallets should include the EIP-5792 capabilities in CAIP-25.wallet_sendCalls
Used to send one or more contract calls to the wallet for execution. The behavior depends on the specific capabilities returned by wallet_getCapabilities. For example:atomic: "supported"-> The wallet guarantees atomic and contiguous execution.atomic: "ready"-> The wallet may support atomic execution pending user action.atomic: "unsupported"-> The wallet does not guarantee atomic execution.
atomicRequiredshould be set to true only if the dApp requires atomic execution and the wallet has advertised support.
wallet_getCallsStatus
This method returns the status and receipt(s) of a previously submitted batch.-
The
batchIdfield, returned from thewallet_sendCallswill be used to identify the batch call. -
The
atomicfield specifies how the wallet handled the batch of calls, which affects the structure of thereceiptsfield.
Response Example
-
if
atomicis true, the batch was executed atomically by a wallet -
if
atomicis false, the batch was executed non-atomically by a wallet