← Protocols
Ankr Staking
Lending / Yield·EVM

Ankr Staking

01Description

Multi-chain liquid staking aggregator issuing ankrETH (Ethereum), ankrBNB (BNB Chain), ankrFLOW, ankrAVAX, and others. Reward-bearing tokens (non-rebasing) whose ratio to the underlying asset only goes up.

02Best for
  • 01ankrETH on Ethereum
  • 02ankrBNB on BNB Chain
  • 03multi-chain LST aggregation
  • 04validator-as-a-service via Ankr
03Install
  • pnpm add viem
04Environment variables
VariableScopeDescription
NEXT_PUBLIC_ANKRETH_ADDRESSClientankrETH on Ethereum mainnet: 0xE95A203B1a91a908F9B9CE46459d101078c2c3cb.
NEXT_PUBLIC_ANKR_ETH_POOLClientEthereumPool (Ankr ETH staking entry point) on Ethereum mainnet — see https://www.ankr.com/docs/staking-extra/staking-smart-contracts/ for the current proxy address.
05Prompt snippet
Integrate Ankr liquid staking. Stake ETH on mainnet: call `EthereumPool.stakeAndClaimAethC{value: ethAmount}()` — mints ankrETH (formerly aETHc) at the protocol's current `ratio()` (wei ankrETH per wei ETH). ankrETH is NON-rebasing — convert via `ankrETH.balanceOf(holder) * 1e18 / ratio()` to get ETH-equivalent. Unstake: `EthereumPool.unstakeAETH(uint256 ankrETHAmount)` queues a withdrawal in the `WithdrawalPool` once the validator exit completes; user claims ETH after exit. For ankrBNB on BNB Chain: `BinancePool.stakeAndClaimCerts{value: bnbAmount}()` mints ankrBNB; unstake via `unstakeCerts(uint256)`. For ankrFLOW / ankrAVAX, the public functions live on chain-specific pools — refer to the Ankr docs contracts page for the address per chain.
06Gotchas
  • ankrETH is NON-rebasing and uses an INVERSE ratio — `ratio()` returns ankrETH-per-ETH, not ETH-per-ankrETH. Misreading the ratio direction halves or doubles displayed value.
  • Unstaking requires the validator exit queue (Ethereum) or the chain-native unbond period (BNB ~7d, AVAX ~14d, FLOW chain-specific). UI must show chain-specific unbonding times, not a single 'Ankr unbond' value.
  • Validator slashing is socialized into the next `ratio()` update — a mass slashing event lowers ankrETH/ETH for all holders.
  • ankrETH/ETH peg on Curve / Balancer can deviate (historically up to 5%) during stress; don't use DEX spot as a redemption oracle.
  • Contract addresses differ per chain (ankrBNB, ankrAVAX, ankrFLOW are deployed on their respective chains, not on Ethereum). Never reuse the Ethereum mainnet ankrETH address for other tokens.
  • Ankr operates the validator infrastructure — operator centralization risk is higher than permissionless pools (Rocket Pool, Stader Permissionless).
  • ANKR token rewards / governance incentives are claimed separately on Ankr's dashboard; they are NOT auto-credited to ankrETH holders.
07Alternatives