tensaikit
Version:
An autonomous DeFi AI Agent Kit on Katana enabling AI agents to plan and execute on-chain financial operations.
18 lines (17 loc) • 803 B
TypeScript
import { EvmWalletProvider } from "../../../walletProviders";
/**
* Fetches all whitelisted curators from the Morpho subgraph for the connected network.
*
* This function queries the Morpho subgraph and retrieves metadata for each verified
* or whitelisted curator (such as name, image, state, and verification status).
*
* @param walletProvider - Connected EVM wallet instance.
*
* @returns A Promise resolving to a list of curators with their metadata, or `null` if none found.
*
* @throws Will throw an error if:
* - The connected network or chainId is missing or invalid.
* - The network is not supported by the Morpho subgraph.
* - The subgraph query fails or returns an invalid response.
*/
export declare const fetchCurators: (walletProvider: EvmWalletProvider) => Promise<any>;