Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 98 additions & 0 deletions daemon/algod/api/algod.oas2.json
Original file line number Diff line number Diff line change
Expand Up @@ -3113,6 +3113,89 @@
}
}
}
},
"/v2/devmode/blocks/proposer": {
"get": {
"description": "Gets the current proposer address.",
"tags": [
"public",
"nonparticipating"
],
"produces": [
"application/json"
],
"schemes": [
"http"
],
"summary": "Returns the proposer address. Proposer address can only be set in dev mode.",
"operationId": "GetBlockProposerAddress",
"responses": {
"200": {
"description": "OK",
"$ref": "#/responses/GetBlockProposerAddressResponse"
},
"400": {
"description": "Proposer address not set.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"default": {
"description": "Unknown Error"
}
}
}
},
"/v2/devmode/blocks/proposer/{address}": {
"post": {
"description": "Sets the proposer address for blocks in dev mode. Providing the global zero address will unset this value.",
"tags": [
"public",
"nonparticipating"
],
"schemes": [
"http"
],
"summary": "Given a proposer address, adds the proposer to every subsequent block header's prp field.",
"operationId": "SetBlockProposerAddress",
"parameters": [
{
"pattern": "[A-Z0-9]{58}",
"type": "string",
"description": "The proposer address for blocks in dev mode.",
"name": "address",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"type": "object"
},
"400": {
"description": "Cannot set proposer address.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"401": {
"description": "Invalid API Token",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"500": {
"description": "Internal Error",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"default": {
"description": "Unknown Error"
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -4981,6 +5064,21 @@
}
}
},
"GetBlockProposerAddressResponse": {
"description": "Response containing the proposer address",
"schema": {
"type": "object",
"required": [
"address"
],
"properties": {
"address": {
"description": "Proposer address.",
"type": "string"
}
}
}
},
"GetSyncRoundResponse": {
"description": "Response containing the ledger's minimum sync round",
"schema": {
Expand Down
128 changes: 128 additions & 0 deletions daemon/algod/api/algod.oas3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,25 @@
},
"description": "DryrunResponse contains per-txn debug information from a dryrun."
},
"GetBlockProposerAddressResponse": {
"content": {
"application/json": {
"schema": {
"properties": {
"address": {
"description": "Proposer address.",
"type": "string"
}
},
"required": [
"address"
],
"type": "object"
}
}
},
"description": "Response containing the proposer address"
},
"GetBlockTimeStampOffsetResponse": {
"content": {
"application/json": {
Expand Down Expand Up @@ -5494,6 +5513,115 @@
]
}
},
"/v2/devmode/blocks/proposer": {
"get": {
"description": "Gets the current proposer address.",
"operationId": "GetBlockProposerAddress",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"address": {
"description": "Proposer address.",
"type": "string"
}
},
"required": [
"address"
],
"type": "object"
}
}
},
"description": "Response containing the proposer address"
},
"400": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
},
"description": "Proposer address not set."
},
"default": {
"content": {},
"description": "Unknown Error"
}
},
"summary": "Returns the proposer address. Proposer address can only be set in dev mode.",
"tags": [
"public",
"nonparticipating"
]
}
},
"/v2/devmode/blocks/proposer/{address}": {
"post": {
"description": "Sets the proposer address for blocks in dev mode. Providing the global zero address will unset this value.",
"operationId": "SetBlockProposerAddress",
"parameters": [
{
"description": "The proposer address for blocks in dev mode.",
"in": "path",
"name": "address",
"required": true,
"schema": {
"pattern": "[A-Z0-9]{58}",
"type": "string"
}
}
],
"responses": {
"200": {
"content": {},
"description": "OK"
},
"400": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
},
"description": "Cannot set proposer address."
},
"401": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
},
"description": "Invalid API Token"
},
"500": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
},
"description": "Internal Error"
},
"default": {
"content": {},
"description": "Unknown Error"
}
},
"summary": "Given a proposer address, adds the proposer to every subsequent block header's prp field.",
"tags": [
"public",
"nonparticipating"
]
}
},
"/v2/experimental": {
"get": {
"operationId": "ExperimentalCheck",
Expand Down
Loading