Royco SDK

useBaseChains

Hook for fetching list of all the supported chains

Declaration

use-base-chains

Import

import { useBaseChains } from "royco/hooks";

Usage

Component.tsx
import { useBaseChains } from "royco/hooks";
 
const Component = () => {
  const { data: chains, isLoading, isError, isRefetching } = useBaseChains();
};

Return Type

  • data : BaseChain[] | null | undefined
  • isLoading : boolean
  • isError : boolean
  • isRefetching : boolean

Type Reference

Last updated on

On this page

Edit on Github