Quote a direct payment
preview_paymentLow-level alternative to invoices: quotes a payment of an exact amount in one coin and how much USDT you will be credited. Returns credit_lock_id for create_payment (valid until expires_at). Most agents should use create_invoice instead.
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": {
"asset_id": "<asset_id>"
},
"name": "preview_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Amount the payer sends, in coin units. | |
| asset_id | Yes | Coin the payer sends. Public asset code from list_assets (its asset_id field), e.g. "usdt" (USDT TRC20), "btc", "eth", "xmr", "usdc_eth". | |
| amount_atomic | No | Amount in the smallest units of the asset (alternative to amount). Give exactly one of amount and amount_atomic. | |
| idempotency_key | No | Optional. The same key returns the same result instead of a duplicate (safe retries); generated when omitted. |