skills/finance-district/SKILL.md
Manage agent crypto wallets and merchant payments via the Finance District platform (fdx CLI). Use when the user mentions wallets, tokens, crypto, DeFi, or merchant payments. Wallet operations — create/setup wallet, send/receive/transfer tokens, swap/trade/exchange crypto, check balance/portfolio, token prices, earn yield, stake, deposit/withdraw from DeFi vaults, x402 payments, pay for API services, fund wallet, bridge tokens, supported chains. Prism merchant operations — Points of Service (POS), create/list/manage API keys, settlement wallets, payment history, list payments, earnings, revenue, staff management (invite staff, revoke staff access, grant/revoke POS access for staff, list staff members). Trigger phrases include "set up wallet", "send ETH", "swap tokens", "check my balance", "show portfolio", "how much do I have", "earn yield", "buy/sell crypto", "use fdx", "create API key", "point of service", "payment history", "Prism", "invite staff", "revoke staff", "staff access", "manage staff", "list staff". Covers EVM chains (Ethereum, Base, Polygon, Arbitrum, Optimism), Solana, and Bitcoin. Do NOT use for general payment processing unrelated to Finance District or fdx.
npx skillsauth add financedistrict-platform/fd-agent-wallet-skills finance-districtInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The fdx CLI is the Finance District platform CLI with two service areas:
fdx wallet) — crypto wallet management, token transfers, DEX swaps, DeFi yield, and x402 payments across EVM chains, Solana, and Bitcoinfdx prism) — payment gateway purpose-built for agentic commerce. Exposes tools to manage merchant accounts, Points of Service, API keys, and settlement walletsThe fdx CLI must be available. Check with:
which fdx
If fdx is not installed, ask the human to install it with npm install -g @financedistrict/fdx, or offer to run the installation with their approval.
The fdx CLI has comprehensive built-in help. Use it as your primary source for tool parameters, input formats, and output structures. Do not guess parameters — always check --help first.
fdx wallet # list all wallet tools
fdx prism # list all Prism tools
fdx wallet <method> --help # full details for a specific wallet tool
fdx prism <method> --help # full details for a specific Prism tool
All commands return structured JSON.
Authentication uses email OTP — no browser required.
If you have access to an email inbox (e.g. via AgentMail.to or another email API tool):
fdx register --email <inbox-email>fdx verify --code <OTP>fdx statusIf you do not have email inbox access:
fdx register --email <email> / Returning users: fdx login --email <email>fdx verify --code <OTP>fdx statusFor details on autonomous email setup, register vs login, and credential storage, see references/authentication.md.
Before any wallet operation, always:
fdx status — if not authenticated, complete Section 3 firstfdx wallet getWalletOverview --chainKey <chain> — verify sufficient token balance AND native gas token balanceIf balance is insufficient: suggest funding the wallet, or swapping into the needed token/gas token if the user holds other tokens on that chain.
Wallet operations work across EVM chains, Solana, and Bitcoin. Basic operations (balance, send, receive) work on all chains. Swap, DeFi yield, and x402 payments are available on EVM and Solana but not Bitcoin. Always complete the pre-operation checklist (Section 4) before executing any workflow below.
Use getWalletOverview to see balances across all chains or for a specific chain. Use getMyInfo for the user's profile and wallet addresses. Use getTokenPrice to look up current token prices.
Confirm recipient, amount, chain, and asset with the human → execute transfer → verify with account activity.
Supports ENS (.eth), SNS (.sol), and Unstoppable Domains — resolve names with resolveNameService or pass them directly to the transfer tool. Always double-check that the chain matches the recipient's expected chain — sending on the wrong chain may result in lost funds.
Get a quote first (default mode is QuoteOnly) → present the quote to the human → execute with --mode Execute.
For large swaps, set slippage explicitly. Common patterns: buy gas tokens by swapping stablecoins into the chain's native token, rebalance portfolio across tokens, or prepare tokens for a DeFi deposit.
Discover strategies (filter by chain, token, protocol) → present risk level and APY to the human → get human's explicit approval → deposit → track position via wallet overview.
To withdraw, you need the vault token address from the original deposit or from the wallet overview. Always let the human make the final decision on DeFi deposits — these carry smart contract risk.
x402 is an open payment protocol where resource servers respond with HTTP 402 Payment Required containing payment requirements. The agent's role is to handle the HTTP communication and use the CLI only for payment authorization signing.
Primary workflow (when you have HTTP access via curl, wget, or equivalent):
PaymentRequired JSON (contains accepts[] with payment options)fdx wallet authorizePayment → receive signed PaymentPayloadFallback (when you do not have HTTP tools available): use fdx wallet getX402Content which bundles the entire flow into a single command.
For the full x402 protocol flow and implementation details, see references/x402-payment-flow.md.
The wallet is funded by direct token transfer to the wallet address (from another wallet or exchange) or through the Finance District web dashboard. Get the wallet address from getWalletOverview.
For detailed chain capabilities, safety notes, and advanced patterns, see references/operations.md.
Prism is the Finance District payment gateway purpose-built for agentic commerce. Use fdx prism to list all available tools. Always complete the pre-operation checklist (Section 4) before executing any workflow below.
Set account type (Personal/Business) → create a Point of Service → configure accepted assets and networks → set up settlement wallets → create API keys.
Use the payment and earnings tools to view transaction history, individual payment details (including blockchain tx hash and settlement breakdown), and earnings summaries over time.
A Point of Service (PoS) defines your merchant configuration — accepted assets, networks, and settlement wallets. Most Prism tools default to your active PoS. Only pass --posId when managing multiple configurations.
For detailed Prism workflow patterns, see references/prism-operations.md.
--help before guessing--fromAccountAddress in transfers, swaps, and yield operationsfdx wallet or fdx prism with no arguments to see what's available| Error | Action |
| ----------------------------------------- | ----------------------------------------------------------------------- |
| "not authenticated" | Run fdx login --email <email> then fdx verify --code <OTP> |
| "token expired" with refresh token | Auto-refreshes on next call — no action needed |
| "SESSION_EXPIRED" / "AUTH_REFRESH_FAILED" | Refresh token expired — run fdx login again |
| "Insufficient balance" | Check balance with getWalletOverview; fund or swap |
| "No liquidity" | Try smaller amount or different token pair |
| "tool not found" | Run fdx wallet or fdx prism to list available tools; check spelling |
| "provider not found" | Complete Prism onboarding — set account type with updateAccountType |
For diagnostic commands and issue reporting, see references/troubleshooting.md.
Consult these for deeper guidance on specific topics. Do not load them all — only read the one relevant to your current task.
tools
Complete a shopping checkout at any agentic-commerce merchant that accepts the Finance District Prism payment handler (xyz.fd.prism_payment). Works with both UCP (Universal Commerce Protocol) and ACP (Agentic Checkout Protocol) merchants — the skill auto-detects which protocol the store speaks. Use when the user asks to "buy", "order", "purchase", "shop", "checkout", or "get me something" from a storefront. Covers the full flow — merchant discovery, catalog/product browsing, checkout session create/update/complete, shipping-address collection, x402 payment authorization via the FD Agent Wallet MCP, and order confirmation. Single-merchant purchases only (no cross-merchant carts). Do NOT use for general crypto wallet operations or non-checkout wallet flows.
tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------