Royco SDK

getBaseActions

Query for fetching list of all the supported actions that can be performed on royco pools

Declaration

get-base-actions

Import

import { getBaseActionsQueryOptions } from "royco/queries";

Usage

Component.tsx
import { useRoycoClient } from "royco/client";
import { getBaseActionsQueryOptions } from "royco/queries";
import { useQuery } from "@tanstack/react-query";
 
const Component = () => {
  const client = useRoycoClient();
 
  const {
    data: chains,
    isLoading,
    isError,
    isRefetching,
  } = useQuery(getBaseActionsQueryOptions(client));
};

Return Type

  • queryKey : base_actions
  • queryFn : () => Promise<BaseAction[] | null>

Type Reference

Last updated on

On this page

Edit on Github