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
}
}Validates that an unsigned transaction matches a previously simulated transaction. Compares each field (chainId, data, to, from, value) and returns per-field validation results. The data field is compared by hash to detect any calldata tampering.
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
}
}Documentation Index
Fetch the complete documentation index at: https://docs.enso.build/llms.txt
Use this file to discover all available pages before exploring further.
Enso API key passed as Bearer token in Authorization header
Validation completed
Response from the validate endpoint
Whether all validation checks passed. Only true when every individual check is true.
true
The simulation ID that was validated against
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Per-field validation results showing which fields matched
Show child attributes
Was this page helpful?