Documentation
¶
Index ¶
- type Batch
- type ChainTx
- type ChainWithExpiry
- type CommitmentTx
- type CommitmentTxLeavesResponse
- type ConnectorsResponse
- type ForfeitTxsResponse
- type GetTxHistoryRequestOption
- type GetVtxosRequestOption
- func (o *GetVtxosRequestOption) GetAddresses() []string
- func (o *GetVtxosRequestOption) GetOutpoints() []string
- func (o *GetVtxosRequestOption) GetSpendableOnly() bool
- func (o *GetVtxosRequestOption) GetSpentOnly() bool
- func (o *GetVtxosRequestOption) WithAddresses(addresses []string) error
- func (o *GetVtxosRequestOption) WithOutpoints(outpoints []Outpoint) error
- func (o *GetVtxosRequestOption) WithSpendableOnly(spendableOnly bool)
- func (o *GetVtxosRequestOption) WithSpentOnly(spentOnly bool)
- type Indexer
- type Outpoint
- type PageRequest
- type PageResponse
- type RequestOption
- type ScriptEvent
- type TxHistoryRecord
- type TxHistoryResponse
- type TxNode
- type TxType
- type VirtualTxsResponse
- type Vtxo
- type VtxoChainResponse
- type VtxoTreeLeavesResponse
- type VtxoTreeResponse
- type VtxosResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainWithExpiry ¶
type CommitmentTx ¶
type CommitmentTxLeavesResponse ¶
type CommitmentTxLeavesResponse struct {
Leaves []Outpoint
Page *PageResponse
}
type ConnectorsResponse ¶
type ConnectorsResponse struct {
Tree []TxNode
Page *PageResponse
}
type ForfeitTxsResponse ¶
type ForfeitTxsResponse struct {
Txids []string
Page *PageResponse
}
type GetTxHistoryRequestOption ¶
type GetTxHistoryRequestOption struct {
RequestOption
// contains filtered or unexported fields
}
func (*GetTxHistoryRequestOption) GetEndTime ¶
func (o *GetTxHistoryRequestOption) GetEndTime() time.Time
func (*GetTxHistoryRequestOption) GetStartTime ¶
func (o *GetTxHistoryRequestOption) GetStartTime() time.Time
func (*GetTxHistoryRequestOption) WithEndTime ¶
func (o *GetTxHistoryRequestOption) WithEndTime(endTime time.Time)
func (*GetTxHistoryRequestOption) WithStartTime ¶
func (o *GetTxHistoryRequestOption) WithStartTime(startTime time.Time)
type GetVtxosRequestOption ¶
type GetVtxosRequestOption struct {
RequestOption
// contains filtered or unexported fields
}
func (*GetVtxosRequestOption) GetAddresses ¶
func (o *GetVtxosRequestOption) GetAddresses() []string
func (*GetVtxosRequestOption) GetOutpoints ¶
func (o *GetVtxosRequestOption) GetOutpoints() []string
func (*GetVtxosRequestOption) GetSpendableOnly ¶
func (o *GetVtxosRequestOption) GetSpendableOnly() bool
func (*GetVtxosRequestOption) GetSpentOnly ¶
func (o *GetVtxosRequestOption) GetSpentOnly() bool
func (*GetVtxosRequestOption) WithAddresses ¶
func (o *GetVtxosRequestOption) WithAddresses(addresses []string) error
func (*GetVtxosRequestOption) WithOutpoints ¶
func (o *GetVtxosRequestOption) WithOutpoints(outpoints []Outpoint) error
func (*GetVtxosRequestOption) WithSpendableOnly ¶
func (o *GetVtxosRequestOption) WithSpendableOnly(spendableOnly bool)
func (*GetVtxosRequestOption) WithSpentOnly ¶
func (o *GetVtxosRequestOption) WithSpentOnly(spentOnly bool)
type Indexer ¶
type Indexer interface {
GetCommitmentTx(ctx context.Context, txid string) (*CommitmentTx, error)
GetCommitmentTxLeaves(ctx context.Context, txid string, opts ...RequestOption) (*CommitmentTxLeavesResponse, error)
GetVtxoTree(ctx context.Context, batchOutpoint Outpoint, opts ...RequestOption) (*VtxoTreeResponse, error)
GetVtxoTreeLeaves(ctx context.Context, batchOutpoint Outpoint, opts ...RequestOption) (*VtxoTreeLeavesResponse, error)
GetForfeitTxs(ctx context.Context, txid string, opts ...RequestOption) (*ForfeitTxsResponse, error)
GetConnectors(ctx context.Context, txid string, opts ...RequestOption) (*ConnectorsResponse, error)
GetVtxos(ctx context.Context, opts ...GetVtxosRequestOption) (*VtxosResponse, error)
GetTransactionHistory(ctx context.Context, address string, opts ...GetTxHistoryRequestOption) (*TxHistoryResponse, error)
GetVtxoChain(ctx context.Context, outpoint Outpoint, opts ...RequestOption) (*VtxoChainResponse, error)
GetVirtualTxs(ctx context.Context, txids []string, opts ...RequestOption) (*VirtualTxsResponse, error)
GetSweptCommitmentTx(ctx context.Context, txid string) ([]string, error)
SubscribeForScripts(ctx context.Context, subscriptionId string, scripts []string) (string, error)
UnsubscribeForScripts(ctx context.Context, subscriptionId string, scripts []string) error
GetSubscription(ctx context.Context, subscriptionId string) (<-chan *ScriptEvent, func(), error)
}
type PageRequest ¶
type PageResponse ¶
type RequestOption ¶
type RequestOption struct {
// contains filtered or unexported fields
}
func (*RequestOption) GetPage ¶
func (o *RequestOption) GetPage() *PageRequest
func (*RequestOption) WithPage ¶
func (o *RequestOption) WithPage(page *PageRequest)
type ScriptEvent ¶
type TxHistoryRecord ¶
type TxHistoryResponse ¶
type TxHistoryResponse struct {
History []TxHistoryRecord
Page *PageResponse
}
type VirtualTxsResponse ¶
type VirtualTxsResponse struct {
Txs []string
Page *PageResponse
}
type VtxoChainResponse ¶
type VtxoChainResponse struct {
Chain []ChainWithExpiry
Depth int32
RootCommitmentTxid string
Page *PageResponse
}
type VtxoTreeLeavesResponse ¶
type VtxoTreeLeavesResponse struct {
Leaves []Outpoint
Page *PageResponse
}
type VtxoTreeResponse ¶
type VtxoTreeResponse struct {
Tree []TxNode
Page *PageResponse
}
type VtxosResponse ¶
type VtxosResponse struct {
Vtxos []Vtxo
Page *PageResponse
}
Click to show internal directories.
Click to hide internal directories.