Methods
Optional getLatestBlock
- getLatestBlock(): Promise<number>
getMinimumStake
- getMinimumStake(): Promise<BigNumber>
Returns Promise<BigNumber>
getPendingClaim
- getPendingClaim(): Promise<BigNumber>
Returns Promise<BigNumber>
stake
- stake(amount: BigNumber, token: string, scale?: number, referralCode?: string): Promise<IStakeData>
Parameters
amount: BigNumber
token: string
Optional scale: number
Optional referralCode: string
unstake
- unstake(amount: BigNumber, token: string, scale?: number): Promise<IWeb3SendResult>
Parameters
amount: BigNumber
token: string
Optional scale: number
Returns Promise<IWeb3SendResult>
You need to implement this interface if you want to integrate new tokens into Ankr Staking.