Execution
9 endpoints. Every path below is served at https://api.trilocore.ai.
GET /api/v1/bevm/executions
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
| Pagination |
paged: page_size ≤ 200 (default 50) + page_token; the body is {data, has_more, next_page_token, page_size} |
Query parameters
| Parameter |
Type |
Required |
Constraints |
Description |
page_size |
integer |
no |
default 50, clamped to 200, minimum 1 |
Items per page. Default 50; values above 200 are clamped to 200 (never an error). The effective value is echoed as page_size. |
page_token |
string |
no |
maxLength 2048 |
Opaque token from a previous page's next_page_token. Valid for 3 days, only with the same filters and the same caller. Omit it to start from the first page. |
selector |
string |
no |
— |
— |
Request body
application/json: a JSON object
GET /api/v1/bevm/executions/{execution_id}
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Request body
application/json: a JSON object
POST /api/v1/bevm/executions/{execution_id}/analyses
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Request body
| Field |
Type |
Required |
Constraints |
force |
boolean |
no |
— |
mode |
string |
no |
— |
GET /api/v1/bevm/executions/{execution_id}/events
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Query parameters
| Parameter |
Type |
Required |
Constraints |
Description |
after |
integer |
no |
minimum 0 |
— |
Request body
application/json: a JSON object
GET /api/v1/bevm/executions/{execution_id}/traces
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Request body
application/json: a JSON object
POST /api/v1/bevm/previews
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Request body
| Field |
Type |
Required |
Constraints |
chain_id |
integer |
yes |
— |
deadline_ms |
one of |
no |
— |
policy |
one of |
no |
— |
transaction |
object |
yes |
— |
GET /api/v1/bevm/previews/transactions/{tx_hash}
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Query parameters
| Parameter |
Type |
Required |
Constraints |
Description |
chain_id |
integer |
no |
maximum 999999999999999, minimum 1 |
— |
Request body
application/json: a JSON object
▶ Run this example in the sandbox
POST /api/v1/bevm/stateless/calls
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
not required |
| Success |
200 |
Request body
| Field |
Type |
Required |
Constraints |
abi |
array |
no |
— |
address |
string |
yes |
— |
args |
array |
no |
— |
block |
one of |
no |
— |
function |
string |
yes |
— |
gas_limit |
integer |
no |
— |
network |
one of |
no |
— |
rpc_url |
one of |
no |
— |
sender |
one of |
no |
— |
value_wei |
integer |
no |
— |
POST /api/v1/bevm/stateless/deployments
| Property |
Value |
| Authentication |
Authorization: Bearer (jns_ key or SSO session) |
| Idempotency-Key |
required |
| Success |
200 |
Request body
| Field |
Type |
Required |
Constraints |
abi |
array |
no |
— |
block |
one of |
no |
— |
bytecode |
string |
yes |
— |
constructor_args |
array |
no |
— |
constructor_args_hex |
one of |
no |
— |
contract_name |
one of |
no |
— |
gas_limit |
one of |
no |
— |
gas_price |
one of |
no |
— |
network |
one of |
no |
— |
rpc_url |
one of |
no |
— |
sender |
one of |
no |
— |
value_wei |
integer |
no |
— |