0xYourWallet and token addresses with your user’s values.
Discovery
Bootstrap your app before any wallet connection:GET /v2/tokens?network=polygon&query=brz
Swap workflow
Build unsigned action
POST /v2/swaps/{quoteId}/action → transactions[] with to, data, value, chainId.Pool workflow
List and explore (live)
pair, protocol, tvlUsd, apr, volume24hUsd, and fees24hUsd. Live APR from indexed on-chain data is on the roadmap; preview values may appear until then.
Add / remove liquidity (rolling out)
| Step | Endpoint |
|---|---|
| Analytics | GET /v2/pools/{poolId}/tvl, /volume, /fees, /apr |
| Quote | POST /v2/pools/{poolId}/quote with action: add or remove |
| Action | POST /v2/pools/{poolId}/action → unsigned LP transaction(s) |
| Positions | GET /v2/pools/{poolId}/positions?wallet=0x… |
{chainId}:{poolAddress} (v4 pools use bytes32 ids).
Vault workflow
List vaults (live)
strategy, asset, apy, tvlUsd, riskScore, and fees. Live APY is on the roadmap.
Deposit / withdraw (rolling out)
| Step | Endpoint |
|---|---|
| Quote | POST /v2/vaults/{vaultId}/quote |
| Deposit / withdraw | POST /v2/vaults/{vaultId}/action |
| Deploy new vault | POST /v2/vaults/deploy/quote → /deploy/action |
| Manage / rebalance | POST /v2/vaults/{vaultId}/manage/action, /rebalance/action |
Bridge workflow
GET /v2/bridges/routes?fromChain=base&toChain=polygonPOST /v2/bridges/quotePOST /v2/bridges/{quoteId}/action
fromChain=polygon, toChain=tron, BRZ on Polygon (0x4eD141110F6EeeAbA9A1df36d8c26f684d2475Dc), and USDT on Tron (TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t). If the upstream provider has no route, v2 returns 502 upstream_error with a requestId; retry only after route/liquidity changes.
RPC workflow
Use v2 RPC when your app needs a read-only JSON-RPC call but should not expose the internal rpc-dispatcher key. API v2 forwards the request server-side to DFB rpc-dispatcher.chainId is the numeric chain id, for example Polygon 137 or Tron 728126428 when JSON-RPC support is available upstream.
Portfolio workflow
Native balance: set
includeNative=true or include the zero address 0x0000000000000000000000000000000000000000.
Availability summary
| Flow | Status |
|---|---|
| Discovery, pool/vault catalogs | Live |
| Swap quote + action | Live (supported networks) |
| Pool/vault analytics & LP/vault actions | Rolling out |
| Bridges | Live where upstream routes exist |
| Portfolio balances | Rolling out by network |
| Portfolio positions | Planned |
| RPC proxy | Live |
| Transaction relay via API | Not supported — client broadcast |
503 provider_unavailable after valid input.