/ types / primitive.yaml
primitive.yaml
 1  Pubkey:
 2    type: string
 3    pattern: "^0x[a-fA-F0-9]{96}$"
 4    description: "The validator's BLS public key, uniquely identifying them. _48-bytes, hex encoded with 0x prefix, case insensitive._"
 5    example: "0x93247f2209abcacf57b75a51dafae777f9dd38bc7053d1af526f220a7489a6d3a2753e5f3e8b1cfe39b56f43611df74a"
 6  
 7  ForkVersion:
 8    type: string
 9    description: "a fork version number"
10    example: "0x00000000"
11    pattern: "^0x[a-fA-F0-9]{8}$"
12  
13  Version:
14    type: string
15    description: "A string which uniquely identifies the client implementation and its version; similar to [HTTP User-Agent](https://tools.ietf.org/html/rfc7231#section-5.5.3)."
16    example: "Lighthouse/v0.1.5 (Linux x86_64)"
17  
18  GenesisTime:
19    allOf:
20      - $ref: "./primitive.yaml#/Uint64"
21      - example: "1590832934"
22      - description: "The genesis_time configured for the beacon node, which is the unix time in seconds at which the Eth2.0 chain began."
23  
24  Gwei:
25    $ref: "./primitive.yaml#/Uint64"
26  
27  Uint64:
28    type: string
29    example: "1"
30  
31  DependentRoot:
32    allOf:
33      - $ref: "./primitive.yaml#/Root"
34      - description: "The block root that this response is dependent on."
35  
36  Root:
37    type: string
38    example: "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
39    pattern: "^0x[a-fA-F0-9]{64}$"
40  
41  Graffiti:
42    type: string
43    format: hex
44    example: "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
45    pattern: "^0x[a-fA-F0-9]{64}$"
46  
47  Hex:
48    type: string
49    pattern: "^0x[a-fA-F0-9]{2,}$"
50  
51  Signature:
52    type: string
53    pattern: "^0x[a-fA-F0-9]{192}$"
54    example: "0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505"
55  
56  Uint8:
57    type: string
58    description: "Unsigned 8 bit integer, max value 255"
59    pattern: "^[1-2]?[0-9]{1,2}$"
60    example: "0"