Vault Management
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 |
---|---|---|
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 |
---|---|---|
To get vault address under the specific wallet
Input a wallet address to get a vault address under the wallet as a return
Method | Parameter Type | Error Message |
---|---|---|
To get salt number under the specific vault
Input a vault address to get a salt number (ERC-4337 type)
Method Parameter Type Error Message To get address under the specific wallet and salt number
Input the wallet address and salt to get the address
Method Parameter Type Error Message To create a new account for vault
Input a wallet address and salt to create a new account
Method Parameter Type Error Message To manage option writer setting
Input a vault address and details to edit option writer settings
Method Parameter Type Error Message
Last updated