Preparing search index...
The search index is not available
Lumos
Lumos
@ckb-lumos/ckb-indexer
TransactionCollector
Class TransactionCollector
Hierarchy
indexer
.
TransactionCollector
TransactionCollector
Index
Constructors
constructor
Properties
CKBRpc
Url
filter
Options
from
Block
include
Status
indexer
lock
options?
order
queries
rpc
skip
skip
Missing
to
Block
type
Methods
collect
count
fetch
Indexer
Transaction
filter
By
Io
Type
filter
By
Type
Io
Type
And
Lock
Io
Type
filter
Transaction
get
Resolved
Cell
get
Resolved
Transaction
Request
Payload
get
Transaction
By
Lock
And
Type
Independent
get
Transaction
Hashes
get
Transaction
List
From
Rpc
get
Transactions
is
Cell
Script
Args
Valid
is
Lock
Args
Len
Matched
as
Base
Transaction
Collector
Constructors
constructor
new
Transaction
Collector
(
indexer
,
queries
,
CKBRpcUrl
,
options
?
)
:
TransactionCollector
Parameters
indexer
:
Indexer
queries
:
CKBIndexerQueryOptions
CKBRpcUrl
:
string
Optional
options
:
TransactionCollectorOptions
Returns
TransactionCollector
Properties
CKBRpc
Url
CKBRpc
Url
:
string
filter
Options
filter
Options
:
TransactionCollectorOptions
from
Block
from
Block
:
undefined
|
string
include
Status
include
Status
:
boolean
indexer
indexer
:
Indexer
lock
lock
:
undefined
|
ScriptWrapper
Optional
options
options
?:
TransactionCollectorOptions
order
order
:
"desc"
|
"asc"
queries
queries
:
CKBIndexerQueryOptions
rpc
rpc
:
any
skip
skip
:
undefined
|
number
skip
Missing
skip
Missing
:
boolean
to
Block
to
Block
:
undefined
|
string
type
type
:
undefined
|
"empty"
|
Script
|
ScriptWrapper
Methods
collect
collect
(
)
:
AsyncGenerator
<
Transaction
|
TransactionWithStatus
<
Transaction
>
,
undefined
,
unknown
>
Returns
AsyncGenerator
<
Transaction
|
TransactionWithStatus
<
Transaction
>
,
undefined
,
unknown
>
count
count
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
fetch
Indexer
Transaction
fetch
Indexer
Transaction
(
queries
,
lastCursor
?
)
:
Promise
<
IndexerTransactionList
<
false
>
>
Parameters
queries
:
CKBIndexerQueryOptions
Optional
lastCursor
:
string
Returns
Promise
<
IndexerTransactionList
<
false
>
>
Private
filter
By
Io
Type
filter
By
Io
Type
(
inputResult
,
ioType
)
:
UngroupedIndexerTransaction
[]
Parameters
inputResult
:
UngroupedIndexerTransaction
[]
ioType
:
IOType
Returns
UngroupedIndexerTransaction
[]
Private
filter
By
Type
Io
Type
And
Lock
Io
Type
filter
By
Type
Io
Type
And
Lock
Io
Type
(
inputResult
,
queries
)
:
UngroupedIndexerTransaction
[]
Parameters
inputResult
:
UngroupedIndexerTransaction
[]
queries
:
CKBIndexerQueryOptions
Returns
UngroupedIndexerTransaction
[]
Private
filter
Transaction
filter
Transaction
(
unresolvedTransactionList
,
resolvedTransactionList
,
indexerTransactionList
)
:
TransactionWithStatus
<
Transaction
>
[]
Parameters
unresolvedTransactionList
:
TransactionWithStatus
<
Transaction
>
[]
resolvedTransactionList
:
TransactionWithStatus
<
Transaction
>
[]
indexerTransactionList
:
IndexerTransactionList
<
false
>
Returns
TransactionWithStatus
<
Transaction
>
[]
get
Resolved
Cell
get
Resolved
Cell
(
unresolvedTransaction
,
resolvedTransactionList
,
indexerTransaction
)
:
Output
Parameters
unresolvedTransaction
:
TransactionWithStatus
<
Transaction
>
resolvedTransactionList
:
TransactionWithStatus
<
Transaction
>
[]
indexerTransaction
:
UngroupedIndexerTransaction
Returns
Output
get
Resolved
Transaction
Request
Payload
get
Resolved
Transaction
Request
Payload
(
unresolvedTransactionList
,
indexerTransactionList
)
:
string
[]
Parameters
unresolvedTransactionList
:
TransactionWithStatus
<
Transaction
>
[]
indexerTransactionList
:
IndexerTransactionList
<
false
>
Returns
string
[]
Private
get
Transaction
By
Lock
And
Type
Independent
get
Transaction
By
Lock
And
Type
Independent
(
searchKeyFilter
)
:
Promise
<
IndexerTransactionList
<
false
>
>
Parameters
searchKeyFilter
:
SearchKeyFilter
Returns
Promise
<
IndexerTransactionList
<
false
>
>
get
Transaction
Hashes
get
Transaction
Hashes
(
)
:
Promise
<
string
[]
>
Returns
Promise
<
string
[]
>
Private
get
Transaction
List
From
Rpc
get
Transaction
List
From
Rpc
(
indexerTransactionList
)
:
Promise
<
TransactionWithStatus
<
Transaction
>
[]
>
Parameters
indexerTransactionList
:
IndexerTransactionList
<
false
>
Returns
Promise
<
TransactionWithStatus
<
Transaction
>
[]
>
get
Transactions
get
Transactions
(
lastCursor
?
)
:
Promise
<
GetTransactionDetailResult
>
Parameters
Optional
lastCursor
:
string
Returns
Promise
<
GetTransactionDetailResult
>
Private
is
Cell
Script
Args
Valid
is
Cell
Script
Args
Valid
(
targetCell
)
:
boolean
Parameters
targetCell
:
Output
Returns
boolean
Private
is
Lock
Args
Len
Matched
is
Lock
Args
Len
Matched
(
args
,
argsLen
?
)
:
boolean
Parameters
args
:
undefined
|
string
Optional
argsLen
:
number
|
"any"
Returns
boolean
Static
as
Base
Transaction
Collector
as
Base
Transaction
Collector
(
CKBRpcUrl
)
:
typeof
indexer
.
TransactionCollector
Parameters
CKBRpcUrl
:
string
Returns
typeof
indexer
.
TransactionCollector
Deprecated
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
CKBRpc
Url
filter
Options
from
Block
include
Status
indexer
lock
options
order
queries
rpc
skip
skip
Missing
to
Block
type
collect
count
fetch
Indexer
Transaction
filter
By
Io
Type
filter
By
Type
Io
Type
And
Lock
Io
Type
filter
Transaction
get
Resolved
Cell
get
Resolved
Transaction
Request
Payload
get
Transaction
By
Lock
And
Type
Independent
get
Transaction
Hashes
get
Transaction
List
From
Rpc
get
Transactions
is
Cell
Script
Args
Valid
is
Lock
Args
Len
Matched
as
Base
Transaction
Collector
Lumos
@ckb-
lumos/base
@ckb-
lumos/bi
@ckb-
lumos/ckb-
indexer
Cell
Collector
Indexer
RPC
Terminable
Cell
Adapter
Transaction
Collector
@ckb-
lumos/codec
@ckb-
lumos/common-
scripts
@ckb-
lumos/config-
manager
@ckb-
lumos/debugger
@ckb-
lumos/experiment-
tx-
assembler
@ckb-
lumos/hd
@ckb-
lumos/hd-
cache
@ckb-
lumos/helpers
@ckb-
lumos/light-
client
@ckb-
lumos/lumos
@ckb-
lumos/rpc
@ckb-
lumos/runner
@ckb-
lumos/transaction-
manager
@ckb-
lumos/utils
Generated using
TypeDoc
Deprecated