get_rwa_quote
Quote for swapping into or out of a tokenized real-world asset (a tokenized stock, ETF, gold or treasury token) on one chain, measured against what the token stands for: its reference price, read on chain from a Chainlink feed or the issuing fund's own rate, never from the pool being traded. Use it instead of get_quote when one side is a tokenized asset and the user cares whether the price is fair; use list_rwa_assets first to find the token's address. Read-only: it never executes a trade. Returns the quote (output.amount in tokenOut's base units, output.decimals, venues, gasFeeUSD) and an rwa block: refDeviationBps (the output's value against the input's at reference prices; positive pays more), the reference used and how old it is, marketOpen (whether the US session is open), and minOut. Also returns swapUrl, a link that opens this swap on the LCX Liberty DEX site for the user to review and sign. When the quote is further below the reference than maxRefDeviationBps (default 100), or the token has no live reference, the result is an error that says so.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chainId": "<chainId>",
"tokenIn": "<tokenIn>",
"tokenOut": "<tokenOut>",
"amount": "<amount>"
},
"name": "get_rwa_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Positive human amount of tokenIn to sell, e.g. "1000". | |
| chainId | Yes | 1 Ethereum, 8453 Base, 42161 Arbitrum One, 10 OP Mainnet, 4663 Robinhood Chain, 56 BNB Chain, 137 Polygon, 43114 Avalanche, 130 Unichain, 143 Monad, 5042 Arc, 999 HyperEVM, 9745 Plasma, 59144 Linea, 4326 MegaETH, 57073 Ink, 480 World Chain, 1868 Soneium, 100 Gnosis, 25 Cronos, 146 Sonic, 324 ZKsync | |
| tokenIn | Yes | Sell token address. | |
| tokenOut | Yes | Buy token address. One of tokenIn and tokenOut must be a tokenized asset from list_rwa_assets. | |
| maxRefDeviationBps | No | How far below the reference price to accept, in basis points. Default 100. |