This repo demonstrates how to send smart account transactions (aka "UserOps") on your Conduit rollup. We assume that you have installed the Conduit AA stack which consists of a Conduit bundler and the ZeroDev smart account SDK.
Clone this repo, then create a .env
with the following values:
AA_RPC=
NODE_RPC=
CHAIN_ID=
You can obtain the AA RPC from your Conduit AA dashboard, and the node RPC and chain ID from your Conduit rollup page.
npm i
Now you can run the example script to send a gasless transaction:
npx ts-node main.ts
Check out the ZeroDev docs to learn all the amazing things you can do with smart accounts, including gas sponsorship, transaction batching, transaction automation, and chain abstraction!