Fetch the USD price for a token on a specific chain.
Parameter | Description | Required |
---|---|---|
baseApiUrl | Base api url for the relay api, defaults to https://api.relay.link but can also be configured to https://api.testnets.relay.link | ❌ |
options | Query parameters that map directly to the prices API. | ✅ |
queryOptions | Tanstack query options. Refer to the Tanstack docs. | ❌ |