Skip to main content

Get Network native token to USD price on a specified network

GET 

/:network/pricing/native-usd-price

Get Network native token to USD price on a specified network

Request

Path Parameters

    network stringrequired

    Blockchain network name or chain id

Query Parameters

    block_height number

    Optional block number for which the balance is requested. Provide only block height or timestamp you want to check for.

    date string

    Optional Date timestamp for which the balance is requested (ISO 8601 format). Provide only block height or timestamp you want to check for.

    projectId stringrequired

    The id of your project. Can be found in your Histori dashboard.

Responses

The ETH/USDT price.

Schema

    network_name stringrequired

    The blockchain network name (e.g., eth-mainnet).

    chain_id numberrequired

    The ID of the blockchain network (e.g., Ethereum mainnet is 1).

    block_height numberrequired

    Block number at the time of the snapshot

    price stringrequired

    The current price of ETH in USD.

Loading...