latestOpenAPI 3.0.02026-08-138371125.7 KB

707a88e0b355

Test

Store test result data

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.

post/v1/test

Request body

enrstring

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

sigstring

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 request

{
  "data": {
    "charon_peers": {
      "category_name": "mev",
      "execution_time": "636.089125ms",
      "score": "A",
      "targets": {}
    },
    "beacon_node": {
      "category_name": "mev",
      "execution_time": "636.089125ms",
      "score": "A",
      "targets": {}
    },
    "validator_client": {
      "category_name": "mev",
      "execution_time": "636.089125ms",
      "score": "A",
      "targets": {}
    },
    "mev": {
      "category_name": "mev",
      "execution_time": "636.089125ms",
      "score": "A",
      "targets": {}
    },
    "infra": {
      "category_name": "mev",
      "execution_time": "636.089125ms",
      "score": "A",
      "targets": {}
    }
  },
  "enr": "enr:-IS4QAnExamplePlaceholderReplaceWithRealEnrFromCharon",
  "sig": "AbCdEfGhIjKlMnOpQrStUvWxYz0123456789abcdefghijklmnoPQRSTUVWxyZ"
}

Response

Test result data stored successfully