Middleware
Handles all Middleware related functionality
Hierarchy
Middleware
Index
Methods
Methods
getEventByIndexedArgs
▸ getEventByIndexedArgs(opts
: object): Promise‹EventIdentifier | null›
Defined in src/Middleware.ts:31
Retrieve a single event by any of its indexed arguments. Can be filtered using parameters
Parameters:
▪ opts: object
Name
Type
Description
eventArg0?
undefined | string
event value to filter in position 0
eventArg1?
undefined | string
event value to filter in position 1
eventArg2?
undefined | string
event value to filter in position 2
eventId
EventIdEnum
type of the event to fetch
moduleId
ModuleIdEnum
type of the module to fetch
Returns: Promise‹EventIdentifier | null›
getEventsByIndexedArgs
▸ getEventsByIndexedArgs(opts
: object): Promise‹EventIdentifier[] | null›
Defined in src/Middleware.ts:76
Retrieve a list of events. Can be filtered using parameters
Parameters:
▪ opts: object
Name
Type
Description
eventArg0?
undefined | string
event value to filter in position 0
eventArg1?
undefined | string
event value to filter in position 1
eventArg2?
undefined | string
event value to filter in position 2
eventId
EventIdEnum
type of the event to fetch
moduleId
ModuleIdEnum
type of the module to fetch
size?
undefined | number
page size
start?
undefined | number
page offset
Returns: Promise‹EventIdentifier[] | null›
getTransactionByHash
▸ getTransactionByHash(opts
: object): Promise‹ExtrinsicData | null›
Defined in src/Middleware.ts:123
Retrieve a transaction by hash
Parameters:
▪ opts: object
Name
Type
Description
txHash
string
hash of the transaction
Returns: Promise‹ExtrinsicData | null›
Last updated