Skip to main content

Import

Usage

Return Type: UseQueryResult<ContractInfo[]>

The hook returns all properties from React Query’s UseQueryResult with an array of contract information. Here’s the detailed structure:

Properties

data

ContractInfo[] | undefined Array of objects containing contract information for each requested contract:
  • name: Contract or token name
  • symbol: Token symbol
  • decimals: Number of decimals (for ERC20 tokens)
  • logoURI: URL of the contract/token logo
  • type: Contract type (ERC20, ERC721, ERC1155)
  • verified: Whether the contract is verified
  • description: Optional contract description
  • websiteURL: Optional project website URL
  • imageURL: Optional project image URL
  • bannerURL: Optional banner image URL
  • chainID: Chain ID where the contract exists

isLoading

boolean Loading state for the data fetch.

isError

boolean Error state indicating if the query failed.

error

Error | null Any error that occurred during data fetching.

Parameters

The hook accepts two parameters:

args: GetContractInfoArgs[]

options: HooksOptions