Documentation ¶
Index ¶
Constants ¶
View Source
const ( ScriptTypeLock ScriptType = "lock" ScriptTypeType ScriptType = "type" SearchOrderAsc SearchOrder = "asc" SearchOrderDesc SearchOrder = "desc" IOTypeIn IoType = "input" IOTypeOut IoType = "output" )
View Source
const SearchLimit uint64 = 1000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CellsFilter ¶ added in v0.3.0
type Client ¶
type Client interface { // GetCells returns the live cells collection by the lock or type script. GetCells(ctx context.Context, searchKey *SearchKey, order SearchOrder, limit uint64, afterCursor string) (*LiveCells, error) // GetTransactions returns the transactions collection by the lock or type script. GetTransactions(ctx context.Context, searchKey *SearchKey, order SearchOrder, limit uint64, afterCursor string) (*Transactions, error) //GetTip returns the latest height processed by indexer GetTip(ctx context.Context) (*TipHeader, error) //GetCellsCapacity returns the live cells capacity by the lock or type script. GetCellsCapacity(ctx context.Context, searchKey *SearchKey) (*Capacity, error) // Close close client Close() }
type ScriptType ¶
type ScriptType string
type SearchKey ¶
type SearchKey struct { Script *types.Script `json:"script"` ScriptType ScriptType `json:"script_type"` ArgsLen uint `json:"args_len,omitempty"` Filter *CellsFilter `json:"filter,omitempty"` }
type SearchOrder ¶
type SearchOrder string
type Transaction ¶
type Transactions ¶
type Transactions struct { LastCursor string `json:"last_cursor"` Objects []*Transaction `json:"objects"` }
Click to show internal directories.
Click to hide internal directories.