ETH Liquid Staking API
To integrate with ETH Liquid Staking, use the smart contract functions and examples below.
Stake ETH and claim ankrETH
stakeAndClaimAethC()
Stakes the msg.value
of ETH and claims ankrETH for it.
Smart contract
- Mainnet GlobalPool Proxy — 0x84db6eE82b7Cf3b47E8F19270abdE5718B936670 (opens in a new tab)
- Testnet GlobalPool Proxy — 0x5ea4C3a6CA22B38a1D6776329bb8b4073C157B27 (opens in a new tab)
Example
- Mainnet live transaction example (opens in a new tab)
- Testnet live transaction example (opens in a new tab)
Get staking metrics
To integrate Ankr Staking metrics into your dashboards or use metrics like APY in your products, read Liquid Staking Metrics.