Lp add build
lp_add_buildBuild ONE UNSIGNED transaction that puts XNT (and the token, if the wallet holds some) into the token/XNT pool on XDEX: it uses the token first, swaps the exact rest of the XNT, and deposits both sides. Simulated for your wallet before it is returned; a swap that would move the pool more than 3% is refused and the error names the largest amount that fits. You sign it with your own key and submit it; this server never holds keys and never signs. It earns a share of trading fees; it does not change faucet claims.
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": {
"wallet": "<wallet>",
"xntAmount": "<xntAmount>"
},
"name": "lp_add_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | Token mint address, or APEX (default). | |
| wallet | Yes | Your X1 wallet public key. Fee payer and signer. | |
| slippage | No | Fraction between 0.001 and 0.05. Default 0.01 (1%). | |
| xntAmount | Yes | XNT to use. Part of it may be swapped into the token. | |
| apexAmount | No | Optional: at most this much of the token from the wallet (default: what it holds). 0 means XNT only. |