Targets and contracts
35 endpoints. Every path below is served at https://api.trilocore.ai.
POST /api/v1/bevm/compilations
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Request body
| Field |
Type |
Required |
Constraints |
artifacts |
array | null |
no |
maxItems 256 |
compiler_settings |
object | null |
no |
— |
contract_name |
string | null |
no |
maxLength 256 |
entrypoint |
string | null |
no |
maxLength 4096 |
evm_version |
string | null |
no |
maxLength 32 |
include_bytecode |
boolean | null |
no |
— |
optimize |
boolean |
no |
— |
optimize_runs |
integer |
no |
— |
project_id |
string | null |
no |
maxLength 128 |
remappings |
array | null |
no |
— |
solc_version |
string | null |
no |
maxLength 32 |
source |
string | null |
no |
maxLength 1000000 |
source_manifest |
object | null |
no |
— |
sources |
object | null |
no |
— |
workspace_id |
string | null |
no |
maxLength 128 |
GET /api/v1/bevm/compilations/{compilation_id}
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
GET /api/v1/bevm/compilations/{compilation_id}/artifacts/{artifact}/bytecode
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
▶ Run this example in the sandbox
GET /api/v1/bevm/library/presets
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
▶ Run this example in the sandbox
POST /api/v1/bevm/library/presets/{preset_id}:apply
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Request body
| Field |
Type |
Required |
Constraints |
auditor |
string |
yes |
— |
target |
string |
yes |
— |
POST /api/v1/bevm/library/presets:build
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Request body
| Field |
Type |
Required |
Constraints |
name |
string |
yes |
— |
GET /api/v1/bevm/targets
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
POST /api/v1/bevm/targets
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Request body
| Field |
Type |
Required |
Constraints |
address |
string |
yes |
maxLength 66 |
depth |
integer |
no |
maximum 3, minimum 1 |
discover |
boolean |
no |
— |
label |
string | null |
no |
maxLength 64 |
max_links |
integer |
no |
maximum 32, minimum 1 |
GET /api/v1/bevm/targets/{uid}/abi
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Query parameters
| Parameter |
Type |
Required |
Constraints |
Description |
address |
string |
no |
— |
— |
network |
string |
no |
— |
— |
refresh |
boolean |
no |
— |
— |
POST /api/v1/bevm/targets/{uid}/addresses:classify
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Request body
| Field |
Type |
Required |
Constraints |
address |
string |
yes |
maxLength 42 |
GET /api/v1/bevm/targets/{uid}/blocks
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Query parameters
| Parameter |
Type |
Required |
Constraints |
Description |
contract |
string |
no |
— |
— |
include_targets |
boolean |
no |
— |
— |
limit |
integer |
no |
maximum 500, minimum 1 |
— |
offset |
integer |
no |
maximum 1000000, minimum 0 |
— |
pc_from |
integer |
no |
maximum 16777215, minimum 0 |
— |
pc_to |
integer |
no |
maximum 16777215, minimum 0 |
— |
q |
string |
no |
maxLength 128 |
— |
selector |
string |
no |
— |
— |
sort |
string |
no |
one of danger, pc |
— |
Request body
application/json: a JSON object
GET /api/v1/bevm/targets/{uid}/blocks/{pc}
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Query parameters
| Parameter |
Type |
Required |
Constraints |
Description |
contract |
string |
no |
— |
— |
source |
string |
no |
— |
— |
stack_mode |
string |
no |
— |
— |
with_stack |
integer |
no |
— |
— |
GET /api/v1/bevm/targets/{uid}/blocks/{pc}/stack
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Query parameters
| Parameter |
Type |
Required |
Constraints |
Description |
contract |
string |
no |
— |
— |
max_depth |
integer |
no |
— |
— |
mode |
string |
no |
— |
— |
source |
string |
no |
— |
— |
POST /api/v1/bevm/targets/{uid}/blocks/{pc}:autoTeleport
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Request body
| Field |
Type |
Required |
Constraints |
apply |
boolean |
no |
— |
args |
array |
no |
— |
contract |
one of |
no |
— |
fundings |
array |
no |
— |
gas_limit |
one of |
no |
— |
max_iterations |
integer |
no |
maximum 256.0, minimum 0.0 |
overrides |
object |
no |
— |
require_waypoints |
boolean |
no |
— |
selector |
one of |
no |
— |
sender |
string |
no |
— |
signature |
one of |
no |
— |
source |
string |
no |
— |
use_static_seed |
boolean |
no |
— |
use_z3 |
boolean |
no |
— |
value_wei |
integer |
no |
— |
waypoints |
array |
no |
maxItems 32 |
z3_timeout_ms |
integer |
no |
maximum 120000.0, minimum 0.0 |
POST /api/v1/bevm/targets/{uid}/blocks/{pc}:solvePath
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Request body
| Field |
Type |
Required |
Constraints |
apply |
boolean |
no |
— |
arg_positions |
one of |
no |
— |
args |
array |
no |
— |
branch_trail |
boolean |
no |
— |
contract |
one of |
no |
— |
fundings |
array |
no |
— |
gas_limit |
one of |
no |
— |
max_calldata_iterations |
integer |
no |
maximum 1024.0, minimum 0.0 |
max_iterations |
integer |
no |
maximum 256.0, minimum 0.0 |
overrides |
object |
no |
— |
require_waypoints |
boolean |
no |
— |
seed_args |
one of |
no |
— |
selector |
one of |
no |
— |
sender |
string |
no |
— |
signature |
one of |
no |
— |
solve_calldata |
boolean |
no |
— |
source |
string |
no |
— |
use_concolic |
boolean |
no |
— |
use_static_seed |
boolean |
no |
— |
use_z3 |
boolean |
no |
— |
value_wei |
integer |
no |
— |
waypoints |
array |
no |
maxItems 32 |
z3_timeout_ms |
integer |
no |
maximum 120000.0, minimum 0.0 |
POST /api/v1/bevm/targets/{uid}/blocks/{pc}:teleport
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Request body
| Field |
Type |
Required |
Constraints |
args |
array |
no |
— |
contract |
one of |
no |
— |
fundings |
array |
no |
— |
gas_limit |
one of |
no |
— |
overrides |
object |
no |
— |
selector |
one of |
no |
— |
sender |
string |
no |
— |
signature |
one of |
no |
— |
snapshot |
boolean |
no |
— |
source |
string |
no |
— |
value_wei |
integer |
no |
— |
GET /api/v1/bevm/targets/{uid}/capabilities
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
GET /api/v1/bevm/targets/{uid}/contracts
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
DELETE /api/v1/bevm/targets/{uid}/contracts/{address}
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Query parameters
| Parameter |
Type |
Required |
Constraints |
Description |
address |
string |
no |
— |
— |
Request body
application/json: a JSON object
PATCH /api/v1/bevm/targets/{uid}/contracts/{address}
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Query parameters
| Parameter |
Type |
Required |
Constraints |
Description |
address |
string |
no |
— |
— |
Request body
| Field |
Type |
Required |
Constraints |
label |
string | null |
no |
maxLength 64 |
POST /api/v1/bevm/targets/{uid}/contracts:discover
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Request body
| Field |
Type |
Required |
Constraints |
addresses |
array |
no |
maxItems 32 |
depth |
integer |
no |
maximum 3, minimum 1 |
dry_run |
boolean |
no |
— |
max_links |
integer |
no |
maximum 32, minimum 1 |
POST /api/v1/bevm/targets/{uid}/heap-analyses
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
This operation takes no request body.
GET /api/v1/bevm/targets/{uid}/mindmap
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Query parameters
| Parameter |
Type |
Required |
Constraints |
Description |
max |
integer |
no |
maximum 2000, minimum 50 |
— |
POST /api/v1/bevm/targets/{uid}/occurrences:compute
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Request body
| Field |
Type |
Required |
Constraints |
calldata |
string |
yes |
maxLength 262146 |
contract |
string | null |
no |
— |
gas_limit |
integer | null |
no |
maximum 10000000, minimum 1 |
occurrence_limit |
integer | null |
no |
maximum 8192, minimum 1 |
value |
string | null |
no |
maxLength 80 |
POST /api/v1/bevm/targets/{uid}/power-clash-checks
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Request body
application/json: a JSON object
GET /api/v1/bevm/targets/{uid}/proxy-collisions
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Query parameters
| Parameter |
Type |
Required |
Constraints |
Description |
refresh |
boolean |
no |
— |
— |
POST /api/v1/bevm/targets/{uid}/routes:search
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Request body
| Field |
Type |
Required |
Constraints |
baseline |
one of |
no |
— |
policy |
ToolsRouteSearchPolicy |
no |
— |
spec |
ToolsRouteSpec |
yes |
— |
POST /api/v1/bevm/targets/{uid}/routes:solve
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Request body
| Field |
Type |
Required |
Constraints |
assumptions |
one of |
no |
— |
code_bindings |
array of ToolsRouteCodeBinding |
no |
— |
endpoint |
ToolsRouteEndpoint |
yes |
— |
entry |
ToolsRouteEntry |
yes |
— |
execution_target |
ToolsRouteExecutionTarget |
yes |
— |
forbidden_events |
array of ToolsRouteEventConstraint |
no |
— |
frame_constraints |
array of ToolsRouteFrameConstraint |
no |
— |
match_mode |
string |
yes |
one of exact_edges, ordered_waypoints, target_only |
required_events |
array of ToolsRouteEventConstraint |
no |
— |
revision |
integer |
yes |
minimum 0.0 |
route_id |
string |
yes |
— |
schema_version |
integer |
yes |
minimum 1.0 |
segments |
ToolsRouteSegments |
no |
— |
visit_constraints |
one of |
no |
— |
GET /api/v1/bevm/targets/{uid}/scope
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
GET /api/v1/bevm/targets/{uid}/storage-graph
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Query parameters
| Parameter |
Type |
Required |
Constraints |
Description |
address |
string |
no |
— |
— |
enrich |
boolean |
no |
— |
— |
source |
string |
no |
— |
— |
GET /api/v1/bevm/targets/{uid}/tree
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
GET /api/v1/bevm/targets/{uid}/visual-graph
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Query parameters
| Parameter |
Type |
Required |
Constraints |
Description |
include_selector_routes |
boolean |
no |
— |
— |
refresh |
boolean |
no |
— |
— |
source |
string |
no |
— |
— |
GET /api/v1/bevm/targets/{uid}/xrefs
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Query parameters
| Parameter |
Type |
Required |
Constraints |
Description |
contract |
string |
no |
— |
An in-scope contract; absent = the target (implementation first for a proxy, as every /target/block op resolves it). |
direction |
string |
no |
one of from, to |
Required iff pc or slot is given. |
evidence |
string |
no |
maxLength 512 |
Comma-separated evidence classes; absent = all. |
kinds |
string |
no |
maxLength 512 |
Comma-separated record kinds; absent = all. |
limit |
integer |
no |
maximum 1024, minimum 1 |
— |
offset |
integer |
no |
maximum 1000000, minimum 0 |
— |
pc |
string |
no |
maxLength 10 |
Instruction pc, decimal or 0x-hex. Exclusive with slot. |
slot |
string |
no |
maxLength 78 |
Storage key, decimal or 0x-hex (up to 64 hex digits). Exclusive with pc. |
space |
string |
no |
one of persistent, transient |
Storage space slot addresses. |
Request body
application/json: a JSON object