- Organized 252 files across project - Root directory: 187 → 2 files (98.9% reduction) - Moved configuration guides to docs/04-configuration/ - Moved troubleshooting guides to docs/09-troubleshooting/ - Moved quick start guides to docs/01-getting-started/ - Moved reports to reports/ directory - Archived temporary files - Generated comprehensive reports and documentation - Created maintenance scripts and guides All files organized according to established standards.
8.4 KiB
Blockscout Parameters - Complete Guide
Date: December 23, 2025
Domain: https://explorer.d-bis.org
Status: ✅ API Working | ⚠️ Web Interface Initializing
✅ Current Status
What's Working
- ✅ API Endpoints: Fully functional with proper parameters
- ✅ Network Stats: Available at
/api/v2/stats - ✅ Block Data: Accessible via API
- ✅ Indexing: 115,998+ blocks indexed and growing
What's Not Working
- ⚠️ Web Interface Routes: Return 404 (root path,
/blocks,/transactions) - Reason: Web interface may need more initialization time or specific data
📋 Required Parameters for Blockscout API
API Endpoint Structure
All Blockscout API calls require at minimum:
?module=<MODULE>&action=<ACTION>
1. Block Module Parameters
Get Latest Block Number
GET /api?module=block&action=eth_block_number
Required Parameters:
module=blockaction=eth_block_number
Example:
curl "https://explorer.d-bis.org/api?module=block&action=eth_block_number"
Response:
{"jsonrpc":"2.0","result":"0x1c520","id":1}
Get Block by Number
GET /api?module=block&action=eth_get_block_by_number&tag=<BLOCK_NUMBER>&boolean=true
Required Parameters:
module=blockaction=eth_get_block_by_numbertag=<BLOCK_NUMBER>- Block number in hex (e.g.,0x1for block 1,0x64for block 100)
Optional Parameters:
boolean=true- Include full transaction objects (default: false)
Example:
# Get block 1
curl "https://explorer.d-bis.org/api?module=block&action=eth_get_block_by_number&tag=0x1&boolean=true"
# Get latest block (current: 115,984 = 0x1c520 in hex)
curl "https://explorer.d-bis.org/api?module=block&action=eth_get_block_by_number&tag=latest&boolean=true"
2. Transaction Module Parameters
Get Transaction by Hash
GET /api?module=transaction&action=eth_getTransactionByHash&txhash=<TRANSACTION_HASH>
Required Parameters:
module=transactionaction=eth_getTransactionByHashtxhash=<HASH>- Transaction hash (0x-prefixed, 66 characters)
Example:
curl "https://explorer.d-bis.org/api?module=transaction&action=eth_getTransactionByHash&txhash=0x..."
3. Account Module Parameters
Get Address Balance
GET /api?module=account&action=eth_get_balance&address=<ADDRESS>&tag=latest
Required Parameters:
module=accountaction=eth_get_balanceaddress=<ADDRESS>- Ethereum address (0x-prefixed, 42 characters)tag=latest- Block tag (latest,earliest,pending, or hex block number)
Example:
curl "https://explorer.d-bis.org/api?module=account&action=eth_get_balance&address=0x0000000000000000000000000000000000000000&tag=latest"
Get Address Transactions
GET /api?module=account&action=txlist&address=<ADDRESS>&startblock=0&endblock=99999999&page=1&offset=10
Required Parameters:
module=accountaction=txlistaddress=<ADDRESS>- Ethereum address
Optional Parameters:
startblock=0- Start block number (default: 0)endblock=99999999- End block number (default: 99999999)page=1- Page number (default: 1)offset=10- Results per page (default: 10)
Example:
curl "https://explorer.d-bis.org/api?module=account&action=txlist&address=0x...&startblock=0&endblock=99999999&page=1&offset=10"
4. Stats Endpoint (v2 API)
Get Network Statistics
GET /api/v2/stats
Parameters: None required
Example:
curl "https://explorer.d-bis.org/api/v2/stats"
Response:
{
"total_blocks": "115998",
"total_transactions": "46",
"total_addresses": "32",
"average_block_time": 2000.0,
"coin_price": "2920.55",
"gas_prices": {
"slow": 0.01,
"average": 0.01,
"fast": 0.01
},
...
}
🌐 Why "Page Not Found" on Root Path?
Issue Analysis
Current Behavior:
- ✅ API endpoints work perfectly with parameters
- ✅ Blockscout is indexing (115,998+ blocks)
- ❌ Web interface routes return 404
Possible Causes
-
Static Assets Not Generated
- Static files directory exists but is empty
- Blockscout Docker image may serve assets differently
- Modern Blockscout may serve assets dynamically
-
Web Interface Route Configuration
- Blockscout may not have a root route handler
- Web interface may require specific initialization
- May need minimum data requirements
-
Initialization Status
- Web interface may still be initializing
- Phoenix endpoint may need more time
- Routes may activate after specific conditions
✅ Solution: Use Working API Endpoints
Immediate Access - Use These NOW
All of these work right now:
-
Network Statistics:
https://explorer.d-bis.org/api/v2/stats -
Latest Block:
https://explorer.d-bis.org/api?module=block&action=eth_block_number -
Block Details:
https://explorer.d-bis.org/api?module=block&action=eth_get_block_by_number&tag=0x1c520&boolean=true -
Transaction:
https://explorer.d-bis.org/api?module=transaction&action=eth_getTransactionByHash&txhash=<HASH> -
Address Balance:
https://explorer.d-bis.org/api?module=account&action=eth_get_balance&address=<ADDRESS>&tag=latest
🔧 Fixing Web Interface 404
Option 1: Wait for Full Initialization
The web interface may become available after:
- More blocks are indexed
- More transactions are indexed
- Web interface fully initializes
Action: Wait 1-2 hours and check again.
Option 2: Check Blockscout Version
Some Blockscout versions may require:
- Specific initialization sequence
- Additional environment variables
- Static asset compilation
Check:
docker exec blockscout /app/bin/blockscout version
Option 3: Access via Direct Block/Address URLs
Once you have specific block numbers or addresses, try:
https://explorer.d-bis.org/block/<BLOCK_NUMBER>
https://explorer.d-bis.org/address/<ADDRESS>
These routes may work even if root path doesn't.
📊 Current Indexing Status
From API Stats:
- Total Blocks: 115,998
- Total Transactions: 46
- Total Addresses: 32
- Latest Block: 115,984 (0x1c520)
Status: ✅ Indexing is active and progressing
🎯 Recommended Actions
For Immediate Use
Use the API endpoints - they're fully functional:
# Get network stats
curl "https://explorer.d-bis.org/api/v2/stats"
# Get latest block
curl "https://explorer.d-bis.org/api?module=block&action=eth_block_number"
# Get specific block
curl "https://explorer.d-bis.org/api?module=block&action=eth_get_block_by_number&tag=0x1c520&boolean=true"
For Web Interface
- Wait: Give Blockscout more time to fully initialize
- Monitor: Check logs for web interface messages
- Test: Try accessing specific routes (e.g.,
/block/1)
📝 Complete Parameter Reference
All Required Parameters
| Module | Action | Required Parameters | Optional Parameters |
|---|---|---|---|
block |
eth_block_number |
None | None |
block |
eth_get_block_by_number |
tag |
boolean |
transaction |
eth_getTransactionByHash |
txhash |
None |
account |
eth_get_balance |
address, tag |
None |
account |
txlist |
address |
startblock, endblock, page, offset |
token |
tokeninfo |
contractaddress |
None |
token |
tokenbalance |
contractaddress, address |
None |
stats |
N/A | None (v2 API) | None |
✅ Summary
What You Need to Know:
-
API Endpoints Work ✅
- Use
/api?module=<MODULE>&action=<ACTION>&<PARAMS> - Use
/api/v2/statsfor statistics - All require proper parameters
- Use
-
Web Interface Status ⚠️
- Returns 404 currently
- May need more initialization time
- Use API endpoints for now
-
Parameters Required:
- All API calls:
moduleandaction(minimum) - Block queries:
tag(block number in hex) - Transaction queries:
txhash - Account queries:
addressandtag
- All API calls:
Bottom Line: The API works perfectly - use it with proper parameters. The web interface may become available later, but the API provides all functionality you need right now!
Last Updated: December 23, 2025