Base Converter (Hex, Binary)
Base converter: convert an integer between any two numeric bases from 2 to 36 (hex, binary, octal and more), with arbitrary precision so values far beyond 2^53 are exact. Accepts an optional sign and common prefixes (0x, 0b, 0o), validates every digit against the source base, and returns the value in the target base, in decimal, and as its bit length and digit count.
Offering
- Provider
- api.duoleads.com
- Method
- GET
- Offering type
- Api Endpoint
- Transport type
- http
- Category
- General Utilities
- Delivery
- Not provided
- Pricing model
- Not provided
- x402 version
- 2
Endpoint context
- URL
https://api.duoleads.com/v1/num/radix- MIME type
- application/json
- First seen
- 2026-10-16T01:50:38.788Z
- Last seen
- Tags
- base-converter, radix, hex, numbers, conversion
Payment pricing
x402 payment terms are the authoritative price for calling this endpoint.
- Payment option 1
- 0.05 USDC
Atomic price: 50000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
{
"scheme": "exact",
"network": "eip155:8453",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "50000",
"payTo": "0xCD673f7e1daD254347AEab6be0DEFe8b9C6b3A39"
}
]Observed health
- Status
- Healthy
- Latest latency
- 45 ms
- Average latency
- 836 ms
- HTTP status
- 402
- Last checked
- Reachability
- 100% over 13 checks
Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.
Input schema
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "http"
},
"method": {
"type": "string",
"enum": [
"GET"
]
},
"queryParams": {
"type": "object",
"properties": {
"value": {
"type": "string",
"description": "Integer to convert; optional sign and 0x/0b/0o prefix.",
"maxLength": 1024
},
"from": {
"type": "string",
"description": "Source base 2-36, or auto (default) to read a 0x/0b/0o prefix.",
"maxLength": 8,
"default": "auto"
},
"to": {
"type": "string",
"description": "Target base 2-36, default 10.",
"pattern": "^[+-]?\\d+$",
"maxLength": 64,
"default": "10"
},
"case": {
"type": "string",
"description": "Digit case for bases above 10: lower (default) or upper.",
"enum": [
"lower",
"upper"
],
"maxLength": 64,
"default": "lower"
},
"prefix": {
"type": "string",
"description": "Emit 0x/0b/0o where conventional. Default false.",
"enum": [
"true",
"false"
],
"maxLength": 64,
"default": "false"
}
},
"required": [
"value"
]
}
},
"required": [
"type",
"method"
],
"additionalProperties": false
}Output schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"case": {
"default": "lower",
"description": "Digit case for bases above 10: lower (default) or upper.",
"enum": [
"lower",
"upper"
],
"maxLength": 64,
"type": "string"
},
"from": {
"default": "auto",
"description": "Source base 2-36, or auto (default) to read a 0x/0b/0o prefix.",
"maxLength": 8,
"type": "string"
},
"prefix": {
"default": "false",
"description": "Emit 0x/0b/0o where conventional. Default false.",
"enum": [
"true",
"false"
],
"maxLength": 64,
"type": "string"
},
"to": {
"default": "10",
"description": "Target base 2-36, default 10.",
"maxLength": 64,
"pattern": "^[+-]?\\d+$",
"type": "string"
},
"value": {
"description": "Integer to convert; optional sign and 0x/0b/0o prefix.",
"maxLength": 1024,
"type": "string"
}
},
"required": [
"value"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"data": {
"properties": {
"bit_length": {
"type": "integer"
},
"decimal": {
"type": "string"
},
"digits": {
"type": "integer"
},
"exact": {
"type": "boolean"
},
"from": {
"type": "integer"
},
"negative": {
"type": "boolean"
},
"result": {
"type": "string"
},
"to": {
"type": "integer"
}
},
"required": [
"result",
"decimal",
"from",
"to",
"negative",
"digits",
"bit_length",
"exact"
],
"type": "object"
},
"meta": {
"properties": {
"computed_at": {
"description": "RFC 3339 UTC with milliseconds",
"type": "string"
},
"deterministic": {
"type": "boolean"
},
"disclaimer": {
"type": "string"
},
"price_usd": {
"type": "string"
},
"request_id": {
"type": "string"
},
"sources": {
"items": {
"required": [
"id",
"version",
"published"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"request_id",
"computed_at",
"price_usd",
"deterministic",
"disclaimer"
],
"type": "object"
},
"ok": {
"const": true
},
"route": {
"const": "/v1/num/radix"
},
"version": {
"type": "string"
}
},
"required": [
"ok",
"route",
"version",
"data",
"meta"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}