This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8814 from EOSIO/docs/trace-api-ref-2.0
Add RPC Trace API plugin reference to nodeos - 2.0
- Loading branch information
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
docs/01_nodeos/03_plugins/trace_api_plugin/api-reference/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!-- THIS IS A PLACEHOLDER, WILL BE REPLACED BY REDOC INSTANCE --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: Trace API | ||
version: 1.0.0 | ||
license: | ||
name: MIT | ||
url: https://opensource.org/licenses/MIT | ||
contact: | ||
url: https://eos.io | ||
servers: | ||
- url: '{protocol}://{host}:{port}/v1/' | ||
variables: | ||
protocol: | ||
enum: | ||
- http | ||
- https | ||
default: http | ||
host: | ||
default: localhost | ||
port: | ||
default: "8080" | ||
components: | ||
schemas: {} | ||
paths: | ||
/trace_api/get_block: | ||
post: | ||
description: Returns a block object containing retired actions and related metadata. | ||
operationId: get_block | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
required: | ||
- block_num | ||
properties: | ||
block_num: | ||
type: string | ||
description: Provide a `block number` | ||
responses: | ||
"200": | ||
description: OK - valid response payload | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "https://eosio.github.io/schemata/v2.0/oas/Block.yaml" | ||
"400": | ||
description: Error - requested block number is invalid (not a number, larger than max int) | ||
"404": | ||
description: Error - requested data not present on node | ||
"500": | ||
description: Error - exceptional condition while processing get_block; e.g. corrupt files |