Convert between stETH shares and ETH

Converts an amount of stETH shares to its ETH (stETH) equivalent, or an amount
of ETH (stETH) to its equivalent stETH shares, using the current Lido share rate.
Use the from parameter to indicate which unit amount is denominated in; the
response always returns both the shares and ETH values.

Query Params
string
enum
required

The unit that amount is denominated in. shares converts shares to ETH; eth converts ETH to shares.

Allowed:
string
required
^\d+$

The amount to convert, as a bigint string (wei when from is eth, shares when from is shares).

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json