Test

Test related endpoints.

Store test result data

post
/v1/test

Accepts the JSON body produced by Charon when running charon test … --publish: enr, sig, and data. Authentication is not a Bearer token: TestEnrGuard verifies that sig is a valid secp256k1 ECDSA signature (base64, as emitted by Go json.Marshal on the signature bytes) over the SSZ hash of JSON.stringify(data) for the public key embedded in enr. Only Content-Type: application/json is required.

Body
enrstringOptional

ENR text for the Charon node whose private key signed the payload

Example: enr:-IS4QAnExamplePlaceholderReplaceWithRealEnrFromCharon
sigstringOptional

Base64-encoded secp256k1 ECDSA signature (65 bytes: 32-byte r + 32-byte s + 1-byte recovery id) over the SSZ hashTreeRoot of the UTF-8 bytes of JSON.stringify(data), matching Charon publishResultToObolAPI

Example: AbCdEfGhIjKlMnOpQrStUvWxYz0123456789abcdefghijklmnoPQRSTUVWxyZ
Responses
post
/v1/test

No content

Get test results by ENR

get
/v1/test/enr/{enr}

This endpoint retrieves test results for a specific ENR.

Path parameters
enrstringRequired

ENR to search for

Responses
200

Test results found

application/json
enrstringOptional

ENR text for the Charon node whose private key signed the payload

Example: enr:-IS4QAnExamplePlaceholderReplaceWithRealEnrFromCharon
sigstringOptional

Base64-encoded secp256k1 ECDSA signature (65 bytes: 32-byte r + 32-byte s + 1-byte recovery id) over the SSZ hashTreeRoot of the UTF-8 bytes of JSON.stringify(data), matching Charon publishResultToObolAPI

Example: AbCdEfGhIjKlMnOpQrStUvWxYz0123456789abcdefghijklmnoPQRSTUVWxyZ
get
/v1/test/enr/{enr}

Last updated

Was this helpful?