The AI Agent SDK provides powerful DeFi-related features, enabling seamless access to essential data from the Crypto.com ecosystem. It allows developers to retrieve a list of whitelisted tokens for a specified DeFi protocol, fetch information about all available farms, and obtain detailed information about a specific farm identified by its symbol.
7.1 Get whitelisted tokens
Retrieve a list of whitelisted tokens for the specified DeFi protocol from the Crypto.com developer platform.
Example Query
Query: "Get whitelisted tokens of protocol <example-protocol>"
Example Response
Here are the whitelisted tokens for the <example-protocol> protocol:
<example-token-name>
- Address: [<example-address>](<example-explore-link>)
- Decimal: <example-decimal>
- Swappable: <example-boolean>
- 
...
Feel free to ask if you need more information about any specific token!
Query Arguments
protocol (str): The DeFi protocol name (e.g., "H2", "VVS").
Query Returns
str: A formatted string containing the list of whitelisted tokens.
Retrieve information about all available farms for the specified DeFi protocol from the Crypto.com developer platform.
Example Query
Query: "Get all farms of protocol <example-protocol>"
Example Response
Here are the farms available for the H2 protocol:
<example-farm-symbol>
- LP Address: <example-lp-address>
- Base APR: <example-percentage>
- Base APY: <example-percentage>
- Reward Start Date: <example-date>
- Chain: <example-chain-name>
...
Query Arguments
protocol (str): The DeFi protocol name (e.g., "H2", "VVS").
Query Returns
str: A formatted string containing information about all farms.