Skip to main content

FTM Liquid Staking API

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

Stake FTM and claim aFTMb

stakeAndClaimBonds()

Stakes the msg.value of FTM and claims aFTMb for it.

Smart contract

Example

Stake FTM and claim aFTMc

stakeAndClaimCerts()

Stakes the msg.value of FTM and claims aFTMc for it.

Smart contract

Example

Unstake aFTMb and claim FTM

burnBonds(amount)

Burns aFTMb and gets FTM for the burned aFTMb.

Parameters

amount (uint256, required) — amount of aFTMb to be unstaked.

Smart contract

Example

Unstake aFTMc and claim FTM

burnCerts(amount)

Burns aFTMc and gets FTM for the burned aFTMc.

Parameters

amount (uint256, required) — amount of aFTMc to be unstaked.

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.