# æScan

## æScan Technical Documentation

### Explorer Architecture and Integration

æScan is built on æternity's core infrastructure, utilizing both node and middleware services to provide comprehensive blockchain data access. The explorer interfaces with the latest protocol versions:

```plaintext
plaintextCopyNode Version: 7.1.0
Middleware Version: 1.91.1
```

### Access Points

#### Production Environment

```
Copyhttps://aescan.io
```

#### Testing Environment

```
Copyhttps://testnet.aescan.io
```

### API Integration

æScan leverages the æternity middleware API for data retrieval and processing. Key endpoints include:

```javascript
javascriptCopy// Block data retrieval
GET /middleware/blocks/latest
GET /middleware/blocks/hash/{hash}
GET /middleware/blocks/height/{height}

// Transaction queries
GET /middleware/transactions/hash/{hash}
GET /middleware/transactions/account/{address}

// State channel information
GET /middleware/channels/active
GET /middleware/channels/transactions/{channel_id}
```

### Development Resources

#### API Documentation

* Node API: Comprehensive documentation for direct node interaction

  ```
  Copyhttps://docs.aeternity.io/node
  ```
* Middleware API: Extended functionality for building applications

  ```
  Copyhttps://docs.aeternity.io/middleware
  ```

#### WebSocket Support

æScan maintains WebSocket connections for real-time data updates. Example connection:

```javascript
javascriptCopyconst ws = new WebSocket('wss://mainnet.aeternity.io/mdw/websocket');
ws.onmessage = (event) => {
    const data = JSON.parse(event.data);
    // Handle real-time updates
};
```

#### Hyperchain Integration

The explorer is being enhanced to support Hyperchains, æternity's scaling solution. Developers will be able to:

* Track cross-chain transactions
* Monitor Hyperchain validator activity
* Access Hyperchain-specific metrics
* Query state across multiple chains

For developers looking to build applications on æternity, æScan's infrastructure provides a reliable reference implementation for blockchain data access and processing. The codebase demonstrates best practices for handling æternity protocol interactions and real-time blockchain data management.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aeternity.com/aeternity-developer-tools/data-and-analytics/aescan.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
