Skip to content

Commit

Permalink
[create-pull-request] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonboukheir authored Mar 13, 2023
1 parent af54099 commit 4057dc1
Showing 1 changed file with 120 additions and 2 deletions.
122 changes: 120 additions & 2 deletions resources/algod/algod.oas2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@
"schemes": [
"http"
],
"summary": "Gets the node status after waiting for the given round.",
"summary": "Gets the node status after waiting for a round after the given round.",
"operationId": "WaitForBlock",
"parameters": [
{
Expand Down Expand Up @@ -1157,7 +1157,7 @@
"schemes": [
"http"
],
"summary": "Broadcasts a raw transaction to the network.",
"summary": "Broadcasts a raw transaction or transaction group to the network.",
"operationId": "RawTransaction",
"parameters": [
{
Expand Down Expand Up @@ -1205,6 +1205,69 @@
}
}
},
"/v2/transactions/simulate": {
"post": {
"tags": [
"public",
"experimental"
],
"consumes": [
"application/x-binary"
],
"produces": [
"application/msgpack"
],
"schemes": [
"http"
],
"summary": "Simulates a raw transaction or transaction group as it would be evaluated on the network. WARNING: This endpoint is experimental and under active development. There are no guarantees in terms of functionality or future support.",
"operationId": "SimulateTransaction",
"parameters": [
{
"description": "The byte encoded transaction to simulate",
"name": "rawtxn",
"in": "body",
"required": true,
"schema": {
"type": "string",
"format": "binary"
}
}
],
"responses": {
"200": {
"$ref": "#/responses/SimulationResponse"
},
"400": {
"description": "Bad Request - Malformed Algorand transaction",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"401": {
"description": "Invalid API Token",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"500": {
"description": "Internal Error",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"503": {
"description": "Service Temporarily Unavailable",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"default": {
"description": "Unknown Error"
}
}
}
},
"/v2/transactions/params": {
"get": {
"tags": [
Expand Down Expand Up @@ -4054,6 +4117,38 @@
"catchpoint-acquired-blocks": {
"description": "The number of blocks that have already been obtained by the node as part of the catchup",
"type": "integer"
},
"upgrade-delay": {
"description": "Upgrade delay",
"type": "integer"
},
"upgrade-node-vote": {
"description": "This node's upgrade vote",
"type": "boolean"
},
"upgrade-votes-required": {
"description": "Yes votes required for consensus upgrade",
"type": "integer"
},
"upgrade-votes": {
"description": "Total votes cast for consensus upgrade",
"type": "integer"
},
"upgrade-yes-votes": {
"description": "Yes votes cast for consensus upgrade",
"type": "integer"
},
"upgrade-no-votes": {
"description": "No votes cast for consensus upgrade",
"type": "integer"
},
"upgrade-next-protocol-vote-before": {
"description": "Next protocol round",
"type": "integer"
},
"upgrade-vote-rounds": {
"description": "Total voting ounds for current upgrade",
"type": "integer"
}
}
}
Expand Down Expand Up @@ -4128,6 +4223,29 @@
}
}
},
"SimulationResponse": {
"description": "Result of a transaction group simulation.",
"tags": [
"experimental"
],
"schema": {
"type": "object",
"required": [
"failure-message",
"missing-signatures"
],
"properties": {
"failure-message": {
"description": "\\[fm\\] Failure message, if the transaction would have failed during a live broadcast.",
"type": "string"
},
"missing-signatures": {
"description": "\\[ms\\] Whether any transactions would have failed during a live broadcast because they were missing signatures.",
"type": "boolean"
}
}
}
},
"SupplyResponse": {
"description": "Supply represents the current supply of MicroAlgos in the system.",
"schema": {
Expand Down

0 comments on commit 4057dc1

Please sign in to comment.