|
| 1 | +openapi: 3.0.3 |
| 2 | +info: |
| 3 | + title: Signet Sequencer API |
| 4 | + version: 1.0.0 |
| 5 | + description: API to obtain a signature for a new Signet block. |
| 6 | +servers: |
| 7 | +- url: https://sequencer.api.init4.network |
| 8 | +paths: |
| 9 | + /signBlock: |
| 10 | + post: |
| 11 | + summary: Obtain a signature for a new Signet block |
| 12 | + description: Obtain a signature for a new Signet block. |
| 13 | + requestBody: |
| 14 | + required: true |
| 15 | + content: |
| 16 | + application/json: |
| 17 | + schema: |
| 18 | + type: object |
| 19 | + properties: |
| 20 | + host_block_number: |
| 21 | + type: string |
| 22 | + description: The block number of the host formatted as a 0x-prefixed minimal hex string. |
| 23 | + host_chain_id: |
| 24 | + type: string |
| 25 | + description: The chain ID of the host formatted as a 0x-prefixed minimal hex string. |
| 26 | + ru_chain_id: |
| 27 | + type: string |
| 28 | + description: The chain ID of the rollup formatted as a 0x-prefixed minimal hex string. |
| 29 | + gas_limit: |
| 30 | + type: string |
| 31 | + description: The gas limit of the rollup block formatted as a 0x-prefixed minimal hex string. |
| 32 | + ru_reward_address: |
| 33 | + type: string |
| 34 | + description: The reward address on the rollup for the builder formatted as a 0x-prefixed minimal hex string. |
| 35 | + contents: |
| 36 | + type: string |
| 37 | + description: keccak256 hash of rlp-encoded transactions in the block formatted as a 0x-prefixed minimal hex string. |
| 38 | + required: |
| 39 | + - host_block_number |
| 40 | + - host_chain_id |
| 41 | + - ru_chain_id |
| 42 | + - gas_limit |
| 43 | + - ru_reward_address |
| 44 | + - contents |
| 45 | + responses: |
| 46 | + '200': |
| 47 | + description: A JSON SignResponse |
| 48 | + content: |
| 49 | + application/json: |
| 50 | + schema: |
| 51 | + type: object |
| 52 | + properties: |
| 53 | + req: |
| 54 | + type: object |
| 55 | + description: The inputted SignRequest. |
| 56 | + properties: |
| 57 | + host_block_number: |
| 58 | + type: string |
| 59 | + description: The block number of the host formatted as a 0x-prefixed minimal hex string. |
| 60 | + host_chain_id: |
| 61 | + type: string |
| 62 | + description: The chain ID of the host formatted as a 0x-prefixed minimal hex string. |
| 63 | + ru_chain_id: |
| 64 | + type: string |
| 65 | + description: The chain ID of the rollup formatted as a 0x-prefixed minimal hex string. |
| 66 | + gas_limit: |
| 67 | + type: string |
| 68 | + description: The gas limit of the rollup block formatted as a 0x-prefixed minimal hex string. |
| 69 | + ru_reward_address: |
| 70 | + type: string |
| 71 | + description: The reward address on the rollup for the builder formatted as a 0x-prefixed minimal hex string. |
| 72 | + contents: |
| 73 | + type: string |
| 74 | + description: keccak256 hash of rlp-encoded transactions in the block formatted as a 0x-prefixed minimal hex string. |
| 75 | + sig: |
| 76 | + type: object |
| 77 | + description: The signature over the SignRequest. |
| 78 | + properties: |
| 79 | + yParity: |
| 80 | + type: boolean |
| 81 | + description: The parity of the y value of the signature. |
| 82 | + r: |
| 83 | + type: string |
| 84 | + description: Signature R field. |
| 85 | + s: |
| 86 | + type: string |
| 87 | + description: Signature S field. |
| 88 | +components: |
| 89 | + schemas: |
| 90 | + SignRequest: |
| 91 | + type: object |
| 92 | + properties: |
| 93 | + host_block_number: |
| 94 | + type: string |
| 95 | + description: The block number of the host. |
| 96 | + host_chain_id: |
| 97 | + type: string |
| 98 | + description: The chain ID of the host. |
| 99 | + ru_chain_id: |
| 100 | + type: string |
| 101 | + description: The chain ID of the rollup. |
| 102 | + gas_limit: |
| 103 | + type: string |
| 104 | + description: The gas limit of the rollup block. |
| 105 | + ru_reward_address: |
| 106 | + type: string |
| 107 | + description: The reward address on the rollup for the builder. |
| 108 | + contents: |
| 109 | + type: string |
| 110 | + description: keccak256 hash of rlp-encoded transactions in the block. |
| 111 | + required: |
| 112 | + - host_block_number |
| 113 | + - host_chain_id |
| 114 | + - ru_chain_id |
| 115 | + - gas_limit |
| 116 | + - ru_reward_address |
| 117 | + - contents |
| 118 | + Signature: |
| 119 | + type: object |
| 120 | + properties: |
| 121 | + yParity: |
| 122 | + type: boolean |
| 123 | + description: The parity of the y value of the signature. |
| 124 | + r: |
| 125 | + type: string |
| 126 | + description: Signature R field. |
| 127 | + s: |
| 128 | + type: string |
| 129 | + description: Signature S field. |
| 130 | + required: |
| 131 | + - yParity |
| 132 | + - r |
| 133 | + - s |
| 134 | + SignResponse: |
| 135 | + type: object |
| 136 | + properties: |
| 137 | + req: |
| 138 | + $ref: '#/components/schemas/SignRequest' |
| 139 | + sig: |
| 140 | + $ref: '#/components/schemas/Signature' |
| 141 | + required: |
| 142 | + - req |
| 143 | + - sig |
0 commit comments