n9t2_xrpl_get_amm_info
Read-only XRPL Automated Market Maker (AMM) state lookup for a specific pool. Identify the pool with amm_account, or with the paired asset and asset2 currency objects; account is optional context used by the native AMM lookup when applicable. Use ledger_hash or ledger_index to pin the lookup to a specific ledger. The result returns native amm_info data including pool balances, LP token supply, trading fee, auction slot, and vote slots when present. This paid lookup does not modify the ledger and is subject to the configured gateway rate limits. Use this for AMM pool state; use n9t2_xrpl_get_book_offers for DEX order-book depth and n9t2_xrpl_get_ledger_data for raw ledger-state objects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | No | First AMM asset specification using an XRPL currency object. | |
| asset2 | No | Second AMM asset specification paired with asset. | |
| account | No | Optional XRPL account used by the native AMM lookup when applicable. | |
| amm_account | No | Optional AMM account address identifying the specific AMM ledger object. | |
| ledger_hash | No | Optional ledger hash used to pin the AMM lookup to a specific ledger. | |
| ledger_index | No | Optional ledger index or selector used to pin the lookup to a specific ledger. |