Quick Start

OPUS is a multi-chain API designed to simplify stake/unstake transactions, fetch staking rewards, and monitor node performance.

Get your API keys

Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error.

Please contact sales@chorus.one to receive your API keys.

Prerequisites

To stake with OPUS API, you need the following

  1. API keys: A bootstrap API key to authenticate with our infrastructure. This key will be provided by our sales team. We refer to this key as '$OPUS_API_KEY' in the next steps.

  2. API Endpoint: Test environment endpoint to interact with the infrastructure. This will be provided by the sales team. We refer to this as '$OPUS_API_URL' in the next steps.

  3. An Ethereum wallet with at least 32 'goerli' ETH

Stake with OPUS

To stake Ethereum, send an authenticated request to the /stake endpoint. This returns a 201 response code with a prepared stake transaction. In the background, OPUS has allocated a Mev boosted validator for this request, and configured withdrawal and rewards addresses.

curl --header "X-API-KEY: $OPUS_API_KEY" -H "Content-Type: application/json" -X POST "$OPUS_API_URL/api/v1/stake" -d "{"request_id": "b2a9b544-02c3-4319-85bb-e997eed3750f","withdrawal_address": "0xD4BB555d3B0D7fF17c606161B44E372689C14F4B","amount": "32","fee_recipient": "0xD4BB555d3B0D7fF17c606161B44E372689C14F4B", "deposit_address":"0xD4BB555d3B0D7fF17c606161B44E372689C14F4B"}"

Last updated