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.void
deleteWallet
(String walletId) Deletes theWallet
with the supplied wallet ID.void
deleteWalletFromVault
(String walletId, String vaultId) Deletes theWallet
with the supplied id, from the vault.Fetches a specificWallet
instance 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 allWallet
instances, 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 allWallet
instances, specifying a search query.- Parameters:
offset
- the offsetcount
- the countvaultId
-userId
- the userId, or nullprotocol
- the protocol, or null- Returns:
- a
Pagination
ofWallet
instances
-
getWallet
Fetches a specificWallet
instance 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
- theUpdateWalletRequest
with the information to update- Returns:
- the
Wallet
as it was changed by the service.
-
createWallet
Creates a new Wallet.- Parameters:
createWalletRequest
- theCreateWalletRequest
with the information to create- Returns:
- the
Wallet
as it was created by the service.
-
deleteWallet
Deletes theWallet
with the supplied wallet ID.- Parameters:
walletId
- the wallet Id.
-
deleteWalletFromVault
Deletes theWallet
with the supplied id, from the vault.- Parameters:
walletId
- the wallet idvaultId
- the vault id
-