Skip to main content
POST
/
api
/
v1
/
validate
Validate an unsigned transaction against a prior simulation
curl --request POST \
  --url https://shield.api.enso.build/api/v1/validate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "simulationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "transaction": {
    "data": "0x3593564c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000066c5a817",
    "to": "0x80EbA3855878739F4710233A8a19d89Bdd2ffB8E",
    "from": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
    "value": "1000000000000000000",
    "chainId": 1
  }
}
'
{
  "valid": true,
  "simulationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "checks": {
    "chainId": true,
    "data": true,
    "to": true,
    "value": true,
    "from": true
  }
}

Authorizations

Authorization
string
header
required

Enso API key passed as Bearer token in Authorization header

Body

application/json

Request to validate an unsigned transaction against a prior simulation

simulationId
string<uuid>
required

Simulation ID from a prior /simulate call

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

transaction
object
required

The unsigned transaction to validate

Response

Validation completed

Response from the validate endpoint

valid
boolean
required

Whether all validation checks passed. Only true when every individual check is true.

Example:

true

simulationId
string<uuid>
required

The simulation ID that was validated against

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

checks
object
required

Per-field validation results showing which fields matched