Interface WalletService
- All Known Implementing Classes:
SuperUserWalletService,UserWalletService
public interface WalletService
Manages blockchain wallets.
-
Method Summary
Modifier and TypeMethodDescriptioncreateWallet(String vaultId, CreateWalletRequest createWalletRequest) Creates a new Wallet.voiddeleteWallet(String walletId) Deletes theWalletwith the supplied wallet ID.voiddeleteWalletFromVault(String walletId, String vaultId) Deletes theWalletwith the supplied id, from the vault.Fetches a specificWalletinstance based on ID or name.getWalletInVault(String walletId, String vaultId) Fetches wallet from the supplied vault.getWallets(int offset, int count, String vaultId, String userId, BlockchainApi protocol, List<BlockchainNetwork> networks) Lists allWalletinstances, specifying a search query.updateWallet(String vaultId, String walletId, UpdateWalletRequest walletUpdateRequest) Updates the suppliedWallet.
-
Method Details
-
getWallets
Pagination<Wallet> getWallets(int offset, int count, String vaultId, String userId, BlockchainApi protocol, List<BlockchainNetwork> networks) Lists allWalletinstances, specifying a search query.- Parameters:
offset- the offsetcount- the countvaultId-userId- the userId, or nullprotocol- the protocol, or null- Returns:
- a
PaginationofWalletinstances
-
getWallet
Fetches a specificWalletinstance based on ID or name. If not found, an exception is raised.- Parameters:
walletId- the wallet Id or name- Returns:
- the
Wallet, never null
-
getWalletInVault
Fetches wallet from the supplied vault.- Parameters:
walletId- the wallet idvaultId- the vault id- Returns:
-
updateWallet
Updates the suppliedWallet.- Parameters:
vaultId-walletId- the Id of the wallet to update.walletUpdateRequest- theUpdateWalletRequestwith the information to update- Returns:
- the
Walletas it was changed by the service.
-
createWallet
Creates a new Wallet.- Parameters:
createWalletRequest- theCreateWalletRequestwith the information to create- Returns:
- the
Walletas it was created by the service.
-
deleteWallet
Deletes theWalletwith the supplied wallet ID.- Parameters:
walletId- the wallet Id.
-
deleteWalletFromVault
Deletes theWalletwith the supplied id, from the vault.- Parameters:
walletId- the wallet idvaultId- the vault id
-