Skip to main content

Import

Usage

Parameters

tokens

Token[]: Array of objects with chainId and contractAddress representing the tokens you’d like prices for.
  • For native tokens (e.g., ETH on Ethereum, MATIC on Polygon), set contractAddress to ZERO_ADDRESS.
  • For ERC-20 tokens, provide the token’s actual contract address on the specified chainId.
Examples

options

HooksOptions (optional)

Return Type

The hook returns a React Query result object: