WalletRepositoryProtocol

public protocol WalletRepositoryProtocol

A protocol for managing wallet operations.

  • Retrieves the wallet with the specified ID.

    Declaration

    Swift

    func fetchWallet(walletId: String) -> AnyPublisher<Wallet, NetworkError>

    Parameters

    walletId

    The ID of the wallet to retrieve.

    Return Value

    A publisher that emits the retrieved Wallet or an error of type NetworkError.