All Transactions

All Transactions

Every gasless operation follows the same pattern. Init the client once, call any method, done.

Setup - once

typescript
import { Zedkr } from "zedkr";
const client = await Zedkr.create({ provider }); // pass your ethers provider - that's all

All operations - one line each

1
Send tokensTransfer any ERC20 to a recipient
typescript
const result = await client.transfer(signer, "0xRecipient", "0xToken", "10", 18);
2
Send allDrain entire balance, fee auto-deducted
typescript
const result = await client.transferAll(signer, "0xRecipient", "0xToken", 18);
3
DEX swapSwap via BlazeSwap or any Uniswap V2 router
typescript
const result = await client.swap(signer, DEX_ROUTER, callData);
4
Contract callCall any on-chain function gaslessly
typescript
const result = await client.call(signer, "0xContract", callData);