Parameters

NameTypeDescription
argsThe arguments for fetching the balance

Returns

Query result containing the balance data

Example

const { data, isLoading, error } = useBalanceOfCollectible({
  collectionAddress: "0x123...",
  collectableId: "1",
  userAddress: "0x456...",
  chainId: 1,
  query: {
    enabled: true,
    refetchInterval: 10000,
  },
});