TypeScript SDK and examples for integrating Function FBTC with AI agents — including Aave V3 on Ethereum and Mantle.
| Package | Description |
|---|---|
| @functionfbtc/sdk-agent | Framework-agnostic agent tools (Vercel AI SDK / LangChain) |
| @functionfbtc/sdk-agentkit | Coinbase AgentKit action provider |
| App | Description |
|---|---|
| example-agent-chat | Web chat UI with prepared Aave FBTC supply transactions |
| example-agentkit-cli | CLI chatbot / autonomous agent via AgentKit + LangChain |
yarn install
yarn buildyarn workspace @functionfbtc/example-agent-chat devyarn workspace @functionfbtc/example-agentkit-cli start- Look up Function FBTC token metadata and ERC-20 balances
- Inspect Aave V3 FBTC reserves on Ethereum and Mantle
- Read aFBTC balance, health factor, LTV, and liquidation threshold
- Prepare / execute FBTC supply and withdraw
- Borrow and repay USDC / USDT / USDe (variable rate; Mantle USDT = USDT0)
yarn build # Build all packages
yarn lint # Lint all packages
yarn test # Test all packages
yarn test:required # CI gate tests
yarn format # Prettier format allMIT