Skip to main content

Method Signature

agent.getProtocols(tokenAddress: Address): Promise<ProtocolsResponse>

Description

Returns the list of available DeFi lending protocols that support the specified token.

Parameters

tokenAddress
Address
required
Token address to check protocol availability for (e.g., USDC address).

Return Value

protocols
string[]
Array of available protocol names.

Example

const USDC_BASE = '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913';

const { protocols } = await giza.agent.getProtocols(USDC_BASE);

console.log('Available protocols:', protocols);
// ['aave', 'compound', 'moonwell', 'seamless']