> For the complete documentation index, see [llms.txt](https://elder-2.gitbook.io/elder-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://elder-2.gitbook.io/elder-docs/integrations/op-stack.md).

# OP-Stack

{% hint style="info" %}
GitHub access for Elder is currently limited to early partner projects and may not be available to everyone.
{% endhint %}

{% hint style="info" %}
The documentation may be outdated due to rapid development. Expect improvements as the code goes public and the project approaches its internal testnet phase.
{% endhint %}

### Steps for running an op-stack rollup with ELDER

* Ensure your op-stack rollup is operational. For thoroughness, verify that both the batcher and proposer have sufficient funding.
* When not utilizing an existing internal devnet, a private Elder Node can be set up by following these steps - [Run an ELDER Node](/elder-docs/architecture/run-an-elder-node.md)

{% hint style="info" %}
Make sure the ports of machines for Elder ( 1317, 26657, 9090 ) and Op-stack (8545, 8546 ) are public.
{% endhint %}

### Register a rollup on Elder Chain

* **Register the rollup on Elder.**

{% code overflow="wrap" %}

```bash
elderd tx registration register [executor] [name] [min-tx-fess] [max-txs] [stack] [data-layer] [stake] [flags]
```

{% endcode %}

* **Pull latest tags/main from 0xElder github and build their binaries.**

{% embed url="<https://github.com/0xElder/optimism.git>" %}
0xelder/optimism
{% endembed %}

{% embed url="<https://github.com/0xElder/op-geth>" %}
0xelder/op-geth
{% endembed %}

* Build their binaries and replace with the original OP binaries.

**Restart op-geth with the following additional command flags :**

{% code overflow="wrap" %}

```bash
--rollup.disabletxpoolgossip=true --elder-seq --elder-seq-url=<Elder MACHINE IP>:9090 --elder-roll-id=<Rollup ID during registration> --elder-executor=<Elder executer private key> --elder-roll-start-block=<rollup geth block when the Elder connection should establish i.e. hardfork >
```

{% endcode %}
