Table of Contents

Interface IUtxoDbRepository

Namespace
NLightning.Domain.Bitcoin.Interfaces
Assembly
NLightning.Domain.dll
public interface IUtxoDbRepository

Methods

Add(UtxoModel)

void Add(UtxoModel utxoModel)

Parameters

utxoModel UtxoModel

GetByIdAsync(TxId, uint, bool)

Task<UtxoModel?> GetByIdAsync(TxId txId, uint index, bool includeWalletAddress = false)

Parameters

txId TxId
index uint
includeWalletAddress bool

Returns

Task<UtxoModel>

GetUnspentAsync(bool)

Task<IEnumerable<UtxoModel>> GetUnspentAsync(bool includeWalletAddress = false)

Parameters

includeWalletAddress bool

Returns

Task<IEnumerable<UtxoModel>>

Spend(UtxoModel)

void Spend(UtxoModel utxoModel)

Parameters

utxoModel UtxoModel

Update(UtxoModel)

void Update(UtxoModel utxoModel)

Parameters

utxoModel UtxoModel