optionalTopics
(array, optional): Optional additional topics (can include null values)
How to use it
optionalTopics is exposed by the Onchain MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the optionalTopics tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Onchain MCP
npx @bankless/onchain-mcpOther tools in Onchain MCP (15)
(array, required): List of contract addresses to filter events
(array, required): Event arguments types, each containing:
(string, required): The contract address
(array, required): Input parameters for the method call, each containing:
(string, required): The contract method to call
(string, required): Event name (e.g., "Transfer(address,address,uint256)")
(string, required): The blockchain network (e.g., "ethereum", "polygon")
(array, required): Expected output types, each containing:
(string, required): Primary topic to filter events
(string): The type of the input parameter (e.g., "address", "uint256")
(any): The value of the input parameter