Table of Contents

Class UtxoDbRepository

Namespace
NLightning.Infrastructure.Repositories.Database.Bitcoin
Assembly
NLightning.Infrastructure.Repositories.dll
public class UtxoDbRepository : BaseDbRepository<UtxoEntity>, IUtxoDbRepository
Inheritance
UtxoDbRepository
Implements
Inherited Members

Constructors

UtxoDbRepository(NLightningDbContext)

public UtxoDbRepository(NLightningDbContext context)

Parameters

context NLightningDbContext

Methods

Add(UtxoModel)

public void Add(UtxoModel utxoModel)

Parameters

utxoModel UtxoModel

GetByIdAsync(TxId, uint, bool)

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

Parameters

txId TxId
index uint
includeWalletAddress bool

Returns

Task<UtxoModel>

GetUnspentAsync(bool)

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

Parameters

includeWalletAddress bool

Returns

Task<IEnumerable<UtxoModel>>

Spend(UtxoModel)

public void Spend(UtxoModel utxoModel)

Parameters

utxoModel UtxoModel

Update(UtxoModel)

public void Update(UtxoModel utxoModel)

Parameters

utxoModel UtxoModel