• Ankr Staking
  • For Integrators
  • Smart Contract API
  • Ethereum Liquid Staking API

ETH Liquid Staking API

To integrate with ETH Liquid Staking, use the smart contract functions and examples below.

Stake ETH and claim aETHb

stakeAndClaimAethB()

Stakes the msg.value of ETH and claims aETHb for it.

Smart contract
Example

Stake ETH and claim aETHc

stakeAndClaimAethC()

Stakes the msg.value of ETH and claims aETHc for it.

Smart contract
Example

Get staking metrics

To integrate Ankr Staking metrics into your dashboards or use metrics like APY in your products, read Liquid Staking Metrics.