- Smart accounts are chain-specific - deployment status and operations depend on the currently selected chain
- If a smart account is not deployed and your dApp triggers a transaction, AIR Kit will automatically bundle the smart account deployment with the transaction
- Smart account deployments are sponsored by AIR Kit via paymaster policy, so users don’t need to pay gas fees for deployment
isSmartAccountDeployed()
Checks whether the user’s smart account has been deployed on the currently selected blockchain. Method Signature:trueif the smart account is deployed on the current chainfalseif the smart account is not yet deployed on the current chain
- User must be logged in
- User must be on a supported chain
deploySmartAccount()
Deploys the user’s smart account to the currently selected blockchain. This method explicitly deploys the smart account, though deployment will also happen automatically when needed. Method Signature:- Checks if the smart account is already deployed on the current chain (throws error if already deployed)
- Creates a deployment transaction that sends to the zero address with no value
- Submits the transaction to the blockchain using the sponsored paymaster
- Returns the transaction hash for tracking
- User must be logged in
- User must be on a supported chain
- Smart account must not already be deployed on the current chain
- Deployment is sponsored by AIR Kit - users don’t pay gas fees for deployment
- The deployment transaction may take some time to be confirmed on the blockchain
- After deployment, the user will be able to perform blockchain operations on this chain
- Automatic bundling: If you don’t explicitly deploy and trigger a transaction, deployment will be automatically bundled with the transaction