tensaikit
Version:
An autonomous DeFi AI Agent Kit on Katana enabling AI agents to plan and execute on-chain financial operations.
10 lines (9 loc) • 484 B
TypeScript
/**
* Fetches the USD price of a specific token on the specified EVM chain using the SushiSwap module.
*
* @param chainId - The chain ID representing the target blockchain network.
* @param tokenAddress - The address of the token to fetch the price for.
* @returns A promise resolving to the token's USD price.
* @throws Throws a formatted error if the price retrieval fails.
*/
export declare const fetchTokenPrice: (chainId: string, tokenAddress: string) => Promise<number>;