Files

1 line
3.3 KiB
JSON

{"text":["Available Now","Websockets","Live blockchain data streaming","Real-time bidirectional communication with blockchain networks. Subscribe to blocks, transactions, logs, and pending transactions with persistent WebSocket connections.","Persistent Connections","Long-lived WebSocket connections with automatic reconnection.","Real-time Streaming","Instant delivery of blocks, transactions, and events.","Pending Transactions","Subscribe to mempool for pending transaction visibility.","Low Latency","Sub-100ms latency for time-sensitive applications.","Back to Web3 Overview","Get Your API Key","Start building in under 5 minutes","HA","Failover","<50ms","Latency","100+","Chains","Try Hanzo","View Documentation","No credit card required.","Trusted by developers building:","DeFi","NFTs","Payments","Gaming","AI Agents","Key Capabilities","Everything you need, nothing you don't.","Multi-chain Streams","Stream from multiple chains on a single connection.","Authenticated Sessions","Secure connections with API key authentication.","Auto-reconnect","Automatic reconnection with message replay on disconnect.","Filtered Subscriptions","Subscribe to specific addresses, topics, or event types.","Connection Metrics","Monitor connection health and message throughput.","Simple to Integrate","Get started with just a few lines of code. SDKs for every language.","Solidity","Node","Python","Go","Rust","C++","Ruby","EventEmitter.sol","// SPDX-License-Identifier: MIT","pragma","solidity","^0.8.24","///","@title","EventEmitter - Structured events for WebSocket streaming","@notice","Emit indexed events for efficient WebSocket subscriptions","contract","EventEmitter","// Indexed events for real-time streaming via WebSockets","event","BlockProcessed","uint256","indexed","blockNumber,","bytes32","blockHash,","uint256 timestamp,","uint256 gasUsed",");","TransactionDetected","txHash,","address","from,","to,","uint256 value,","uint256 gasPrice","ContractEvent","contractAddress,","eventSignature,","bytes data,","logIndex","// Emit block processing event for indexers","function","emitBlockProcessed","uint256 _blockNumber","bytes32 _blockHash","uint256 _gasUsed","external","emit","_blockNumber","_blockHash","block.timestamp","_gasUsed","// Emit transaction event for mempool tracking","emitTransaction","bytes32 _txHash","address _from","address _to","uint256 _value","uint256 _gasPrice","_txHash","_from","_to","_value","_gasPrice","// Emit contract event for log subscriptions","emitContractEvent","address _contract","bytes32 _eventSig","bytes","calldata","_data","uint256 _logIndex","_contract","_eventSig","_logIndex","Built For","Trading Applications","Real-time price feeds and order book updates for DEXs.","Mempool Monitoring","Track pending transactions for MEV and arbitrage.","Live Dashboards","Real-time blockchain activity and network stats.","Bot Infrastructure","High-frequency trading and automated strategies.","Supported Chains","Ethereum","Polygon","Arbitrum","Optimism","Base","BNB Chain","Avalanche","zkSync","Scroll","Linea","Start Building with Websockets","Get your free API key and ship your first request in under 5 minutes. No credit card required.","Explore All Web3 Products","Get Websockets","Deploy to Cloud"],"links":["/blockchain","https://platform.hanzo.ai/api-keys","https://platform.hanzo.ai/deploy"]}