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.
The sequencer is allowed to modify the returned copy of the SignRequest. This is to allow the sequencer to set a specificgas_limit. It currently does not modify the request before returning it, but may do so in the future.
Obtain a signature for a new Signet block.
The block number of the host formatted as a 0x-prefixed minimal hex string.
The chain ID of the host formatted as a 0x-prefixed minimal hex string.
The chain ID of the rollup formatted as a 0x-prefixed minimal hex string.
The gas limit of the rollup block formatted as a 0x-prefixed minimal hex string.
The reward address on the rollup for the builder formatted as a 0x-prefixed minimal hex string.
keccak256 hash of rlp-encoded transactions in the block formatted as a 0x-prefixed minimal hex string.
A JSON SignResponse
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"
}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