Preparing search index...
The search index is not available
Aleph Indexer Framework for Solana/Ethereum/BSC
Aleph Indexer Framework for Solana/Ethereum/BSC
Indexer Framework
ParserMsMain
Class ParserMsMain<RE, PE>
Type Parameters
RE
extends
RawEntity
=
RawEntity
PE
extends
ParsedEntity
<
unknown
>
=
ParsedEntity
<
unknown
>
Hierarchy
MsMainWithEvents
ParserMsMain
Implements
ParserMsI
<
RE
,
PE
>
Index
Constructors
constructor
Properties
blockchains
broker
ms
Id
Methods
broadcast
To
Clients
emit
Parsed
Entities
emit
To
Clients
get
Blockchain
Instance
get
Client
Event
Groups
group
Entities
on
Entities
parse
Account
State
parse
Entity
parse
Transaction
Constructors
constructor
new
Parser
Ms
Main
<
RE
,
PE
>
(
broker
:
ServiceBroker
, blockchains
:
Record
<
Blockchain
,
BlockchainParserI
<
RE
,
PE
>
>
)
:
ParserMsMain
<
RE
,
PE
>
Type Parameters
RE
extends
RawEntity
=
RawEntity
PE
extends
ParsedEntity
<
unknown
>
=
ParsedEntity
<
unknown
>
Parameters
broker:
ServiceBroker
blockchains:
Record
<
Blockchain
,
BlockchainParserI
<
RE
,
PE
>
>
Returns
ParserMsMain
<
RE
,
PE
>
Properties
Protected
blockchains
blockchains
:
Record
<
Blockchain
,
BlockchainParserI
<
RE
,
PE
>
>
Protected
broker
broker
:
ServiceBroker
Protected
ms
Id
ms
Id
:
MsIds
The service type to emit events for.
Methods
broadcast
To
Clients
broadcast
To
Clients
(
event
:
string
, data
?:
any
)
:
Promise
<
void
>
Parameters
event:
string
Optional
data:
any
Returns
Promise
<
void
>
Protected
emit
Parsed
Entities
emit
Parsed
Entities
(
type
:
IndexableEntityType
, blockchainId
:
Blockchain
, msgs
:
ParsedEntityMsg
<
RE
|
PE
>
[]
)
:
Promise
<
void
>
Parameters
type:
IndexableEntityType
blockchainId:
Blockchain
msgs:
ParsedEntityMsg
<
RE
|
PE
>
[]
Returns
Promise
<
void
>
emit
To
Clients
emit
To
Clients
(
event
:
string
, data
?:
any
, opts
?:
{
group
?:
string
;
partitionKey
?:
string
;
}
)
:
Promise
<
void
>
Parameters
event:
string
Optional
data:
any
Optional
opts:
{
group
?:
string
;
partitionKey
?:
string
;
}
Optional
group
?:
string
Optional
partition
Key
?:
string
Returns
Promise
<
void
>
Protected
get
Blockchain
Instance
get
Blockchain
Instance
(
blockchainId
:
Blockchain
)
:
BlockchainParserI
<
RE
,
PE
>
Parameters
blockchainId:
Blockchain
Returns
BlockchainParserI
<
RE
,
PE
>
get
Client
Event
Groups
get
Client
Event
Groups
(
)
:
string
[]
Returns
string
[]
Protected
group
Entities
group
Entities
(
msgs
:
ParsedEntityMsg
<
RE
|
PE
>
[]
)
:
[
Record
<
string
,
(
RE
|
PE
)
[]
>
,
(
RE
|
PE
)
[]
]
Parameters
msgs:
ParsedEntityMsg
<
RE
|
PE
>
[]
Returns
[
Record
<
string
,
(
RE
|
PE
)
[]
>
,
(
RE
|
PE
)
[]
]
on
Entities
on
Entities
(
type
:
IndexableEntityType
, blockchainId
:
Blockchain
, chunk
:
RawEntityMsg
<
RE
>
[]
)
:
Promise
<
void
>
Parameters
type:
IndexableEntityType
blockchainId:
Blockchain
chunk:
RawEntityMsg
<
RE
>
[]
Returns
Promise
<
void
>
parse
Account
State
parse
Account
State
(
args
:
any
)
:
Promise
<
RE
|
PE
>
Parameters
args:
any
Returns
Promise
<
RE
|
PE
>
parse
Entity
parse
Entity
(
args
:
ParseEntityRequestArgs
<
RE
>
)
:
Promise
<
RE
|
PE
>
Parameters
args:
ParseEntityRequestArgs
<
RE
>
Returns
Promise
<
RE
|
PE
>
parse
Transaction
parse
Transaction
(
args
:
ParseEntityRequestArgs
<
RE
>
)
:
Promise
<
RE
|
PE
>
Parameters
args:
ParseEntityRequestArgs
<
RE
>
Returns
Promise
<
RE
|
PE
>
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
Modules
Aleph
Indexer
Framework for
Solana/
Ethereum/BSC
Bsc
Indexer
Framework
Ethereum
Indexer
Framework
Indexer
Core
Utils
Indexer
Framework
Solana
Indexer
Framework
buffer
Layouts
Parser
Ms
Main
constructor
blockchains
broker
ms
Id
broadcast
To
Clients
emit
Parsed
Entities
emit
To
Clients
get
Blockchain
Instance
get
Client
Event
Groups
group
Entities
on
Entities
parse
Account
State
parse
Entity
parse
Transaction
Generated using
TypeDoc
The service type to emit events for.