home / skills / bankrbot / claude-plugins / sdk-capabilities

sdk-capabilities skill

/x402-sdk-dev/skills/sdk-capabilities

This skill explains the Bankr SDK capabilities, prompts, and supported operations, helping you understand and plan multi-chain DeFi actions.

npx playbooks add skill bankrbot/claude-plugins --skill sdk-capabilities

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
3.0 KB
---
name: Bankr x402 SDK - Capabilities
description: This skill should be used when the user asks "what can the SDK do", "what prompts does Bankr support", "SDK features", "supported operations", "what can I build with Bankr", "Bankr SDK capabilities", "what chains are supported", "what tokens can I trade", "SDK supported commands", or wants to understand the full range of operations available through the Bankr SDK.
version: 1.1.0
---

# SDK Capabilities

Complete guide to operations supported by the Bankr SDK. The SDK accepts natural language prompts and returns transaction data for execution.

## Supported Operations

| Category | Operation | Example Prompt |
|----------|-----------|----------------|
| **Swaps** | Token swap | "Swap 0.1 ETH to USDC" |
| | Value-based buy | "Buy $100 of DEGEN" |
| | Percentage swap | "Swap 50% of my ETH to USDC" |
| **Transfers** | ERC20 transfer | "Send 100 USDC to 0x..." |
| | ETH transfer | "Send 0.1 ETH to @username" |
| | NFT transfer | "Send my Bored Ape #123 to 0x..." |
| **Wrapping** | Wrap ETH | "Wrap 1 ETH" |
| | Unwrap WETH | "Unwrap 1 WETH" |
| **Cross-Chain** | Bridge (EVM only) | "Bridge 100 USDC from Ethereum to Base" |
| **Leverage** | Long position | "Buy $50 of ETH/USD with 5x leverage" |
| | Short position | "Short $10 of GOLD" |
| | Close position | "Close all my BTC/USD positions" |
| **NFTs** | Buy NFT | "Buy the cheapest Tiny Dino NFT" |
| | List for sale | "List my Bored Ape for 10 ETH" |
| | Mint (Manifold) | "Mint from Manifold at 0x..." |
| | Mint (SeaDrop) | "Mint from SeaDrop at 0x..." |
| **Staking** | Stake BNKR | "Stake 1000 BNKR" |
| | Unstake | "Unstake my BNKR" |
| **Queries** | Balances | "What are my balances?" |
| | NFT holdings | "What NFTs do I own?" |
| | Token price | "Price of ETH" |
| | Token analysis | "Analyze DEGEN" |

## NOT Supported

| Feature | Alternative |
|---------|-------------|
| Polymarket betting | Use https://bankr.bot directly |
| Limit orders | Use https://swap.bankr.bot |
| DCA/TWAP orders | Use https://swap.bankr.bot |
| Solana cross-chain | EVM chains only |
| Bankr Earn | Use Bankr terminal |

## Supported Chains

| Chain | Native Token | Default |
|-------|-------------|---------|
| Base | ETH | Yes |
| Ethereum | ETH | No |
| Polygon | MATIC | No |

## Usage

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

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

const result = await client.promptAndWait({
  prompt: "Swap 0.1 ETH to USDC on Base",
});

if (result.status === "completed" && result.transactions?.length) {
  // Execute the returned transaction with your wallet
  await wallet.sendTransaction(result.transactions[0].metadata.transaction);
}
```

## Cost

Each request costs $0.01 USDC via x402 micropayments. Gas fees for transactions are paid separately.

## Related Skills

- **sdk-token-swaps**: Token swap patterns and approval handling
- **sdk-transaction-builder**: Building transfers, NFT ops, bridges
- **sdk-balance-queries**: Portfolio and balance queries

Overview

This skill describes the Bankr x402 SDK capabilities and the full range of operations you can invoke with natural language prompts. It explains supported actions, chains, costs, and practical examples so you know what the SDK can generate for transaction execution. Use this to decide which DeFi, NFT, staking, or cross-chain workflows the SDK can produce.

How this skill works

The SDK accepts plain-language prompts and returns ready-to-execute transaction data and metadata for client-side signing. It supports swaps, transfers, wrapping, bridges (EVM only), leverage positions, NFT operations, staking, and balance queries across supported chains. Each prompt costs $0.01 USDC via x402 micropayments; gas is paid separately. The SDK returns status and a transactions array you can submit with your wallet.

When to use it

  • When you want to know the exact set of actions the SDK can produce from natural language prompts
  • When building UI flows that generate on-chain transactions without hand-coding every operation
  • When you need quick prototyping of swaps, transfers, NFT buys/listings, staking, or bridges
  • When you want a single SDK to cover multi-chain EVM workflows (Base, Ethereum, Polygon)
  • When you need cost-aware, client-executable transaction payloads for execution by a wallet

Best practices

  • Phrase prompts clearly with amounts, assets, and destination chains to minimize ambiguity
  • Validate returned transaction metadata locally before signing and broadcasting
  • Handle the SDK response.status and transactions array to support retries and user confirmation
  • Monitor micropayment balance for x402 requests; include gas estimation in UX
  • Use specialized companion modules (token swaps, transaction builder, balance queries) for complex workflows

Example use cases

  • Swap 0.1 ETH to USDC on Base and execute the returned transaction via your wallet
  • Send 100 USDC to a recipient or transfer an NFT like Bored Ape #123 to another address
  • Bridge 100 USDC from Ethereum to Base for cross-chain liquidity moves (EVM only)
  • Open or close leveraged positions: buy ETH/USD with 5x leverage or close BTC/USD positions
  • List or mint NFTs (SeaDrop and Manifold), or buy the cheapest item in a collection
  • Query portfolio: fetch token balances, NFT holdings, or current token prices

FAQ

Which chains does the SDK support?

The SDK supports EVM chains: Base (default), Ethereum, and Polygon.

Are there features the SDK does not handle?

Yes. It does not support non-EVM cross-chain (e.g., Solana), on-chain DCA/TWAP, limit orders, or Polymarket betting; alternative Bankr products cover those.

How much does a request cost?

Each prompt request costs $0.01 USDC via x402 micropayments; gas fees for transactions are separate.