Buy credits with a coin
get_creditsStarts a ChangeNOW swap for a get_credits_quote and returns order_id, pay_in_address (+ extra_id), the exact amount and expires_at. Credits are added automatically once the TFUEL arrives; poll get_credits_status. Needs sign-in (auth_challenge then auth_verify). At most 3 open orders and 10 a day.
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": {
"quote_id": "<quote_id>",
"refund_address": "<refund_address>"
},
"name": "get_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quote_id | Yes | The quote_id returned by get_credits_quote | |
| accept_terms | No | true on your first order to accept the terms (v2) | |
| refund_address | Yes | Your own address on the pay-in coin's chain; ChangeNOW refunds go only there |