forked from flashbots/relay-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelay-oapi.yaml
75 lines (68 loc) · 2.37 KB
/
relay-oapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
openapi: "3.0.3"
info:
title: Relay API
description: |
API specification for MEV-Boost PBS relays.
version: "dev"
contact:
name: GitHub Repository
url: https://github.com/flashbots/relay-specs
license:
name: "CC0-1.0"
url: "https://creativecommons.org/publicdomain/zero/1.0/"
servers:
- url: "{server_url}"
variables:
server_url:
description: "Relay URL"
default: "http://localhost:18550"
tags:
- name: Builder
description: Set of endpoints to interact with an external block builder.
- name: Data
description: Set of endpoints to provide data about the relay.
paths:
/relay/v1/builder/validators:
$ref: "./apis/relay/builder/validators.yaml"
/relay/v1/builder/blocks:
$ref: "./apis/relay/builder/blocks.yaml"
/relay/v1/data/bidtraces/proposer_payload_delivered:
$ref: "./apis/relay/data/proposer_payload_delivered.yaml"
/relay/v1/data/bidtraces/builder_blocks_received:
$ref: "./apis/relay/data/builder_blocks_received.yaml"
/relay/v1/data/validator_registration:
$ref: "./apis/relay/data/validator_registration.yaml"
components:
schemas:
Uint64:
$ref: "./beacon-apis/types/primitive.yaml#/Uint64"
Root:
$ref: "./beacon-apis/types/primitive.yaml#/Root"
Pubkey:
$ref: "./beacon-apis/types/primitive.yaml#/Pubkey"
ErrorMessage:
$ref: "./beacon-apis/types/http.yaml#/ErrorMessage"
OrderBy:
$ref: "./types/misc.yaml#/OrderBy"
Bellatrix.SubmitBlockRequest:
$ref: "./types/bellatrix/requests.yaml#/Bellatrix/SubmitBlockRequest"
Capella.SubmitBlockRequest:
$ref: "./types/capella/requests.yaml#/Capella/SubmitBlockRequest"
Deneb.SubmitBlockRequest:
$ref: "./types/deneb/requests.yaml#/Deneb/SubmitBlockRequest"
ValidatorsResponse:
$ref: "./types/responses.yaml#/ValidatorsResponse"
DeliveredPayloadsResponse:
$ref: "./types/responses.yaml#/DeliveredPayloadsResponse"
ReceivedBlocksResponse:
$ref: "./types/responses.yaml#/ReceivedBlocksResponse"
responses:
InternalError:
$ref: "./types/http.yaml#/InternalError"
examples:
Bellatrix.SubmitBlockRequest:
$ref: "./examples/bellatrix/submit_block_request.json"
Capella.SubmitBlockRequest:
$ref: "./examples/capella/submit_block_request.json"
Deneb.SubmitBlockRequest:
$ref: "./examples/deneb/submit_block_request.json"