billing.revoke
Build an unsigned revoke for your auto top-up allowance.
Details
- Endpoint
- POST /v1/billing/allowance/revoke
- Credits
- Free
- Rate class
- Light. Counts against your light requests per second.
Returns transaction bytes that delete the allowance and its cap (sui::allowance::revoke). Sign and send them with the funder's wallet; tide can never draw again and auto top-up turns off. Revoking from any wallet or the CLI works the same.
Parameters
| Name | Type | Description |
|---|---|---|
| address | string | The funder, when you call without a key. |
Request
Send your key in the x-api-key header, or leave it out to use the keyless tier.
curl
curl -X POST "https://api.tide.ad/v1/billing/allowance/revoke" \
-H "x-api-key: YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{}'TypeScript
const res = await fetch("https://api.tide.ad/v1/billing/allowance/revoke", {
method: "POST",
headers: {
"x-api-key": process.env.TIDE_API_KEY!,
"content-type": "application/json",
},
body: JSON.stringify({}),
});
const data = await res.json();Response
JSON
{
"txBytes": "AAAC...",
"gasless": false
}