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
contextNLightningDbContext
Methods
Add(UtxoModel)
public void Add(UtxoModel utxoModel)
Parameters
utxoModelUtxoModel
GetByIdAsync(TxId, uint, bool)
public Task<UtxoModel?> GetByIdAsync(TxId txId, uint index, bool includeWalletAddress = false)
Parameters
Returns
GetUnspentAsync(bool)
public Task<IEnumerable<UtxoModel>> GetUnspentAsync(bool includeWalletAddress = false)
Parameters
includeWalletAddressbool
Returns
Spend(UtxoModel)
public void Spend(UtxoModel utxoModel)
Parameters
utxoModelUtxoModel
Update(UtxoModel)
public void Update(UtxoModel utxoModel)
Parameters
utxoModelUtxoModel