Skip to content
Fourohtwo

USD price of a chain's native token, no gas data

tools.nythosx.com/v1/price

USD price of a chain's native token, no gas data. Just the native-token USD price (ETH, POL or SOL), sourced from MEXC/Gate.io/Coinbase with the same price feed get_gas_price uses. Use this when you only need the asset price, not fees — get_gas_price and compare_gas_costs already return nativeUsd alongside gas data, so call this instead only to skip the gas lookup (e.g. valuing a wallet balance, n

BaseUnchecked
GEThttps://tools.nythosx.com/v1/price

UptimeNot checked yet

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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://tools.nythosx.com/v1/price?chain=base");
console.log(await res.json());

Example input

{
  "chain": "base"
}

More from NythosX Agent Tools