Add explorer-like endpoint to retrieve spendable vtxos for address (#37)

* Add GetSpendableVtxosWithId to repo

* Add endpoint to retrieve spendable vtxos
This commit is contained in:
Pietralberto Mazza
2023-12-04 17:28:01 +01:00
committed by GitHub
parent 9e9e61fb89
commit 554eaeb406
10 changed files with 585 additions and 80 deletions

View File

@@ -18,4 +18,5 @@ type VtxoRepository interface {
AddVtxos(ctx context.Context, vtxos []Vtxo) error
SpendVtxos(ctx context.Context, vtxos []VtxoKey) error
GetVtxos(ctx context.Context, vtxos []VtxoKey) ([]Vtxo, error)
GetSpendableVtxosWithPubkey(ctx context.Context, pubkey string) ([]Vtxo, error)
}