Documentation
¶
Overview ¶
Package blockchainquery is a thin HTTP client for the Bitwave blockchain query API. It backs `bitwave wallets sync` — the per-wallet on-chain history pull that builds local ledger entries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client wraps the blockchain query API address-scan endpoint.
func New ¶
New returns a Client with a 30s default timeout. TokenResolver may be nil for unauthenticated calls (e.g. when pointing at a local dev instance).
func (*Client) ScanAddress ¶
func (c *Client) ScanAddress(req ScanRequest) (*ScanResponse, error)
type ScanRequest ¶
type ScanRequest struct {
Chain string
Address string
StartTimeUnixMs int64
EndTimeUnixMs int64
Cursor string
Limit int
Order string // "asc" or "desc"; empty == server default ("desc")
FetchPayloads bool
}
ScanRequest is the address-scan input. Time bounds are optional (zero = unbounded).
type ScanResponse ¶
type ScanResponse struct {
Results []ScanResult `json:"results"`
NextCursor string `json:"nextCursor,omitempty"`
}
ScanResponse mirrors the server's response. Payload is the raw aggregated BQ rows (JSON array) — see internal/adapters/bq for the row shape.
type ScanResult ¶
Click to show internal directories.
Click to hide internal directories.