Skip to content
Fourohtwo

Base wallet balances

nightshift-x402.nightshift-labs.workers.dev/v1/base/balance

Base wallet balances: native ETH and USDC for any address, with the block number they were read at.

BaseAnswering
GEThttps://nightshift-x402.nightshift-labs.workers.dev/v1/base/balance

Uptime100% of 5 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://nightshift-x402.nightshift-labs.workers.dev/v1/base/balance?address=0x4200000000000000000000000000000000000006");
console.log(await res.json());

Example input

{
  "address": "0x4200000000000000000000000000000000000006"
}