Skip to main content
GET
/
v1
/
tokens
/
prices
/
{chainId}
/
{tokenAddress}
/
usd
Get token USD price
curl --request GET \
  --url https://api.hydric.org/v1/tokens/prices/{chainId}/{tokenAddress}/usd \
  --header 'Authorization: Bearer <token>'
{
  "price": 2543.21
}

Authorizations

Authorization
string
header
required

Use the docs sandbox API key for authentication: hydric_docs_4N4ocuirsN8Sh

Path Parameters

chainId
enum<number>
required

The numeric ID of the blockchain where the token resides.

Available options:
1,
143,
130,
999,
8453,
9745,
534352
Example:

1

tokenAddress
string
required

The Token contract address.

Example:

"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599"

Response

The requested token USD price.

Response object containing the current price of the requested token.

price
number
required

The current price of the token.

Example:

2543.21