Skip to content

Repository files navigation

Function FBTC Agent SDK

TypeScript SDK and examples for integrating Function FBTC with AI agents — including Aave V3 on Ethereum and Mantle.

Packages

Package Description
@functionfbtc/sdk-agent Framework-agnostic agent tools (Vercel AI SDK / LangChain)
@functionfbtc/sdk-agentkit Coinbase AgentKit action provider

Apps

App Description
example-agent-chat Web chat UI with prepared Aave FBTC supply transactions
example-agentkit-cli CLI chatbot / autonomous agent via AgentKit + LangChain

Quick Start

yarn install
yarn build

Agent chat (web)

yarn workspace @functionfbtc/example-agent-chat dev

AgentKit CLI

yarn workspace @functionfbtc/example-agentkit-cli start

Capabilities

  • 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)

Commands

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 all

License

MIT

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages