brian-api
Brian API
Brian API converts natural language prompts into executable Web3 transactions. Send a text intent like "swap 10 USDC for ETH on Base" and receive ready-to-sign transaction calldata, complete with approval steps and routing through the best available DEX/bridge solvers. Supports swap, bridge, transfer, deposit, withdraw, borrow, and repay actions across Ethereum, Arbitrum, Base, Optimism, Polygon, and 10+ other EVM chains.
Three core endpoints: /agent/transaction returns executable calldata from a prompt, /agent/knowledge answers DeFi protocol questions with source citations, and /agent/smart-contracts generates Solidity code from descriptions. The TypeScript SDK (@brian-ai/sdk) wraps all endpoints, and the LangChain toolkit (@brian-ai/langchain) lets you plug Brian into autonomous agents.
Official docs: https://docs.brianknows.org/
What You Probably Got Wrong
LLMs have stale training data. These are the most common mistakes.