API reference
Add contract to the inventory.
| |
---|
Method | POST |
URI | /add_contract |
Content-Type | application/json |
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 |
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 from the template.
| |
---|
Method | POST |
URI | /add_index |
Content-Type | application/json |
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 |
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 |
Get various performance metrics.
| |
---|
Method | GET |
URI | /performance |
Content-Type | application/json |
None
status | description |
---|
200 OK | JSON with performance metrics |
500 Internal Server Error | Something went wrong on the server |