Bankless Onchain

By banklessCreated 16 days ago
starstarstarstarstar

Query on-chain data such as ERC-20 tokens, transaction history, and smart-contract state.

Visit Project
Share this MCP:
X (Formerly Twitter)RedditblueskyThreads by Instagram

Category

Official MCP Server

Tags

BlockchainSmart ContractsMcpEthereumOnchain Data

What is Bankless Onchain?

Bankless Onchain is a server for interacting with on-chain data via the Bankless API using the Model Context Protocol (MCP). It allows AI models to query blockchain data in a structured way, including ERC-20 tokens, transaction history, and smart-contract state.

How to use Bankless Onchain?

To use Bankless Onchain, install the packages and run the server with your Bankless API token.

  1. Install the package: npm install @bankless/onchain-mcp
  2. Set the API token: export BANKLESS_API_TOKEN=your_api_token_here
  3. Run the server: npx @bankless/onchain-mcp
  4. Use the server's tools via MCP-compatible AI models.

Key features of Bankless Onchain?

  • Contract Operations (read_contract, get_proxy, get_abi, get_source)
  • Event Operations (get_events, build_event_topic)
  • Transaction Operations (get_transaction_history, get_transaction_info)
  • MCP Compatibility: Seamless integration with AI models

Use cases of Bankless Onchain?

  1. Fetching real-time smart contract data such as token balances or metadata.
  2. Analyzing historical transaction data for specific addresses.
  3. Decoding and filtering blockchain events by topic.
  4. Debugging smart contract interactions by verifying contract implementations.

FAQ from Bankless Onchain?

  • Is Bankless Onchain free to use?

    Yes, but API usage is subject to Bankless API terms.

  • What blockchains are supported?

    Ethereum, Polygon, Base, and other EVM-compatible chains.

  • How do I handle rate limits?

    The server throws a BanklessRateLimitError if rate limits are exceeded. Adjust query frequency or retry with delays.

  • Can I use this without AI models?

    Yes, the API can be used directly via command line or HTTP requests.