Deploy Smart Account
Install Sessions Module
Define and Grant Permissions
Consume Permissions
Setup & Boilerplate
Preparing the Account
prepareForPermissions
Granting Permissions
sessionSigner
:actionTarget
, actionTargetSelector
, actionPolicies
)chainId
)maxPaymentAmount
sessionDetails
safely—this object is required to use the permission later.This example is using grantPermissionTypedDataSign
method. It will prompt user with an EIP-712 signature request (signTypedData).
If you want personal_sign
, use grantPermissionPersonalSign
method.Using the Permission
sponsorship: true
, do not provide the feeToken
param when granting the permission.