Documentation Index
Fetch the complete documentation index at: https://anypay-docs-sdk-0-15-0-updates.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Earn with Trails
Trails simplifies DeFi yield deposits by natively integrating with protocols across chains — surfacing APY, TVL, and other metrics, and handling all swapping and bridging to the vault or pool token in a single transaction.Use cases
- Deposit into lending protocols like Aave or Morpho
- Fund yield aggregator vaults like Yearn Finance
- Fund auto-compounding yield strategies
Examples
Deposit into a user-selected vault
Trails has integrated multiple DeFi pools and vaults across Aave, Morpho, and others. Users can pick from the integrated set out of the box:Deposit into a specific DeFi pool
For natively supported protocols like Aave and Morpho, use composable actions — no ABI encoding required. Thelend and deposit builders handle the contract calls internally:
useEarnMarkets to discover available marketId values at runtime. For protocols not covered by the action builders, see Composable Actions — custom.
Next steps
- Earn mode configuration — complete configuration options
- Composable actions — chain
lend,deposit, andswapwithout encoding calldata by hand - SDK configuration — widget setup and event handling
- Theming — customize appearance
- Tokens and chains — supported protocols