Home

amm_info

POST
https://xrp.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Retrieve information about an Automated Market Maker (AMM) instance for a given pair of assets. This method returns the current state of the AMM including liquidity, fees, auction details, and voting information.

Body

application/json

Retrieve information about an Automated Market Maker (AMM) instance for a given pair of assets. This method returns the current state of the AMM including liquidity, fees, auction details, and voting information.

JSON-RPC request payload.

methodstringamm_inforequired

The JSON-RPC method name

paramsArray<object>required

Ordered JSON-RPC method parameters.

Show child attributes
assetobjectrequired

First asset in the trading pair

Show child attributes
currencystring

Currency code - "XRP" for native XRP, or 3-character code for issued currencies. For XRP, no issuer field is required.

issuerstring

Issuer account address - only required for issued currencies, not for XRP.

asset2objectrequired

Second asset in the trading pair

Show child attributes
currencystring

Currency code for the second asset

issuerstring

Issuer account address for the second asset

Response

200OK

HTTP 200 response for amm_info. The body contains either a successful result or a method-level JSON-RPC error.

400Bad Request

Bad Request. The request body is malformed or contains invalid JSON-RPC parameters.

401Unauthorized

Unauthorized: API key is present but rejected by the NOWNodes gateway.

405Method Not Allowed

Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.

422Unprocessable Entity

Missing API key. The NOWNodes gateway returns plain text for this error.

500Internal Server Error

Internal Server Error. The gateway or node failed while processing the request.