Get AbstractionKit examples running in minutes:
-
Clone the Repo:
git clone [email protected]/candidelabs/abstractionkit-examples.git
-
Install Dependencies:
cd abstractionkit-examples npm install -
Configure Environment Variables:
cp .env.example .env
- Default Network: Examples run on Arbitrum Sepolia. Change your
.envif you prefer another network. - Endpoints:
BUNDLER_URLandPAYMASTER_URLuse public endpoints. Get your own dedicated endpoints from the Candide Dashboard. - Gas Sponsorship (Optional): Set
SPONSORSHIP_POLICY_IDafter creating a gas policy on the Dashboard. - ERC-20 Payments: See supported ERC-20 tokens for gas payments.
- Private Key: Use any valid Ethereum private key. Use random test key.
- Default Network: Examples run on Arbitrum Sepolia. Change your
-
Run a Script:
To run any of the provided examples:
npx ts-node path/to/script.ts
Candide documentation can be found at docs.candide.dev.