Block402 for LangChain
xyz.block402/block402
Bitcoin + Ethereum RPC for AI agents. 44 tools. x402 required; Base Sepolia test USDC.
client:LangChain
transport:streamable-http
tools:44
Install Block402 in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"block402": {
"transport": "streamable_http",
"url": "https://api.block402.xyz/mcp",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs
What LangChain can do once it is connected
- bitcoin_getblockcount
- bitcoin_getbestblockhash
- bitcoin_getblockhash
- bitcoin_getblockheader
- bitcoin_getblock
- bitcoin_getrawtransaction
- bitcoin_gettxout
- ethereum_eth_chainId
- ethereum_eth_blockNumber
- ethereum_eth_syncing
- ethereum_net_version
- ethereum_net_listening
- ethereum_net_peerCount
- ethereum_web3_clientVersion
- ethereum_eth_gasPrice
- ethereum_eth_maxPriorityFeePerGas
- ethereum_eth_blobBaseFee
- ethereum_web3_sha3
- ethereum_eth_getBlockTransactionCountByNumber
- ethereum_eth_getUncleCountByBlockNumber
- ethereum_eth_getBlockByNumber
- ethereum_eth_getTransactionByBlockNumberAndIndex
- ethereum_eth_getUncleByBlockNumberAndIndex
- ethereum_eth_getRawTransactionByBlockNumberAndIndex