Interface WalletService

All Known Implementing Classes:
SuperUserWalletService, UserWalletService

public interface WalletService
Manages blockchain wallets.
  • Method Details

    • getWallets

      Pagination<Wallet> getWallets(int offset, int count, String vaultId, String userId, BlockchainApi protocol, List<BlockchainNetwork> networks)
      Lists all Wallet instances, specifying a search query.
      Parameters:
      offset - the offset
      count - the count
      vaultId -
      userId - the userId, or null
      protocol - the protocol, or null
      Returns:
      a Pagination of Wallet instances
    • getWallet

      Wallet getWallet(String walletId)
      Fetches a specific Wallet 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

      Wallet getWalletInVault(String walletId, String vaultId)
      Fetches wallet from the supplied vault.
      Parameters:
      walletId - the wallet id
      vaultId - the vault id
      Returns:
    • updateWallet

      Wallet updateWallet(String vaultId, String walletId, UpdateWalletRequest walletUpdateRequest)
      Updates the supplied Wallet.
      Parameters:
      vaultId -
      walletId - the Id of the wallet to update.
      walletUpdateRequest - the UpdateWalletRequest with the information to update
      Returns:
      the Wallet as it was changed by the service.
    • createWallet

      Wallet createWallet(String vaultId, CreateWalletRequest createWalletRequest)
      Creates a new Wallet.
      Parameters:
      createWalletRequest - the CreateWalletRequest with the information to create
      Returns:
      the Wallet as it was created by the service.
    • deleteWallet

      void deleteWallet(String walletId)
      Deletes the Wallet with the supplied wallet ID.
      Parameters:
      walletId - the wallet Id.
    • deleteWalletFromVault

      void deleteWalletFromVault(String walletId, String vaultId)
      Deletes the Wallet with the supplied id, from the vault.
      Parameters:
      walletId - the wallet id
      vaultId - the vault id