Staking
Last updated
Last updated
- Claim FRA Token Rewards This function enables users to claim rewards earned from staking FRA tokens.
Parameters:
<WalletKeypar>
- Wallet keypair
<string>
- the amout of rewards which users wants to claim
Results:
Promise<TransactionBuilder>
- TransactionBuilder which should be used in Transaction.submitTransaction
.
Example:
- Delegates FRA tokens This function allows users to delegate FRA tokens to a validator. This functionality is nearly identical to Transaction.sendToAddress except it adds one additional operation (i.e. add_operation_delegate) to the transaction builder.
Parameters:
<WalletKeypar>
- Wallet keypair
<string>
- Target address for delegation
<string>
- delegation amout
<string>
- Asset Code
<string>
- Target validator Address
<AssetBlindRules>
- (optional) Confidential options for blind rule
Promise<TransactionBuilder>
- TransactionBuilder which should be used in Transaction.submitTransaction
.
- Get the delegation information This method is used to get the delegation information
<string>
- wallet address
Promise<DelegateInfoResponse>
- An instance of DelegateInfoDataResult
containing the response and error..
- Get validator list This method is used to get the list of validators.
Promise<validatorListResponse>
- An instance of validatorListResponse
containing the response and error..
- Unstake FRA tokens This function allows users to unstake (aka unbond) FRA tokens.
<WalletKeypar>
- Wallet keypair
<string>
- the amount users wants to unstake
<string>
- validator's address
<boolean>
- fully unstake option. Default is false
Promise<TransactionBuilder>
- TransactionBuilder which should be used in Transaction.submitTransaction
.
Results:
Example:
Parameters:
Results:
Example:
Results:
Example:
Parameters:
Results:
Example: