-
Notifications
You must be signed in to change notification settings - Fork 31
getVtxos: add pendingOnly, after, before filter params (ts-sdk#379 parity) #196
Copy link
Copy link
Open
Description
Context
ts-sdk PR #379 added new query filter parameters to getVtxos to support the indexer REST endpoint's new capabilities:
GET /v1/indexer/vtxos?pendingOnly=true&after=<unix_ts>&before=<unix_ts>
New parameters added to IndexerProvider.getVtxos()
| Param | Type | Description |
|---|---|---|
pendingOnly |
boolean |
Return only pending (unconfirmed) VTXOs |
after |
number |
Unix timestamp lower bound (createdAt > after) |
before |
number |
Unix timestamp upper bound (createdAt < before) |
Constraints:
pendingOnly,spendableOnly,spentOnly,recoverableOnlyare mutually exclusivebeforemust be smaller thanafterwhen both are provided
What rust-sdk needs
Add these three params to the equivalent indexer query function and wire them through to the REST query string.
References
- ts-sdk PR: Deduplicate and optimize wallet network requests ts-sdk#379
- ts-sdk indexer:
src/providers/indexer.ts(GetVtxosOptionstype)
[from: cross-repo-impact agent, triggered by ts-sdk#379 merge]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels