LogoLogo
  • 📖What is Spire?
  • 🌊DA Builder
    • Blob Aggregation Conceptually
  • 📡Preconf Router
    • Developer API
    • Tutorial
  • 🧱Based Stack
    • Spire's flavor of L2 based sequencing
    • Customizable composability
    • Preconfirmations in the Based Stack
    • Execution environment / virtual machine
    • Sequencing revenue (MEV) retention
    • Traditional shared sequencing
    • Open source and credibly neutral
    • Future upgrades
    • What's holding L2 based rollups back today?
    • GitHub [spire-labs/based-stack]
  • 🏫Education Hub
    • Ethereum L2 Based Rollups
    • Based resources
    • Sequencing on Ethereum L1
    • Preconfirmations on Ethereum L1
    • Synchronous Composability
Powered by GitBook
LogoLogo

About Spire

  • Website
  • Writings
  • Career
  • Media Kit

Follow Us

  • X
  • Farcaster
On this page
  • Send a request to the router
  • Preconf Request
  • Standard Request
  • Query preconf request status
  • Query preconf commitment
Edit on GitHub
  1. Preconf Router

Developer API

To interact with the router use the RPC in the table and the routes below.

Network
RPC

Holesky


Send a request to the router

Description: Send a standard ETH JSON-RPC request or a preconf request. Route: RPC/v0 Method: POST

Preconf Request

Only eth_sendRawTransaction requests can become preconf requests. All eth_sendRawTransaction requests are assumed to be preconf requests unless preconf=false.

Parameter
Type
Description

chain_id

uint64

Chain ID of destination tx (currently unused)

deadline

uint64

Number of seconds to attempt to gain a preconf commitment

fallback

boolean

Upon failure to gain a commitment, or any other failure, should the preconf request be forwarded as a standard/non-preconf request

preconf

boolean

Whether the request is a standard request or a preconf request

priority

string

Setting used to determine preconf pricing: High, Medium, Low (currently unused)

Standard Request

All non eth_sendRawTransaction requests are treated as standard requests that are automatically forwarded to a provider.

Query preconf request status

Description: After submitting a preconf request retrieve the current state of the request. Route: RPC/v0/data/transaction/<tx hash> Method: GET

Parameter
Type
Description

hash

string

Transaction hash returned by the router after submitting a request

Query preconf commitment

Description: After submitting a preconf request retrieve the current state of the request. Route: RPC/v0/data/preconfirmation?tx_hash=<tx hash> Method: GET

Parameter
Type
Description

tx_hash

string

Transaction hash returned by the router after submitting a request

PreviousPreconf RouterNextTutorial

Last updated 28 days ago

📡
https://rpc-holesky.spire.dev