------------------ | ---------------------------------- | ------------------------------------------------ |
| Intent lifecycle | QuoteIntent | Get quote + depositTransaction for a swap/bridge |
| | CommitIntent | Lock the intent, receive intentId |
| | ExecuteIntent | Notify Trails the deposit tx is mined |
| | WaitIntentReceipt | Poll until intent is complete |
| Intent management | GetIntent | Look up intent by ID |
| | GetIntentReceipt | Get final receipt |
| | SearchIntents | List intents by owner/status |
| | GetIntentHistory | Paginated history |
| | AbortIntent | Cancel a pending intent |
| Discovery | GetEarnPools | Active yield pools with APY, TVL, depositAddress |
| | GetChains | Supported chains |
| | GetTokenList | Tokens per chain |
| | GetTokenPrices | USD prices |
| | GetExactInputRoutes | Preview routes for exact-in |
| | GetExactOutputRoutes | Preview routes for exact-out |
| Reference | GetExchangeRate | Fiat conversion |
| | GetTrailsContracts | Contract addresses per chain |
| Utility | Ping / RuntimeStatus / Clock | Health + server time |
Key Notes
originTokenAmountis in base units (e.g.10000000= 10 USDC with 6 decimals)- Use
"0x000...000"for native token addresses submitmust be imported from@bankr/cli/dist/lib/api.js(not re-exported from main entry)- Add
"destinationToAddress"to QuoteIntent to send output to a different wallet than the payer