Versions in this module Expand all Collapse all v2 v2.0.3 Dec 26, 2022 Changes in this version + type CellCollectionIterator interface + CurrentItem func() (*indexer.LiveCell, error) + HasNext func() bool + Iterator func() (CellCollectionIterator, error) + Next func() error + type CellIterator interface + HasNext func() bool + Next func() *types.TransactionInput + func NewLiveCellIterator(client rpc.Client, key *indexer.SearchKey) CellIterator + func NewLiveCellIteratorByLightClient(client lightclient.Client, key *indexer.SearchKey) CellIterator + func NewLiveCellIteratorByLightClientFromAddress(client lightclient.Client, addr string) (CellIterator, error) + func NewLiveCellIteratorFromAddress(client rpc.Client, addr string) (CellIterator, error) + type ChangeOutputIndex struct + Value int + type CkbLiveCellGetter struct + Client rpc.Client + Context context.Context + func (c *CkbLiveCellGetter) GetCells(searchKey *indexer.SearchKey, order indexer.SearchOrder, limit uint64, ...) (*indexer.LiveCells, error) + type LightClientLiveCellGetter struct + Client lightclient.Client + Context context.Context + func (c *LightClientLiveCellGetter) GetCells(searchKey *indexer.SearchKey, order indexer.SearchOrder, limit uint64, ...) (*indexer.LiveCells, error) + type LiveCellCollectResult struct + Capacity uint64 + LiveCells []*indexer.LiveCell + Options map[string]interface{} + type LiveCellCollector struct + Client rpc.Client + EmptyData bool + LastCursor string + Limit uint64 + SearchKey *indexer.SearchKey + SearchOrder indexer.SearchOrder + TypeScript *types.Script + func NewLiveCellCollector(client rpc.Client, searchKey *indexer.SearchKey, ...) *LiveCellCollector + func (c *LiveCellCollector) CurrentItem() (*indexer.LiveCell, error) + func (c *LiveCellCollector) HasNext() bool + func (c *LiveCellCollector) Iterator() (CellCollectionIterator, error) + func (c *LiveCellCollector) Next() error + type LiveCellIterator struct + Limit uint64 + LiveCellGetter LiveCellsGetter + SearchKey *indexer.SearchKey + SearchOrder indexer.SearchOrder + func (r *LiveCellIterator) HasNext() bool + func (r *LiveCellIterator) Next() *types.TransactionInput + type LiveCellsGetter interface + GetCells func(searchKey *indexer.SearchKey, order indexer.SearchOrder, limit uint64, ...) (*indexer.LiveCells, error) + type OffChainInputCollector struct + Client rpc.Client + func NewOffChainInputCollector(Client rpc.Client) *OffChainInputCollector + func (c *OffChainInputCollector) ApplyOffChainTransaction(tipBlockNumber uint64, transaction types.Transaction) + type OffChainInputIterator struct + Collector *OffChainInputCollector + ConsumeOffChainCellsFirstly bool + Iterator *LiveCellIterator + func NewOffChainInputIterator(iterator CellIterator, collector *OffChainInputCollector, ...) *OffChainInputIterator + func NewOffChainInputIteratorFromAddress(client rpc.Client, addr string, collector *OffChainInputCollector, ...) (*OffChainInputIterator, error) + func (r *OffChainInputIterator) GetLiveCells(searchKey *indexer.SearchKey, order indexer.SearchOrder, limit uint64, ...) (*indexer.LiveCells, error) + func (r *OffChainInputIterator) HasNext() bool + func (r *OffChainInputIterator) Next() *types.TransactionInput + type OutPointWithBlockNumber struct + type ScriptHandler interface + BuildTransaction func(builder TransactionBuilder, group *transaction.ScriptGroup, ...) (bool, error) + type TransactionBuilder interface + AddCellDep func(cellDep *types.CellDep) int + AddHeaderDep func(headerDep types.Hash) int + AddInput func(input *types.CellInput) int + AddOutput func(output *types.CellOutput, data []byte) int + AddScriptGroup func(group *transaction.ScriptGroup) int + Build func(contexts ...interface{}) (*transaction.TransactionWithScriptGroups, error) + SetOutputData func(index uint, data []byte) error + SetSince func(index uint, since uint64) error + SetVersion func(version uint32) + SetWitness func(index uint, witnessType types.WitnessType, data []byte) error + type TransactionInputWithBlockNumber struct