मुख्य सामग्री पर जाएं

Get gas-token prices – Earn API

को अपडेट
Jul 31, 2026

अवलोकन

Latest USD price for each supported native gas token (ETH, POL, MON), updated hourly. चेन maps each supported chain id to the USD price of that chain's native gas token.

Endpoint

GET https://earn-api.quicknode.dev/functions/v1/api/v1/prices

Authorization

Include the published apikey header. This read request is public and does not require a SIWE signature.

पैरामीटर

This endpoint does not accept path or query parameters.

Example request

curl --request GET \
--url 'https://earn-api.quicknode.dev/functions/v1/api/v1/prices' \
--header 'Accept: application/json' \
--header 'apikey: <EARN_PUBLIC_API_KEY>'

प्रतिक्रिया

FieldTypeRequiredविवरण
ईटीएचसंख्याहाँUSD price of ETH (used on Ethereum, Optimism, Unichain, Base, Arbitrum).
POLसंख्याहाँUSD price of POL (used on Polygon).
MONसंख्याहाँUSD price of MON (used on Monad).
अपडेट किया गया_परstring (date-time)हाँISO 8601 timestamp of the most recent price update.
चेनवस्तुहाँUSD price of each supported chain's native gas token, keyed by chain id as a string (e.g. `"8453": 3421.07`).
chains.{chainId}संख्यानहींUSD price of the native gas token for the chain identified by the object key.

Example response

{
"ETH": 1881.7170476996387,
"POL": 0.07191073798628443,
"MON": 0.020897912933245617,
"updated_at": "2026-07-31T12:00:26.503Z",
"chains": {
"1": 1881.7170476996387,
"10": 1881.7170476996387,
"130": 1881.7170476996387,
"137": 0.07191073798628443,
"143": 0.020897912933245617,
"8453": 1881.7170476996387,
"42161": 1881.7170476996387
}
}

HTTP responses

स्थितिविवरण
200Latest native gas-token prices.
429Rate limit exceeded. `Retry-After` (seconds) tells you when to retry. Reads, feedback, and push writes are keyed per IP; create/update/delete are keyed per wallet+IP; deposit/withdraw/claim calldata is keyed per strategy+IP.
503Price data temporarily unavailable.
OpenAPI source

This page is based on operation getNativeGasPrices in the Earn OpenAPI 3.1 specification.