grantPermissions
method, can send permission requests to wallets.
For users, this means a simpler experience. Instead of approving every action individually, they can allow access for a single session, making it faster and easier to use apps without dealing with constant pop-ups or interruptions.
With Smart Sessions, approved actions are carried out by the app’s backend during the session. This allows transactions to be processed automatically, making the experience even more seamless while ensuring that everything stays within the permissions set by the user.
This guide will walk you through on how to use the grantPermissions
method, including the basic setup and an example of how to request permissions from a wallet.
https://rpc.walletconnect.org/v1/wallet?projectId=<PROJECT-ID>
wallet_prepareCalls
- Accepts an EIP-5792 wallet_sendCalls
request.
Responds with the prepared calls (in the case of Appkit Embedded Wallet, an Entrypoint v0.7 user operation), some context, and a signature request.wallet_sendPreparedCalls
- Accepts prepared calls, a signature, and the context returned from prepareCalls if present. Returns an EIP-5792 calls ID.wallet_prepareCalls
JSON RPC call. It’s Accepts an EIP-5792 wallet_sendCalls
request, and returns the prepared calls according to the account’s implementation.
signatureRequest.hash
returned from wallet_prepareCalls
call using the dApp key (secp256k1 or secp256r1)
wallet_sendPreparedCalls
JSON RPC call. The RPC accepts the prepared response from wallet_prepareCalls
request along with a signature, and returns an EIP-5792 call bundle ID.