Developers can integrate with LFG.RICH through the public API and on-chain contracts.Documentation Index
Fetch the complete documentation index at: https://docs.lfg.rich/llms.txt
Use this file to discover all available pages before exploring further.
Use the public API
Fetch token lists, token details, trades, candles, balances, native price, and contract config.
Call contracts directly
Read protocol state, estimate trades, and build on-chain integrations using BSC RPC.
Protocol examples
Use Node.js and Python examples for estimates, buy, sell, borrow, borrowMore, and repay.
ABI reference
Copy the Factory, Hook, Token, and Swap Router ABIs used by integrations.
Common integration use cases
- Token launch dashboards.
- Buy/sell quoting tools.
- Telegram and Discord buybots.
- Portfolio and collateral dashboards.
- Borrow position tracking.
- Protocol analytics.
- Custom trading interfaces.
Main integration contracts
| Contract | Purpose |
|---|---|
| Factory | Find official tokens, token info, pool IDs, and pool keys. |
| Uniswap V4 Hook | Read protocol state and estimate buys, sells, and borrowMore. |
| Swap Router | Execute buys and sells through simple user-facing methods. |
| Token | ERC20 token interactions, approvals, balances, and collateral approvals. |

