Royco SDK

useBaseActions

Hook for fetching list of pre-determined actions that can be performed on pools

Declaration

use-base-actions

Import

import { useBaseActions } from "royco/hooks";

Usage

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

Return Type

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

Type Reference

Last updated on

On this page

Edit on Github