lp_add_build
may change things: you confirm before it runsBuild 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.
Input schema
{
"type": "object",
"properties": {
"wallet": {
"type": "string",
"description": "Your X1 wallet public key. Fee payer and signer."
},
"xntAmount": {
"type": "number",
"description": "XNT to use. Part of it may be swapped into the token."
},
"apexAmount": {
"type": "number",
"description": "Optional: at most this much of the token from the wallet (default: what it holds). 0 means XNT only."
},
"token": {
"type": "string",
"description": "Token mint address, or APEX (default)."
},
"slippage": {
"type": "number",
"description": "Fraction between 0.001 and 0.05. Default 0.01 (1%)."
}
},
"required": [
"wallet",
"xntAmount"
]
}