Vault Integration
If you require assistance or need additional information to integrate Unagii Vault, reach out to us at support@unagii.com. Instructions for V2 Vault integrations are coming soon.
Deposit flow
Withdraw flow
Get token allowance
GET
https://app.unagii.com/api/v1/sc/vault/allowance/{vaultType}/{token}/{address}
Path Parameters
Name | Type | Description |
---|---|---|
vaultType | string | safe | growth |
token | string | Token name |
address | string | Account address |
Get deposited balance
GET
https://app.unagii.com/api/v1/sc/vault/balance/{vaultType}/{token}/{address}
This endpoint allows you to get free cakes.
Path Parameters
Name | Type | Description |
---|---|---|
vaultType | string | safe | growth |
token | string | Token name |
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/sc/vault/digest/approve/{vaultType}/{token}/{address}?amount={amount}
Path Parameters
Name | Type | Description |
---|---|---|
vaultType | string | safe | growth |
Query Parameters
Name | Type | Description |
---|---|---|
amount | number | Leave it blank if you want to approve an infinite amount of allowance |
Headers
Name | Type | Description |
---|---|---|
X-UNAGII-AUTH-TOKEN | string | Access token |
Get data to build Deposit transaction object
GET
https://app.unagii.com/api/v1/sc/vault/digest/deposit/{vaultType}/{token}/{address}?amount={amount}
Path Parameters
Name | Type | Description |
---|---|---|
vaultType | string | safe | growth |
token | string | Token name |
address | string | Account address |
Query Parameters
Name | Type | Description |
---|---|---|
amount | number | Deposit amount |
Headers
Name | Type | Description |
---|---|---|
X-UNAGII-AUTH-TOKEN | string | Access token |
Get data to build Withdraw transaction object
GET
https://app.unagii.com/api/v1/sc/vault/digest/withdraw_by_amount/{vaultType}/{token}/{address}?amount={amount}
Path Parameters
Name | Type | Description |
---|---|---|
vaultType | string | safe | growth |
token | string | Token name |
address | string | Account address |
Query Parameters
Name | Type | Description |
---|---|---|
amount | number | Withdrawal amount |
Headers
Name | Type | Description |
---|---|---|
X-UNAGII-AUTH-TOKEN | string | Access token |
Last updated