X

x402 Hosting · Projects Renew

by x402 Hosting

POSTBase

$0.2

per call · USD Coin on Base

Extend a project's hosting lease, priced per day (1-730 days via the days query parameter). Call this when hosting is nearing expiry or to republish an expired site; only the owner wallet can pay.

Endpoint

POST https://api.x402-hosting.com/v1/projects/:id/renew

1

Calls / 30d

1

Unique payers / 30d

Aug 25

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.x402-hosting.com/v1/projects/:id/renew", {
  method: "POST",
});
const data = await res.json();
cURL
curl -X POST \
  "https://api.x402-hosting.com/v1/projects/:id/renew?days=1" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "operationId": "00000000-0000-4000-8000-000000000001",
  "operationUrl": "/v1/operations/00000000-0000-4000-8000-000000000001",
  "projectId": "00000000-0000-4000-8000-000000000001",
  "state": "CREATED"
}

Payment details

Pay to0xe126b3e5d052f1f575828f61feba4f4f2603652a
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Developer Tools and the homepage with a featured placement.

Get featured →

More from x402 Hosting & similar services