The Preconf API checks whether a validator is part of Lido and has opted into preconfirmations via
the CCCP contract.
This service primarily acts as a wrapper around the KAPI and
the CCCP contract.
- KAPI: For setup instructions, please refer to the documentation.
- Execution Layer client: Required to access the
CCCP
contract. - Node.js/Yarn or Docker: To run the service.
- Copy
sample.env
to.env
and fill it with actual values. The most important variables are theKAPI
URI and theCCCP
contract address. - Run the service via
yarn
ordocker
.
$ yarn install
$ yarn start:dev
$ yarn install
$ yarn build
$ yarn start
$ docker compose up -d
The service will start listening on the PORT
specified in the .env
file (default is 3000
).
Currently, the service supports a single method described below.
POST http://api:3000/v1/preconfs/lido-bolt/validators
Accept: application/json
Content-Type: application/json
{
"pubKeys": [
"0x5ff0d5508850142615b6766ace748cad0f11b725b0a4c1f9609f4e37b1989ae17b8f0e5e1af7cc60e2a7cfd380828589"
]
}
{
"data": [
{
"pubKey": "0x5ff0d5508850142615b6766ace748cad0f11b725b0a4c1f9609f4e37b1989ae17b8f0e5e1af7cc60e2a7cfd380828589",
"rpcUrl": "https://example.domain:8017/"
}
]
}
The following environment variables are required:
Name | Description |
---|---|
KEYS_API_HOST |
URI of the Keys API |
CURATOR_ADDRESS |
Address of the CCCP contract |
EL_API_URLS |
URIs of the Execution Layer clients |
CHAIN_ID |
Chain ID: 1 for mainnet, 17000 for Holesky |