Working examples for @barzkit/sdk.
git clone https://github.com/barzkit/examples.git
cd examples
npm install
cp .env.example .env
# Fill in OWNER_PRIVATE_KEY and PIMLICO_API_KEYGet free keys:
- Pimlico API key: dashboard.pimlico.io
- Test ETH: sepoliafaucet.com
- Owner private key:
node -e "console.log('0x'+require('crypto').randomBytes(32).toString('hex'))"
Create a Barz agent wallet, check balance, send a gasless test transaction.
npm run simpleDemonstrates permission boundaries, freeze/unfreeze, and permission updates.
npm run gaslessSend multiple transactions in a single atomic UserOperation. One signature, one gas fee.
cd batch-transactions && npm startSwap tokens on Uniswap V3 and lend on Aave V3. Atomic approve+action via batch UserOperations.
cd defi-agent && npm startCreate agent wallets on Sepolia, Base Sepolia, and Base. Demonstrates getExplorerUrl().
cd multi-chain && npm startMIT