
Bankr X402 SDK Wallet Operations
This handles wallet initialization for Bankr's x402 micropayment protocol, which charges $0.01 per request. You'll configure a two-wallet system: one private key for signing payments and an optional second address for receiving swapped tokens and NFTs. The setup is straightforward if you're already working with Bankr's SDK, just pass your private key as a hex string. Worth noting that the context wallet defaults to your payment wallet if you don't specify one separately. The protocol itself is interesting, basically enabling per-request micropayments for API calls, though you're locked into their payment rails once you integrate it.
- GitHub stars
- 80
- last updated
- Aug 21, 2026
Install
$ npx -y skills add bankrbot/claude-plugins --skill 'Bankr x402 SDK - Wallet Operations' --agent claude-codeInstalls into .claude/skills of the current project.
Files
SDK Wallet Operations
Initialize and configure the BankrClient with proper wallet setup.
Two-Wallet System
| Wallet | Purpose | Required |
|---|---|---|
Payment (privateKey) | Signs x402 micropayments ($0.01/request) | Yes |
Context (walletAddress) | Receives swapped tokens, NFTs | No (defaults to payment wallet) |
Basic Setup
import { BankrClient } from "@bankr/sdk";
const client = new BankrClient({
privateKey: process.env.BANKR_PRIVATE_KEY as `0x${string}`,
});
const result = await client.promptAndWait({
prompt: "What are my balances?",
});
Separate Wallets (Recommended)
For enhanced security, use different wallets for payments and receiving:
const client = new BankrClient({
// Hot wallet with minimal USDC for payments
privateKey: process.env.PAYMENT_WALLET_PK as `0x${string}`,
// Cold/trading wallet receives tokens
walletAddress: process.env.RECEIVING_WALLET,
});
Configuration Options
Sponsors
Details
- Repository
- github.com/bankrbot/claude-plugins
- Categories
- Finance & Trading, Web3 & Blockchain
- First seen
- Jun 3, 2026
More from bankrbot/claude-plugins
All 36- Bankr Agent Agent Profiles
- Bankr Agent Arbitrary Transactions
- Bankr Agent Automation
- Bankr Agent Error Handling
- Bankr Agent Job Workflow
- Bankr Agent Leverage Trading
- Bankr Agent LLM Gateway
- Bankr Agent Market Research
- Bankr Agent NFT Operations
- Bankr Agent Polymarket
- Bankr Agent Portfolio
- Bankr Agent Token Deployment
- Bankr Agent Token Trading
- Bankr Agent Transfers
- Bankr Dev API Basics
- Bankr Dev API Workflow
- Bankr Dev Arbitrary Transactions
- Bankr Dev Automation
- Bankr Dev Client Patterns
- Bankr Dev Leverage Trading
- Bankr Dev Market Research
- Bankr Dev NFT Operations
- Bankr Dev Polymarket
- Bankr Dev Portfolio