Skip to main content

Wallet API Overview

The Wallet API provides direct access to wallet operations without going through the AI agent. Use it for reading balances, signing transactions, and submitting them on-chain.

Wallet API vs Agent API

Wallet API (/wallet/*)Agent API (/agent/*)
AuthAny API key for reads; Wallet & Agent API for writesRequires Wallet & Agent API enabled
OperationsDirect wallet ops (balances, sign, submit, transfer)Natural language prompts → AI execution
LatencyFast (no LLM)Slower (LLM reasoning)
Use whenYou know exactly what to doYou want AI to decide

Base URL

https://api.bankr.bot

Authentication

All endpoints accept either:

  • API Key: X-API-Key: your_api_key_here (CLI, SDK, external)
  • Privy JWT: Cookie-based auth (web frontend)

Access Control

LayerRead endpointsWrite endpoints
API key valid + has walletRequiredRequired
IP allowlist (allowedIps)EnforcedEnforced
Wallet API (walletApiEnabled)Not requiredRequired
Read-only mode (readOnly)N/ABlocks with 403
Allowed recipients (allowedRecipients)N/AEnforced per-endpoint

Read endpoints (any API key)

GET /wallet/me and GET /wallet/portfolio work with any valid API key that has an associated wallet — no feature flags needed. IP allowlist is still enforced.

Write endpoints (Wallet API required)

POST /wallet/transfer, /wallet/sign, /wallet/submit require Wallet API (walletApiEnabled) enabled on your key. Additionally:

  • Read-only keys are rejected with 403
  • Allowed recipients restrict which addresses can receive funds:
    • /wallet/transfer — validates the recipient against the EVM allowlist
    • /wallet/sign — blocks eth_signTransaction and eth_signTypedData_v4 (can't verify recipients from calldata); allows personal_sign
    • /wallet/submit — blocks all raw submissions (can't verify recipients from calldata)

Enable Wallet & Agent API at bankr.bot/api.

Endpoints

MethodEndpointAuthDescription
GET/wallet/meAny API keyWallet info, socials, club status
GET/wallet/portfolioAny API keyToken balances, PnL, NFTs
POST/wallet/transferWallet & Agent APIDirect ERC20/native transfer (EVM only)
POST/wallet/signWallet & Agent APISign messages and transactions
POST/wallet/submitWallet & Agent APISubmit + broadcast transactions

CLI

bankr wallet                          # Show wallet info (whoami)
bankr wallet portfolio # Token balances
bankr wallet portfolio --pnl # With profit/loss
bankr wallet portfolio --nfts # With NFT holdings
bankr wallet portfolio --all # Everything
bankr wallet sign -t personal_sign -m "hello"
bankr wallet submit tx --to 0x... --chain-id 8453