With Vault Management SDK, developers can use a library to manipulate and control Jasper vaults. They can perform actions such as initializing a vault, transferring an asset, or checking the vault's balance.
Function List
To initialize a new Jasper vault:
Method
Parameter Type
Error Message
initNewVault(type: number)
number: number;
'Error creating vault'
To transfer the asset between the wallet and the vault:
Input two addresses (either wallet or vault), asset choices and an amount of asset to transfer.
If from == user's wallet address:
Issue the asset from user's wallet to the vault
If to == user's wallet address:
Redeem the asset from the vault to the user's wallet
Method
Parameter Type
Error Message
transfer(from: Address, to: Address, asset: Address[], amount: BigNumber[])