Bankr x402 SDK - Wallet Operations
This skill should be used when the user asks to "set up the SDK", "initialize BankrClient", "configure wallet", "set up payment wallet", "connect wallet to Bankr", "get wallet address", "set up environment variables", "configure private key", "two wallet setup", "separate payment and trading wallets", or needs help with SDK client initialization, two-wallet configuration, wallet address derivation, environment setup, or BankrClient options.
Works with
---
name: Bankr x402 SDK - Wallet Operations
description: This skill should be used when the user asks to "set up the SDK", "initialize BankrClient", "configure wallet", "set up payment wallet", "connect wallet to Bankr", "get wallet address", "set up environment variables", "configure private key", "two wallet setup", "separate payment and trading wallets", or needs help with SDK client initialization, two-wallet configuration, wallet address derivation, environment setup, or BankrClient options.
license: MIT
---
# 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
```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: "What are my balances?",
});
```
## Separate Wallets (Recommended)
For enhanced security, use different wallets for payments and receiving:
```typescript
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
| Option | Type | Required | Description |
|--------|------|----------|-------------|
| `privateKey` | `0x${string}` | Yes | Payment wallet private key |
| `walletAddress` | `string` | No | Override receiving wallet |
| `baseUrl` | `string` | No | API endpoint (default: production) |
| `timeout` | `number` | No | Request timeout ms (default: 600000) |
## SDK Methods
| Method | Description |
|--------|-------------|
| `promptAndWait()` | Submit prompt and wait for result |
| `prompt()` | Submit prompt, return immediately |
| `pollJob()` | Poll until job completes |
| `getJobStatus()` | Check job status once |
| `cancelJob()` | Cancel pending/processing job |
| `getWalletAddress()` | Get context wallet address |
## Per-Request Override
```typescript
// Override wallet for a single request
const result = await client.promptAndWait({
prompt: "Swap 0.1 ETH to USDC",
walletAddress: "0xDifferentWallet...",
});
```
## Environment Setup
```bash
# Required
BANKR_PRIVATE_KEY=0x...your_payment_wallet_key...
# Optional
BANKR_WALLET_ADDRESS=0x...your_receiving_wallet...
```
## Security Best Practices
1. **Never commit private keys** - Use environment variables
2. **Minimize payment wallet balance** - Keep only $1-2 USDC
3. **Use separate wallets** - Payment (hot) vs receiving (cold)
4. **Rotate keys periodically** - If payment wallet compromised
## Related Skills
- **sdk-capabilities**: Full list of supported operations
- **sdk-job-management**: Async job handling and pollingMore Accessibility skills
skill-creator
anthropics/skills
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
ui-ux-pro-max
nextlevelbuilder/ui-ux-pro-max-skill
UI/UX design intelligence for web, mobile, and desktop. This skill should be used when designing, building, reviewing, or fixing interfaces, including pages, components, design systems, accessibility, interaction, responsive layout, typography, color, charts, and stack-specific UI implementation. Searchable local data: 79 searchable styles (50 active), 192 product palettes and reasoning profiles, 74 font pairings, 119 UX guidelines, 105 icons, 17 GSAP presets, 25 chart types, and 22 stacks.
hyperframes-core
heygen-com/hyperframes
The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Also covers Tailwind projects and the STORYBOARD.md / SCRIPT.md plan formats. Read before writing composition HTML.

