sei-agent-kit
Version:
A package for building AI agents on the SEI blockchain
30 lines • 1.23 kB
TypeScript
import { type Address } from 'viem';
import { SeiAgentKit } from '../../agent';
/**
* Calculates the amount of underlying tokens that can be redeemed by a user
* @param agent SeiAgentKit instance
* @param ticker The token ticker (e.g., "USDC", "SEI")
* @param userAddress The address of the user (defaults to agent's wallet address)
* @returns Information about redeemable amounts
*/
export declare function getRedeemableAmount(agent: SeiAgentKit, ticker: string, userAddress?: Address): Promise<{
tTokenBalance: string;
exchangeRate: string;
redeemableUnderlying: string;
safeMaxRedeemable: string;
underlyingDecimals: number;
underlyingTokenAddress: Address;
}>;
/**
* Retrieves the current borrow balance for a user
* @param agent SeiAgentKit instance
* @param ticker The token ticker (e.g., "USDC", "SEI")
* @param userAddress The address of the user (defaults to agent's wallet address)
* @returns Information about the borrow balance
*/
export declare function getBorrowBalance(agent: SeiAgentKit, ticker: string, userAddress?: Address): Promise<{
borrowBalance: string;
underlyingDecimals: number;
underlyingTokenAddress: Address;
}>;
//# sourceMappingURL=query.d.ts.map