Buy credits with USDC
billing_topupBuild an unsigned transaction that pays USDC on Sui to tide's treasury for credits ($3 per million credits; 1 USDC buys 333,333). Returns base64 tx_bytes that need no SUI for gas (unless gas: true). Sign them with the paying address and send them, or POST them with the signature to https://api.tide.ad/v1/billing/topup/submit. Credits land on the paying address's account about a second after the transaction is final. With an API key the key's account pays; without one pass address. Free. Example: { usd: "10" }.
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": {
"usd": "<usd>"
},
"name": "billing_topup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gas | No | true to pay gas in SUI instead of building a gasless transaction. | |
| usd | Yes | USD of USDC to pay, at least 1, like "10" or "25.50". | |
| address | No | The paying Sui address, when you have no API key. |