Skip to content

State and storage

3 endpoints. Every path below is served by trilocore-backend behind the gateway at https://api.trilocore.ai.

POST /api/v1/bevm/morphvm/fingerprints

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 200
Upstream trilocore-backend

Request body

Field Type Required Constraints
bytecode string yes —
selector one of no —
curl -X POST https://api.trilocore.ai/api/v1/bevm/morphvm/fingerprints \
  -H "Authorization: Bearer $TRILOCORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"bytecode": "…"}'

POST /api/v1/bevm/morphvm:decode

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 200
Upstream trilocore-backend

Request body

Field Type Required Constraints
bytecode one of no —
calldata one of no —
selector one of no —
trace one of no —
trace_steps one of no —
curl -X POST https://api.trilocore.ai/api/v1/bevm/morphvm:decode \
  -H "Authorization: Bearer $TRILOCORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"bytecode": "…", "calldata": "…", "selector": "…"}'

POST /api/v1/bevm/storage-slots:computeMappingKey

Property Value
Authentication Authorization: Bearer (jns_ key or SSO session)
Idempotency-Key not required
Success 200
Upstream trilocore-backend

Request body

Field Type Required Constraints
key string yes maxLength 256
raw_key boolean no —
slot string yes maxLength 256
curl -X POST https://api.trilocore.ai/api/v1/bevm/storage-slots:computeMappingKey \
  -H "Authorization: Bearer $TRILOCORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"key": "…", "slot": "…"}'

▶ Run this example in the sandbox