Top up a Treza prepaid credit balance by $5
Top up a Treza prepaid credit balance by $5.00 via x402. Authenticate with a Treza bearer (API key, OAuth token, or session) to choose the account credited.
5000000 (raw units)
price
3
calls / 30d
1
unique payers
2026-08-23
updated
Provider
www.trezalabs.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xe8dC41F9e675Ba8340140c99180CFaEE65D4d160",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000000",
"maxTimeoutSeconds": 120
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "POST",
"pathParams": {},
"queryParams": {},
"type": "http"
},
"output": {
"example": {
"balanceUsd": 17.5,
"duplicate": false,
"grantedUsd": 5,
"network": "eip155:8453",
"transaction": "0x0000000000000000000000000000000000000000000000000000000000000000"
},
"type": "json"
}
},
"routeTemplate": ":var1",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"POST"
],
"type": "string"
},
"pathParams": {
"type": "object"
},
"queryParams": {
"properties": {},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://www.trezalabs.com/api/billing/credits/x402" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://www.trezalabs.com/api/billing/credits/x402");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://www.trezalabs.com/api/billing/credits/x402")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/6956.json, and this resource appears in /discovery/resources and /discovery/search.