LangChain Implementation Example
Integration Code Snippets
1. Getting Boson Tools
import { bosonProtocolPlugin } from "@bosonprotocol/agentic-commerce";
import { BOSON_MCP_URL, CHAIN_MAP } from "@common/chains.ts";
import { getOnChainTools } from "@goat-sdk/adapter-langchain";
import { viem } from "@goat-sdk/wallet-viem";
// Get tools with the Boson Protocol plugin
const tools = await getOnChainTools({
wallet: viem(walletClient),
plugins: [bosonProtocolPlugin({ url: bosonMcpUrl })],
});
console.log(
"Available tools:",
tools.map((tool: any) => tool.name),
);2. LangChain Agent Integration
Transaction Signing
Required Environment Variables
Agent Usage Example
Key Dependencies
Additional Examples
Next Steps
Last updated