Zero to Earning Fees
A complete walkthrough from no setup to earning trading fees from your deployed token.
Overview
This guide will take you through:
- Setting up your agent
- Launching a token
- Earning trading fees
- Funding your compute with those fees
Time required: ~15 minutes
Step 1: Connect Your Agent
Choose your integration method:
Option A: OpenClaw Skill (Recommended)
Tell your OpenClaw agent:
install the bankr skill from https://github.com/BankrBot/openclaw-skills
That's it — your agent can now trade, launch tokens, and claim fees.
Option B: Agent API
Get an API key at bankr.bot/api and use the REST API:
const API_KEY = process.env.BANKR_API_KEY;
// Submit a prompt
const response = await fetch('https://api.bankr.bot/agent/prompt', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': API_KEY,
},
body: JSON.stringify({ prompt: 'deploy a token called MyAgent on base' }),
});
Step 2: Check Your Wallet
Bankr covers gas fees for agent wallets on supported chains, so you can get started without any ETH.
Check your balances:
"what are my balances on base?"
Gas is sponsored for most operations. You can start trading and launching tokens immediately.
Step 3: Launch Your Token
Deploy a token for your agent:
"deploy a token called MyAgent with symbol AGENT on base"
Bankr will:
- Create the token contract
- Set up a liquidity pool
- Configure fee routing to your wallet
You'll receive:
- Contract address
- Pool URL on DEX
- Fee claiming instructions
Optional: Add Vesting
For more credibility, vault some tokens:
"deploy a token called MyAgent with 20% vaulted for 30 days on base"
Step 4: Promote Your Token
Social Deployment
For built-in virality, deploy from X:
@bankrbot deploy a token called MyViralAgent on base
This creates social proof and discoverability.
Share the Link
After deployment, share your token:
- DEX link for trading
- Contract address for verification
- Your agent's capabilities
Step 5: Earn Trading Fees
As people trade your token, fees accumulate automatically.
Check Your Fees
"how much fees have I earned?"
"check fees for MyAgent"
Claim Your Fees
"claim my fees for MyAgent"
This transfers:
- Your token (from swaps)
- WETH (from trading fees)
Step 6: Use Your Earnings
Now you have:
- Trading fee revenue in ETH/WETH
- Ongoing income as trading continues
Your earnings can fund:
- Gas for more transactions
- Infrastructure costs
- Further development
The loop is complete: Trading fees → ETH → Gas → Your agent runs
Example: Complete Flow with Agent API
const API_KEY = process.env.BANKR_API_KEY!;
const BASE_URL = 'https://api.bankr.bot/agent';
async function bankrPrompt(prompt: string): Promise<string> {
// Submit prompt
const submitRes = await fetch(`${BASE_URL}/prompt`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': API_KEY,
},
body: JSON.stringify({ prompt }),
});
const { jobId } = await submitRes.json();
// Poll for completion
for (let i = 0; i < 60; i++) {
const statusRes = await fetch(`${BASE_URL}/job/${jobId}`, {
headers: { 'X-API-Key': API_KEY },
});
const job = await statusRes.json();
if (job.status === 'completed') return job.response;
if (job.status === 'failed') throw new Error(job.error);
await new Promise((r) => setTimeout(r, 2000));
}
throw new Error('Timeout');
}
// 1. Deploy token
const launch = await bankrPrompt(
'deploy a token called TradingBot with symbol TBOT on base'
);
console.log(launch);
// 2. Check fees periodically
const fees = await bankrPrompt('check my fees for TradingBot');
console.log(fees);
// 3. Claim when ready
const claim = await bankrPrompt('claim my fees for TradingBot');
console.log(claim);
Tips for Success
Build a Useful Agent
Tokens need utility. Your agent should:
- Solve a real problem
- Have consistent functionality
- Build a community
Engage Your Community
- Share updates on social
- Respond to users
- Improve based on feedback
Monitor Your Fees
"show my deployed tokens with fees"
Claim regularly to keep your wallet funded for gas.
What's Next?
- Fee Splitting — Route fees to collaborators
- Vaulting and Vesting — Lock tokens for credibility
- Features Table — All agent capabilities