Table of Contents
API reference
add_contract
Add contract to the inventory.
| Method | POST |
| URI | /add_contract |
| Content-Type | application/json |
Parameters
| name | type | description |
|---|---|---|
| kind | str | Either 'tezos' or 'evm' allowed |
| name | str | Contract name |
| typename | str | Alias for the contract script, optional |
| address | str | Contract address, optional |
| code_hash | str | Contract code hash, optional |
Response
| status | description |
|---|---|
| 200 OK | Contract added successfully |
| 400 Bad Request | Contract already exists or invalid parameters, see the response body for details |
| 500 Internal Server Error | Something went wrong on the server |
add_index
Add index from the template.
| Method | POST |
| URI | /add_index |
| Content-Type | application/json |
Parameters
| name | type | description |
|---|---|---|
| name | str | Index name |
| template | str | Index template to use |
| values | dict | Mapping of values to fill template with |
| first_level | int | First level to start indexing from, optional |
| last_level | int | Last level to index, optional |
Response
| status | description |
|---|---|
| 200 OK | Index added successfully |
| 400 Bad Request | Index already exists or invalid parameters, see the response body for details |
| 500 Internal Server Error | Something went wrong on the server |
performance
Get various performance metrics.
| Method | GET |
| URI | /performance |
| Content-Type | application/json |
Parameters
None
Response
| status | description |
|---|---|
| 200 OK | JSON with performance metrics |
| 500 Internal Server Error | Something went wrong on the server |
Help and tips -> Join our Discord
Ideas or suggestions -> Issue Tracker
GraphQL IDE -> Open Playground