Table of Contents

Interface IWalletProvider

Namespace
NArk.Abstractions.Wallets
Assembly
NArk.Abstractions.dll

Resolves signers and address providers for wallets by ID.

public interface IWalletProvider

Methods

GetAddressProviderAsync(string, CancellationToken)

Returns the address provider for the wallet, or null if none is registered.

Task<IArkadeAddressProvider?> GetAddressProviderAsync(string identifier, CancellationToken cancellationToken = default)

Parameters

identifier string
cancellationToken CancellationToken

Returns

Task<IArkadeAddressProvider>

GetSignerAsync(string, CancellationToken)

Returns the signer for the wallet, or null if the wallet is watch-only.

Task<IArkadeWalletSigner?> GetSignerAsync(string identifier, CancellationToken cancellationToken = default)

Parameters

identifier string
cancellationToken CancellationToken

Returns

Task<IArkadeWalletSigner>