Getting a Sequencer Signature

Blocks must be cosigned by the Sequencer. The Sequencer blindly signs any number of candidate blocks for the current Builder via a simple API.

The Sequencer API acceps a SignRequest via a POST call to the /signBlock endpoint, and returns a SignResponse. For details on calculating the contents hash, see the rust builder example.

Obtain a signature for a new Signet block

post

Obtain a signature for a new Signet block.

Body
host_block_numberstringRequired

The block number of the host formatted as a 0x-prefixed minimal hex string.

host_chain_idstringRequired

The chain ID of the host formatted as a 0x-prefixed minimal hex string.

ru_chain_idstringRequired

The chain ID of the rollup formatted as a 0x-prefixed minimal hex string.

gas_limitstringRequired

The gas limit of the rollup block formatted as a 0x-prefixed minimal hex string.

ru_reward_addressstringRequired

The reward address on the rollup for the builder formatted as a 0x-prefixed minimal hex string.

contentsstringRequired

keccak256 hash of rlp-encoded transactions in the block formatted as a 0x-prefixed minimal hex string.

Responses
200

A JSON SignResponse

application/json
post
/signBlock
POST /signBlock HTTP/1.1
Host: sequencer.api.init4.network
Content-Type: application/json
Accept: */*
Content-Length: 136

{
  "host_block_number": "text",
  "host_chain_id": "text",
  "ru_chain_id": "text",
  "gas_limit": "text",
  "ru_reward_address": "text",
  "contents": "text"
}
200

A JSON SignResponse

{
  "req": {
    "host_block_number": "text",
    "host_chain_id": "text",
    "ru_chain_id": "text",
    "gas_limit": "text",
    "ru_reward_address": "text",
    "contents": "text"
  },
  "sig": {
    "yParity": true,
    "r": "text",
    "s": "text"
  }
}

Last updated