# Data Sequencer Modules

A DePIN Sequencer can function either as a centralized service or as a decentralized network. Its primary role is to **sort data packets from smart devices** and pack them in a Data Availability Network in a format that can be processed by the off-chain computing layer (W3bstream).&#x20;

<figure><img src="https://content.gitbook.com/content/ZuVxK3TulcVIDbzRzV16/blobs/9TUOiYkzQSVk5fH3JIUA/image.png" alt=""><figcaption></figcaption></figure>

A DePIN sequencer is usually responsible for device authentication, data message validation, sorting, filtering, and other tasks depending on project requirements.

While researchers have not yet reached a consensus on the architecture and functions of a DePIN Sequencer, the need for high customizability and programmability is evident. Many emerging decentralized Sequencer networks focus on Ethereum scalability but lack the programmability required by DePIN projects.&#x20;

## Supported Sequencers

While IoTeX does not provide any Data Sequencer DIM, W3bstream will support popular Data Availability (DA) infrastructures. We anticipate that third-party projects will develop DIMs to serve as DePIN Sequencers, integrating seamlessly with W3bstream.

{% hint style="info" %}
**Reference Implementation**

A W3bstream-compatible DA Layer should aggregate one ore multiple device messages into a [W3bstream Task](https://docs.iotex.io/depin/iotex-depin-modules/w3bstream/build-with-w3bstream/get-started/w3bstream-tasks) and store these tasks on a supported DA infra.

W3bstream provides a [reference implementation](https://github.com/machinefi/sprout/tree/develop/cmd/sequencer) for a DePIN Sequencer for W3bstream that features:

* message aggregation
* ioID authentication
* DID-based secure device communication
* Postgres as the destination DA infra.
  {% endhint %}


---

# 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.iotex.io/depin/integrate-your-module/data-sequencer-infras.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.
