Preparing search index...
The search index is not available
@sentio/sdk
@sentio/sdk
eth
GlobalProcessor
Class GlobalProcessor
Index
Constructors
constructor
Properties
block
Handlers
config
trace
Handlers
transaction
Handler
Methods
get
Chain
Id
on
Block
Interval
on
Interval
on
Time
Interval
on
Trace
on
Transaction
bind
Constructors
constructor
new
GlobalProcessor
(
config
:
Omit
<
BindOptions
,
"address"
>
)
:
GlobalProcessor
Parameters
config
:
Omit
<
BindOptions
,
"address"
>
Returns
GlobalProcessor
Properties
block
Handlers
blockHandlers
:
BlockHandler
[]
= []
config
config
:
BindInternalOptions
trace
Handlers
traceHandlers
:
TraceHandler
[]
= []
transaction
Handler
transactionHandler
:
TransactionHandler
[]
= []
Methods
get
Chain
Id
getChainId
()
:
EthChainId
Returns
EthChainId
on
Block
Interval
onBlockInterval
(
handler
:
(
block
:
RichBlock
,
ctx
:
GlobalContext
)
=>
PromiseOrVoid
,
blockInterval
?:
number
,
backfillBlockInterval
?:
number
,
fetchConfig
?:
Partial
<
EthFetchConfig
>
,
preprocessHandler
?:
(
block
:
RichBlock
,
ctx
:
GlobalContext
,
preprocessStore
:
{
[
k
:
string
]:
any
}
,
)
=>
Promise
<
PreprocessResult
>
,
)
:
this
Parameters
handler
:
(
block
:
RichBlock
,
ctx
:
GlobalContext
)
=>
PromiseOrVoid
blockInterval
:
number
= 250
backfillBlockInterval
:
number
= 1000
Optional
fetchConfig
:
Partial
<
EthFetchConfig
>
preprocessHandler
:
(
block
:
RichBlock
,
ctx
:
GlobalContext
,
preprocessStore
:
{
[
k
:
string
]:
any
}
,
)
=>
Promise
<
PreprocessResult
>
= defaultPreprocessHandler
Returns
this
on
Interval
onInterval
(
handler
:
(
block
:
RichBlock
,
ctx
:
GlobalContext
)
=>
PromiseOrVoid
,
timeInterval
:
undefined
|
HandleInterval
,
blockInterval
:
undefined
|
HandleInterval
,
fetchConfig
:
undefined
|
Partial
<
EthFetchConfig
>
,
preprocessHandler
?:
(
block
:
RichBlock
,
ctx
:
GlobalContext
,
preprocessStore
:
{
[
k
:
string
]:
any
}
,
)
=>
Promise
<
PreprocessResult
>
,
)
:
this
Parameters
handler
:
(
block
:
RichBlock
,
ctx
:
GlobalContext
)
=>
PromiseOrVoid
timeInterval
:
undefined
|
HandleInterval
blockInterval
:
undefined
|
HandleInterval
fetchConfig
:
undefined
|
Partial
<
EthFetchConfig
>
preprocessHandler
:
(
block
:
RichBlock
,
ctx
:
GlobalContext
,
preprocessStore
:
{
[
k
:
string
]:
any
}
,
)
=>
Promise
<
PreprocessResult
>
= defaultPreprocessHandler
Returns
this
on
Time
Interval
onTimeInterval
(
handler
:
(
block
:
RichBlock
,
ctx
:
GlobalContext
)
=>
PromiseOrVoid
,
timeIntervalInMinutes
?:
number
,
backfillTimeIntervalInMinutes
?:
number
,
fetchConfig
?:
Partial
<
EthFetchConfig
>
,
preprocessHandler
?:
(
block
:
RichBlock
,
ctx
:
GlobalContext
,
preprocessStore
:
{
[
k
:
string
]:
any
}
,
)
=>
Promise
<
PreprocessResult
>
,
)
:
this
Parameters
handler
:
(
block
:
RichBlock
,
ctx
:
GlobalContext
)
=>
PromiseOrVoid
timeIntervalInMinutes
:
number
= 60
backfillTimeIntervalInMinutes
:
number
= 240
Optional
fetchConfig
:
Partial
<
EthFetchConfig
>
preprocessHandler
:
(
block
:
RichBlock
,
ctx
:
GlobalContext
,
preprocessStore
:
{
[
k
:
string
]:
any
}
,
)
=>
Promise
<
PreprocessResult
>
= defaultPreprocessHandler
Returns
this
on
Trace
onTrace
(
signatures
:
string
|
string
[]
,
handler
:
(
trace
:
Trace
,
ctx
:
GlobalContext
)
=>
PromiseOrVoid
,
fetchConfig
?:
Partial
<
EthFetchConfig
>
,
preprocessHandler
?:
(
trace
:
Trace
,
ctx
:
GlobalContext
,
preprocessStore
:
{
[
k
:
string
]:
any
}
,
)
=>
Promise
<
PreprocessResult
>
,
)
:
this
Parameters
signatures
:
string
|
string
[]
handler
:
(
trace
:
Trace
,
ctx
:
GlobalContext
)
=>
PromiseOrVoid
Optional
fetchConfig
:
Partial
<
EthFetchConfig
>
preprocessHandler
:
(
trace
:
Trace
,
ctx
:
GlobalContext
,
preprocessStore
:
{
[
k
:
string
]:
any
}
,
)
=>
Promise
<
PreprocessResult
>
= defaultPreprocessHandler
Returns
this
on
Transaction
onTransaction
(
handler
:
(
transaction
:
TransactionResponseParams
,
ctx
:
GlobalContext
,
)
=>
PromiseOrVoid
,
fetchConfig
?:
Partial
<
EthFetchConfig
>
,
preprocessHandler
?:
(
transaction
:
TransactionResponseParams
,
ctx
:
GlobalContext
,
preprocessStore
:
{
[
k
:
string
]:
any
}
,
)
=>
Promise
<
PreprocessResult
>
,
)
:
this
Parameters
handler
:
(
transaction
:
TransactionResponseParams
,
ctx
:
GlobalContext
)
=>
PromiseOrVoid
Optional
fetchConfig
:
Partial
<
EthFetchConfig
>
preprocessHandler
:
(
transaction
:
TransactionResponseParams
,
ctx
:
GlobalContext
,
preprocessStore
:
{
[
k
:
string
]:
any
}
,
)
=>
Promise
<
PreprocessResult
>
= defaultPreprocessHandler
Returns
this
Static
bind
bind
(
config
:
Omit
<
BindOptions
,
"address"
>
)
:
GlobalProcessor
Parameters
config
:
Omit
<
BindOptions
,
"address"
>
Returns
GlobalProcessor
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
block
Handlers
config
trace
Handlers
transaction
Handler
Methods
get
Chain
Id
on
Block
Interval
on
Interval
on
Time
Interval
on
Trace
on
Transaction
bind
@sentio/sdk
Loading...