Deposit ETH and optionally mint wstETH in an StvStETH pool

Generates the encoded transaction to deposit ETH into an StvStETH pool and
optionally mint wstETH in the same transaction. Only supported for
StvStETH pool vaults.

Path Params
string
required

The unique identifier of the Lido staking contracts

Body Params
string
required

Amount of ETH to deposit, as a bigint string in wei.

string
^0x[a-fA-F0-9]{40}$

Optional referral address. Defaults to zero address if not provided.

string

Optional amount of wstETH to mint against the deposit, as a bigint string. Pass "0" or omit to deposit without minting. Pass the literal "max" to mint the full remaining capacity (computed server-side, projected against the ETH being deposited in this call).

string
^0x[a-fA-F0-9]{40}$

Depositor address whose remaining minting capacity bounds the "max" amount (StvStETH pools are per-depositor). When wstethToMint is "max", provide either fromAddress or simulateAddress; they must be the same if both are given.

string
^0x[a-fA-F0-9]{40}$

Optional Ethereum address to simulate the transaction from.

Responses

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