# Sequencer

Sequencers are nodes operated by RadFi and other stakeholders. They process raw Bitcoin transaction requests from clients, **validating sequence numbers**, **user signatures**, **data formats**, and **OPCODEs**. Once validated, the request is forwarded to other validator nodes.

Validators also **update the** **state** **on the** **EVM chain**, **sign the Bitcoin raw transaction**, and **share the signature with other validators**. When consensus is reached and all signatures are collected, one validator finalizes the BTC transaction and broadcasts it to the Bitcoin network.

<figure><img src="/files/F3yAr0Weyzro0Wgh53Ui" alt=""><figcaption><p>RadFi Validator Interaction</p></figcaption></figure>

### **Key Components**

**Client**

* Initiates the swap request.

**Sequencers**

* Handle request validation and relay information.

**EVM Node**

* Executes the swap and updates the blockchain state.

**Bitcoin Node**

* Signs and broadcasts the transaction to the Bitcoin network.

### **Flow Overview**

**1. Client Request**

* A user initiates a swap by submitting a BTC raw tx to a validator.

**2. Validation Process**

* Step 2: Sequencer 1 verifies the swap request.
* Step 2 (Rejection Case): If invalid, the request is rejected.
* Step 2 (Peer-to-Peer Validation): If necessary, the request is sent to other validators for consensus.

**3. Transaction Processing**

* The validated BTC raw transaction is parsed into an EVM-compatible swap data structure.
* A request is then sent to an EVM node to execute the swap and update the state.

**4. Bitcoin Network Broadcast**

* Once the swap is executed on the EVM node, a Bitcoin signature is collected.
* The signed Bitcoin transaction is broadcasted to the Bitcoin network via a Bitcoin node.


---

# 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.radfi.co/sequencer.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.
