Middleware
Handles all Middleware related functionality
Hierarchy
Middleware
Index
Methods
Methods
getEventByIndexedArgs
▸ getEventByIndexedArgs(opts
: object): Promise‹EventIdentifier | null›
Defined in src/Middleware.ts:34
Retrieve a single event by any of its indexed arguments. Can be filtered using parameters
note
uses the middleware
Parameters:
▪ opts: object
Name | Type | Description |
---|---|---|
| undefined | string | event parameter value to filter by in position 0 |
| undefined | string | event parameter value to filter by in position 1 |
| undefined | string | event parameter value to filter by in position 2 |
| EventId | type of the event to fetch |
| ModuleId | type of the module to fetch |
Returns: Promise‹EventIdentifier | null›
getEventsByIndexedArgs
▸ getEventsByIndexedArgs(opts
: object): Promise‹EventIdentifier[] | null›
Defined in src/Middleware.ts:73
Retrieve a list of events. Can be filtered using parameters
note
uses the middleware
Parameters:
▪ opts: object
Name | Type | Description |
---|---|---|
| undefined | string | event parameter value to filter by in position 0 |
| undefined | string | event parameter value to filter by in position 1 |
| undefined | string | event parameter value to filter by in position 2 |
| EventId | type of the event to fetch |
| ModuleId | type of the module to fetch |
| undefined | number | page size |
| undefined | number | page offset |
Returns: Promise‹EventIdentifier[] | null›
getTransactionByHash
▸ getTransactionByHash(opts
: object): Promise‹ExtrinsicData | null›
Defined in src/Middleware.ts:117
Retrieve a transaction by hash
note
uses the middleware
Parameters:
▪ opts: object
Name | Type | Description |
---|---|---|
| string | hash of the transaction |
Returns: Promise‹ExtrinsicData | null›
Last updated