Skale
If you require assistance or need additional information to integrate Unagii Stake, reach out to us at [email protected]

Stake flow

Unstake flow

Cancel delegation flow

Claim rewards flow

get
https://app.unagii.com/api/v1
/eth/skale/delegator/available_balance/{address}
Get SKL balances
get
https://app.unagii.com/api/v1
/eth/skale/delegator/delegations/{address}
Get delegations
get
https://app.unagii.com/api/v1
/eth/skale/delegator/earned_bounty/{address}
Get rewards
get
https://app.unagii.com/api/v1
/eth/skale/delegator/digest/delegate/{address}?amount={amount}&delegation_period={period}
Get data to build Stake transaction object
1
const stakeTxn = {
2
from: address,
3
gasPrice: "20000000000", // 20 Gwei
4
gas: String(result.gasLimit),
5
to: result.contractAddress,
6
value: "0x0",
7
nonce: "10", // tx nonce
8
data: result.digest
9
}
10
web3.eth.sendTransaction(stakeTxn).then( // do something );
Copied!
get
https://app.unagii.com/api/v1
/eth/skale/delegator/digest/request_undelegation/{address}?delegation_id={delegationId}
Get data to build Unstake transaction object
1
const unstakeTxn = {
2
from: address,
3
gasPrice: "20000000000", // 20 Gwei
4
gas: String(result.gasLimit),
5
to: result.contractAddress,
6
value: "0x0",
7
nonce: "10", // tx nonce
8
data: result.digest
9
}
10
web3.eth.sendTransaction(unstakeTxn).then( // do something );
Copied!
get
https://app.unagii.com/api/v1
/eth/skale/delegator/digest/cancel_pending_delegation/{address}?delegation_id={delegationId}
Get data to build Cancel Request transaction object
1
const cancelTxn = {
2
from: address,
3
gasPrice: "20000000000", // 20 Gwei
4
gas: String(result.gasLimit),
5
to: result.contractAddress,
6
value: "0x0",
7
nonce: "10", // tx nonce
8
data: result.digest
9
}
10
web3.eth.sendTransaction(cancelTxn).then( // do something );
Copied!
get
https://app.unagii.com/api/v1
/eth/skale/delegator/digest/withdraw_bounty/{address}?validator_id={validatorId}&to={destAddress}
Get data to build Claim Rewards transaction object
1
const claimTxn = {
2
from: address,
3
gasPrice: "20000000000", // 20 Gwei
4
gas: String(result.gasLimit),
5
to: result.contractAddress,
6
value: "0x0",
7
nonce: "10", // tx nonce
8
data: result.digest
9
}
10
web3.eth.sendTransaction(claimTxn).then( // do somethi
Copied!