Sequencer API
The Sequencer API enables developers to interact with RibbleChain's Layer 3 (L3) rollup sequencers, which batch and process transactions before submitting them to the Layer 1 (L1) for settlement. This guide provides detailed instructions for using the Sequencer API to manage rollup transactions, monitor performance, and integrate with dApps.
Overview
RibbleChain's Sequencer-as-a-Service allows L3 rollups to operate custom sequencers tailored to specific use cases (e.g., GameFi, DeFi). The Sequencer API provides endpoints for:
- Submitting transactions to the sequencer.
- Querying rollup state and transaction status.
- Configuring sequencer parameters (e.g., batch size, finality).
Prerequisites
- A deployed L3 rollup (see Getting Started with L3 Rollups).
- RibbleChain CLI:
npm install -g ribblechain-cli
. - Access to the testnet RPC:
https://testnet.ribblechain.com
.
Step 1: Set Up API Access
Authenticate with the Sequencer API using an API key:
ribblechain-cli api init --rollup my-rollup