Kyber
If you require assistance or need additional information to integrate Unagii Stake, reach out to us at support@unagii.com.
Stake flow
Unstake flow
Get KNC allowance
GET
https://app.unagii.com/api/v1/kyberdao/staker/allowance/{address}
This endpoint allows you to get the allowance of KNC to spend on our PoolMaster smart contract
Path Parameters
Name | Type | Description |
---|---|---|
address | string | Account address |
Headers
Name | Type | Description |
---|---|---|
X-UNAGII-AUTH-TOKEN | string | Access Token |
Get data to build Approve Token transaction object
GET
https://app.unagii.com/api/v1/kyberdao/staking/digest/approve/{address}
Path Parameters
Name | Type | Description |
---|---|---|
address | string | Account address |
Headers
Name | Type | Description |
---|---|---|
X-UNAGII-AUTH-TOKEN | string | Access token |
Get data to build Stake transaction object
GET
https://app.unagii.com/api/v1/kyberdao/staking/digest/deposit/{address}?amount={amount}
Path Parameters
Name | Type | Description |
---|---|---|
address | string | Account address |
Query Parameters
Name | Type | Description |
---|---|---|
amount | number | KNC amount to stake |
Headers
Name | Type | Description |
---|---|---|
X-UNAGII-AUTH-TOKEN | string | Access token |
The amount of KNC to stake must not be greater than the amount of KNC allowance able to spend on our PoolMaster smart contract.
Get data to build Unstake transaction object
GET
https://app.unagii.com/api/v1/kyberdao/staking/digest/withdraw/{address}?amount={amount}
Path Parameters
Name | Type | Description |
---|---|---|
address | string | Account address |
Query Parameters
Name | Type | Description |
---|---|---|
amount | number | KNC amount to unstake |
Headers
Name | Type | Description |
---|---|---|
X-UNAGII-AUTH-TOKEN | string | Access token |
Last updated