GET Price Endpoint

Retrieve current pricing data for a specified chain.

The GET Price endpoint retrieves the current/latest price of the given chain.

Endpoint URL

https://svc.blockdaemon.com/pricing/v1/quotes/{chain_id}

Request Payload

Replace the YOUR_API_KEY with your actual API Key.

curl --location 'https://svc.blockdaemon.com/pricing/v1/quotes/{chain_id}' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--data-raw '{
  "addresses": [
    "0x0000000000000000000000000000000000000000"
  ],
  "units": [
    "USD", "EUR"
  ]
}'

The request payload includes the following parameters:

FieldsRequired/OptionalDetails
chain_idRequiredA unique numeric identifier for each network. For example, eip155:1 for Ethereum (ETH) and eip155:137 for Polygon (MATIC).

Refer to ChainList.org for a list of EVM networks.
addressesRequiredAn array of token addresses you want pricing data for. You can use the address from the GET Token endpoint to get the price for a particular token.

The 0x0000000000000000000000000000000000000000 address represents the native coin on the given chain, ETH on Ethereum Mainnet or MATIC on Polygon Mainnet.
unitsRequiredAn array of quotes for the currency. For example, USD or EUR.

Response Payload

Below is the successful response format:

{
    "quotes": [
        {
            "symbol": "ETH",
            "address": "0x0000000000000000000000000000000000000000",
            "chainId": "eip155:1",
            "timestamp": "2024-04-18T15:58:00Z",
            "units": "EUR",
            "price": "2883.2051154854958"
        },
        {
            "symbol": "ETH",
            "address": "0x0000000000000000000000000000000000000000",
            "chainId": "eip155:1",
            "timestamp": "2024-04-18T15:58:00Z",
            "units": "USD",
            "price": "3073.576283321876"
        }
    ]
}

👋 Need Help?

Contact us through email or our support page for any issues, bugs, or assistance you may need.