Complete documentation for the ETHGas platform API and WebSocket interfaces. This documentation is built with Docusaurus and provides comprehensive coverage of all ETHGas platform features.
ETHGas is a platform that provides infrastructure for Ethereum gas trading and MEV (Maximal Extractable Value) opportunities. It offers APIs for:
- Whole Block Markets: Trade entire blocks for MEV opportunities
- Inclusion Preconf Markets: Trade gas price predictions
- Bundle Submission: Submit transaction bundles to builders
- Builder Management: Register and manage block builders
- Validator Operations: Manage validator operations and fees
This documentation is organized into several main sections:
- Welcome: Platform overview and key concepts
- Environments: TestNet and MainNet configuration
- Connecting: Authentication and connection setup
- Overview: API structure and response format
- Authentication: Login, logout, and token management
- User Management: Profile and account operations
- Trading: Order placement and management
- Market Data: Market information and status
- Overview: Real-time data streaming
- Authentication: WebSocket authentication
- Public Channels: Market data and updates
- Private Channels: User-specific data streams
- Queries: Real-time data queries
- Data Types: Complete data structure definitions
- Error Codes: Comprehensive error code reference
- Lookup Tables: Market types, order types, and more
- Response Codes: Standard HTTP response codes
- Node.js version 18.0 or above
- npm or yarn package manager
- Clone this repository:
git clone <repository-url>
cd ETHGas_Docs
- Install dependencies:
npm install
- Start the development server:
npm start
- Open http://localhost:3002 in your browser.
npm run build
This generates static content into the build
directory that can be served using any static contents hosting service.
ETHGas_Docs/
├── docs/ # Documentation files
│ ├── getting-started/ # Getting started guides
│ ├── api/ # REST API documentation
│ ├── websocket/ # WebSocket API documentation
│ ├── reference/ # Reference materials
│ └── changelog/ # Changelog and updates
├── src/ # Source code
├── static/ # Static assets
├── docusaurus.config.ts # Docusaurus configuration
├── sidebars.ts # Sidebar configuration
└── package.json # Project dependencies
- Create new markdown files in the appropriate directory
- Update
sidebars.ts
to include new pages - Follow the existing documentation structure and format
All code examples in the documentation are tested and verified. When adding new examples:
- Use clear, concise code
- Include error handling
- Provide multiple language examples (Python, JavaScript, etc.)
- Test all examples before committing
We welcome contributions to improve this documentation:
- Report Issues: Submit documentation bugs or improvements
- Suggest Enhancements: Propose new documentation sections
- Submit Examples: Share code examples and use cases
- Update Content: Help keep documentation current
For questions about this documentation or the ETHGas platform:
- Original Documentation: developers.ethgas.com
- TestNet App: testnet.ethgas.com
- ETHGas Homepage: ethgas.com
This documentation is licensed under the same terms as the ETHGas platform.
Built with Docusaurus