{
  "x402Version": 2,
  "id": 72754,
  "slug": "saylorinnovations-api-explorer-xrp-amm",
  "resource": "https://saylorinnovations.com/api/explorer/xrp/amm",
  "description": "XRP Ledger AMM pool for XRP and a token: reserves, implied price, trading fee, discounted fee, LP token supply, fee voters and auction slot.",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "chain": {
        "type": "string",
        "description": "the chain this describes"
      },
      "pair": {
        "type": "string",
        "description": "the trading pair"
      },
      "amm_account": {
        "type": "string",
        "description": "account that holds the pool"
      },
      "xrp_reserve": {
        "type": "number",
        "description": "XRP in the pool"
      },
      "token_reserve": {
        "type": "number",
        "description": "token in the pool"
      },
      "price_token_per_xrp": {
        "type": "number",
        "description": "implied price, token per XRP"
      },
      "price_xrp_per_token": {
        "type": "number",
        "description": "implied price, XRP per token"
      },
      "trading_fee_pct": {
        "type": "number",
        "description": "current trading fee"
      },
      "discounted_fee_pct": {
        "type": [
          "number",
          "null"
        ],
        "description": "fee for the auction slot holder"
      },
      "lp_token_supply": {
        "type": "number",
        "description": "LP tokens outstanding"
      },
      "lp_token_currency": {
        "type": "string",
        "description": "LP token code"
      },
      "fee_voters": {
        "type": "number",
        "description": "accounts voting on the fee"
      },
      "auction_slot_active": {
        "type": "boolean",
        "description": "true when a discounted-fee slot is held"
      },
      "note": {
        "type": "string",
        "description": "plain-language reading of the result, including units"
      },
      "source": {
        "type": "string",
        "description": "where the data was read from"
      }
    },
    "required": [
      "chain",
      "pair",
      "amm_account",
      "xrp_reserve",
      "token_reserve",
      "price_token_per_xrp",
      "trading_fee_pct",
      "note",
      "source"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "currency": "USD",
            "issuer": "rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "chain": "xrp",
            "pair": "XRP/USD",
            "amm_account": "rs9ineLqrCzeAGS1bxsrW8x2n3bRJYAh3Q",
            "xrp_reserve": 8662.45938,
            "token_reserve": 12012.29283,
            "price_token_per_xrp": 1.386707,
            "price_xrp_per_token": 0.72113288,
            "trading_fee_pct": 0.462,
            "discounted_fee_pct": 0.046,
            "lp_token_supply": 7632006.21,
            "lp_token_currency": "03930D02208264E2E40EC1B0C09E4DB96EE197B1",
            "fee_voters": 5,
            "auction_slot_active": false,
            "note": "The pool holds XRP and the token in a constant-product curve, so the implied price is the reserve ratio and a trade moves it by its size relative to the reserves. trading_fee_pct is the fee in force (set by liquidity providers' votes); auction_slot_active says whether a discounted-fee slot is currently held.",
            "source": "XRP Ledger JSON-RPC amm_info (public server)"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "currency": {
                    "type": "string",
                    "description": "the issued token code paired with XRP"
                  },
                  "issuer": {
                    "type": "string",
                    "description": "the issuer r-address of that token"
                  }
                },
                "required": [
                  "currency",
                  "issuer"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "chain": {
                    "type": "string",
                    "description": "the chain this describes"
                  },
                  "pair": {
                    "type": "string",
                    "description": "the trading pair"
                  },
                  "amm_account": {
                    "type": "string",
                    "description": "account that holds the pool"
                  },
                  "xrp_reserve": {
                    "type": "number",
                    "description": "XRP in the pool"
                  },
                  "token_reserve": {
                    "type": "number",
                    "description": "token in the pool"
                  },
                  "price_token_per_xrp": {
                    "type": "number",
                    "description": "implied price, token per XRP"
                  },
                  "price_xrp_per_token": {
                    "type": "number",
                    "description": "implied price, XRP per token"
                  },
                  "trading_fee_pct": {
                    "type": "number",
                    "description": "current trading fee"
                  },
                  "discounted_fee_pct": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "fee for the auction slot holder"
                  },
                  "lp_token_supply": {
                    "type": "number",
                    "description": "LP tokens outstanding"
                  },
                  "lp_token_currency": {
                    "type": "string",
                    "description": "LP token code"
                  },
                  "fee_voters": {
                    "type": "number",
                    "description": "accounts voting on the fee"
                  },
                  "auction_slot_active": {
                    "type": "boolean",
                    "description": "true when a discounted-fee slot is held"
                  },
                  "note": {
                    "type": "string",
                    "description": "plain-language reading of the result, including units"
                  },
                  "source": {
                    "type": "string",
                    "description": "where the data was read from"
                  }
                },
                "required": [
                  "chain",
                  "pair",
                  "amm_account",
                  "xrp_reserve",
                  "token_reserve",
                  "price_token_per_xrp",
                  "trading_fee_pct",
                  "note",
                  "source"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "xrpl amm pool",
    "xrp amm reserves",
    "amm trading fee xrp",
    "xrp lp token supply",
    "xrp token pool price"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.990Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "currency": {
          "type": "string",
          "description": "the issued token code paired with XRP"
        },
        "issuer": {
          "type": "string",
          "description": "the issuer r-address of that token"
        }
      },
      "required": [
        "currency",
        "issuer"
      ]
    },
    "exampleResponse": {
      "chain": "xrp",
      "pair": "XRP/USD",
      "amm_account": "rs9ineLqrCzeAGS1bxsrW8x2n3bRJYAh3Q",
      "xrp_reserve": 8662.45938,
      "token_reserve": 12012.29283,
      "price_token_per_xrp": 1.386707,
      "price_xrp_per_token": 0.72113288,
      "trading_fee_pct": 0.462,
      "discounted_fee_pct": 0.046,
      "lp_token_supply": 7632006.21,
      "lp_token_currency": "03930D02208264E2E40EC1B0C09E4DB96EE197B1",
      "fee_voters": 5,
      "auction_slot_active": false,
      "note": "The pool holds XRP and the token in a constant-product curve, so the implied price is the reserve ratio and a trade moves it by its size relative to the reserves. trading_fee_pct is the fee in force (set by liquidity providers' votes); auction_slot_active says whether a discounted-fee slot is currently held.",
      "source": "XRP Ledger JSON-RPC amm_info (public server)"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "currency": "USD",
              "issuer": "rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "chain": "xrp",
              "pair": "XRP/USD",
              "amm_account": "rs9ineLqrCzeAGS1bxsrW8x2n3bRJYAh3Q",
              "xrp_reserve": 8662.45938,
              "token_reserve": 12012.29283,
              "price_token_per_xrp": 1.386707,
              "price_xrp_per_token": 0.72113288,
              "trading_fee_pct": 0.462,
              "discounted_fee_pct": 0.046,
              "lp_token_supply": 7632006.21,
              "lp_token_currency": "03930D02208264E2E40EC1B0C09E4DB96EE197B1",
              "fee_voters": 5,
              "auction_slot_active": false,
              "note": "The pool holds XRP and the token in a constant-product curve, so the implied price is the reserve ratio and a trade moves it by its size relative to the reserves. trading_fee_pct is the fee in force (set by liquidity providers' votes); auction_slot_active says whether a discounted-fee slot is currently held.",
              "source": "XRP Ledger JSON-RPC amm_info (public server)"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "currency": {
                      "type": "string",
                      "description": "the issued token code paired with XRP"
                    },
                    "issuer": {
                      "type": "string",
                      "description": "the issuer r-address of that token"
                    }
                  },
                  "required": [
                    "currency",
                    "issuer"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "chain": {
                      "type": "string",
                      "description": "the chain this describes"
                    },
                    "pair": {
                      "type": "string",
                      "description": "the trading pair"
                    },
                    "amm_account": {
                      "type": "string",
                      "description": "account that holds the pool"
                    },
                    "xrp_reserve": {
                      "type": "number",
                      "description": "XRP in the pool"
                    },
                    "token_reserve": {
                      "type": "number",
                      "description": "token in the pool"
                    },
                    "price_token_per_xrp": {
                      "type": "number",
                      "description": "implied price, token per XRP"
                    },
                    "price_xrp_per_token": {
                      "type": "number",
                      "description": "implied price, XRP per token"
                    },
                    "trading_fee_pct": {
                      "type": "number",
                      "description": "current trading fee"
                    },
                    "discounted_fee_pct": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "fee for the auction slot holder"
                    },
                    "lp_token_supply": {
                      "type": "number",
                      "description": "LP tokens outstanding"
                    },
                    "lp_token_currency": {
                      "type": "string",
                      "description": "LP token code"
                    },
                    "fee_voters": {
                      "type": "number",
                      "description": "accounts voting on the fee"
                    },
                    "auction_slot_active": {
                      "type": "boolean",
                      "description": "true when a discounted-fee slot is held"
                    },
                    "note": {
                      "type": "string",
                      "description": "plain-language reading of the result, including units"
                    },
                    "source": {
                      "type": "string",
                      "description": "where the data was read from"
                    }
                  },
                  "required": [
                    "chain",
                    "pair",
                    "amm_account",
                    "xrp_reserve",
                    "token_reserve",
                    "price_token_per_xrp",
                    "trading_fee_pct",
                    "note",
                    "source"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/explorer/xrp/amm?currency=USD&issuer=rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "chain": "string",
    "pair": "string",
    "amm_account": "string",
    "xrp_reserve": 0,
    "token_reserve": 0,
    "price_token_per_xrp": 0,
    "price_xrp_per_token": 0,
    "trading_fee_pct": 0,
    "discounted_fee_pct": 0,
    "lp_token_supply": 0,
    "lp_token_currency": "string",
    "fee_voters": 0,
    "auction_slot_active": true,
    "note": "string",
    "source": "string"
  }
}