Skip to main content

Parameters

Return Data

The hook returns an object with the base Tanstack Query response. The data property maps to the object returned in the aforementioned prices API. From @relayprotocol/relay-kit-hooks 6.0.0 the hook calls GET /currencies/token/price/v2, so price is a decimal string.

Usage

Query Function