Skip to content
Fourohtwo

api.duoleads.com/v1/num/radix

Convert an integer between any two numeric bases from 2 to 36, 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.

BaseAnswering
GEThttps://api.duoleads.com/v1/num/radix

Uptime100% of 2 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.duoleads.com/v1/num/radix?to=10&value=0xdeadbeef");
console.log(await res.json());

Example input

{
  "to": "10",
  "value": "0xdeadbeef"
}

More from Duo Data UtilitiesProvider status