Skip to content

Repository files navigation

BarzKit Examples

Working examples for @barzkit/sdk.

Setup

git clone https://github.com/barzkit/examples.git
cd examples
npm install
cp .env.example .env
# Fill in OWNER_PRIVATE_KEY and PIMLICO_API_KEY

Get free keys:

Examples

simple-agent

Create a Barz agent wallet, check balance, send a gasless test transaction.

npm run simple

gasless-agent

Demonstrates permission boundaries, freeze/unfreeze, and permission updates.

npm run gasless

batch-transactions

Send multiple transactions in a single atomic UserOperation. One signature, one gas fee.

cd batch-transactions && npm start

defi-agent

Swap tokens on Uniswap V3 and lend on Aave V3. Atomic approve+action via batch UserOperations.

cd defi-agent && npm start

multi-chain

Create agent wallets on Sepolia, Base Sepolia, and Base. Demonstrates getExplorerUrl().

cd multi-chain && npm start

License

MIT

About

Working examples for @barzkit/sdk

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages