Check out the full example code for implementing the Smart Wallet SDK.
Note: The examples are pre-configured for
InkSepolia
, but you can easily switch to other supported networks. Check available networks inconstants/chainConfig.ts
and update the example file accordingly by changing the Network name.
Clone the Repository
Set Up Environment Variables
Add Your Private Key (Optional)
You can either include your private key in the .env
file, or leave it empty—example files will automatically generate a random private key if none is provided.
Install Dependencies
Run Example Use Cases
Sponsored Transactions:
ERC20 Gas Payments:
To obtain WETH as the gas token on InkSepolia, run pnpm getWeth
—this will wrap 0.1 ETH into 0.1 WETH. Once completed, you can proceed by running the following command as an example.
Native Gas Payments:
Estimate Gas:
Kernel Smart Account Transactions:
Safe Smart Account Transactions:
Not using templates? Prefer a step-by-step approach? Up next: How-To Guides for implementing the Smart Wallet SDK use cases step-by-step.
Check out the NPM package for the Gelato Smart Wallets SDK.
Depending on your target use case, choose from the guides below that best match your desired destination or integration flow.