Skip to main content

bankr-agent-dev Plugin

Developer toolkit for building on the Bankr Agent API.

Installation

claude plugin install bankr-agent-dev

Capabilities

Project Scaffolding

Generate starter projects:

"create a trading bot using the Bankr API"
"scaffold a web dashboard for portfolio tracking"
"generate a CLI tool for DCA management"

API Documentation

Access API docs and patterns:

"show me the Bankr API endpoints"
"how do I poll for job completion?"
"what transaction types are supported?"

TypeScript Interfaces

Get type definitions:

"show me the JobStatus interface"
"what types does the SDK export?"
"generate types for transaction handling"

Code Generation

Generate implementation code:

"write a function to submit a swap"
"create a polling utility for jobs"
"implement error handling for the API"

Example Session

You: I want to build a trading bot that buys ETH every hour

Claude: I'll help you create a DCA bot using the Bankr Agent API.

Here's the structure:

```typescript
import { BankrClient } from '@bankr/sdk';

const client = new BankrClient({
privateKey: process.env.PRIVATE_KEY as `0x${string}`,
});

async function executeDCA() {
const result = await client.promptAndWait({
prompt: 'buy $10 of ETH on base',
});

console.log(`DCA executed: ${result.response}`);
}

// Run every hour
setInterval(executeDCA, 60 * 60 * 1000);

Want me to add error handling and logging?


## Use Cases

- Building trading bots
- Creating portfolio dashboards
- Developing CLI tools
- Integrating Bankr into existing apps

## Project Templates

The plugin can generate templates for:

| Type | Description |
|------|-------------|
| Bot | Automated trading bot |
| Web Service | Express/Fastify API |
| Dashboard | React portfolio UI |
| CLI | Command-line tool |

## Best Practices

The plugin provides guidance on:

- Error handling patterns
- Polling strategies
- Transaction management
- Security considerations