# ETH2 REST API

### OpenAPI definition

ConsenSys manages the up-to-date TEKU REST API documentation below which contains full details on the ETH2 method calls.

{% embed url="<https://consensys.github.io/teku>" %}
Current stable version Teku (v22.9.1)
{% endembed %}

#### Config

* /eth/v1/config/spec: {GET}
* /eth/v1/config/fork\_schedule: {GET}
* /eth/v1/config/deposit\_contract: {GET}

#### Beacon

* /eth/v1/beacon/genesis: {GET}
* /eth/v1/beacon/headers: {GET}
* /eth/v1/beacon/blocks: {POST}
* /eth/v1/beacon/blocks/:block\_id: {GET} // DEPRECATED IN TEKU 21.8.0
* /eth/v2/beacon/blocks/:block\_id: {GET}
* /eth/v1/beacon/blocks/:block\_id/attestations: {GET}
* /eth/v1/beacon/blocks/:block\_id/root: {GET}
* /eth/v1/beacon/pool/attestations: {POST}
* /eth/v1/beacon/pool/voluntary\_exits: {POST}
* /eth/v1/beacon/pool/proposer\_slashings: {POST}
* /eth/v1/beacon/pool/attester\_slashings: {POST}
* /eth/v1/beacon/pool/sync\_committees: {POST}
* /eth/v1/beacon/headers/:block\_id: {GET}
* /eth/v1/beacon/states/:state\_id/root: {GET}
* /eth/v1/beacon/states/:state\_id/fork: {GET}
* /eth/v1/beacon/states/:state\_id/committees: {GET}
* /eth/v1/beacon/states/:state\_id/committees/:epoch: {GET}
* /eth/v1/beacon/states/:state\_id/finality\_checkpoints: {GET}
* /eth/v1/beacon/states/:state\_id/validators: {GET}
* /eth/v1/beacon/states/:state\_id/validators/:validator\_id: {GET}
* /eth/v1/beacon/states/:state\_id/validator\_balances: {GET}
* /eth/v1/beacon/states/:state\_id/sync\_committees: {GET}

#### Node

* /eth/v1/node/health: {GET}
* /eth/v1/node/syncing: {GET}
* /eth/v1/node/version: {GET}

#### Validator

* /eth/v1/validator/aggregate\_attestation: {GET}
* /eth/v1/validator/aggregate\_and\_proofs: {POST}
* /eth/v1/validator/beacon\_committee\_subscriptions: {POST}
* /eth/v1/validator/sync\_committee\_subscriptions: {POST}
* /eth/v1/validator/attestation\_data: {GET}
* /eth/v1/validator/duties/attester/:epoch: {POST}
* /eth/v1/validator/duties/proposer/:epoch: {GET}
* /eth/v1/validator/duties/sync/:epoch: {POST}
* /eth/v1/validator/blocks/:slot: {GET} // DEPRECATED IN TEKU 21.8.0
* /eth/v2/validator/blocks/:slot: {GET}
* /eth/v1/validator/sync\_committee\_contribution: {GET}
* /eth/v1/validator/contribution\_and\_proofs: {POST}

#### Debug

* /eth/v1/debug/beacon/heads: {GET}
* /eth/v1/debug/beacon/states/:state\_id: {GET} // DEPRECATED IN TEKU 21.8.0
* /eth/v2/debug/beacon/states/:state\_id: {GET}
