Extends
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
address | readonly | string | The address of the contract that emitted this log. | Log.address |
blockHash | readonly | string | The block hash of the block this log occurred in. Use the Log.getBlock to get the Block. | Log.blockHash |
blockNumber | readonly | number | The block number of the block this log occurred in. It is preferred to use the Block.hash | Block.hash when fetching the related Block, since in the case of an orphaned block, the block at that height may have changed. | Log.blockNumber |
data | readonly | string | The data included in this log when it was emitted. | Log.data |
error | readonly | Error | The error encounted when trying to decode the log. | - |
index | readonly | number | The index within the block this log occurred at. This is generally not useful to developers, but can be used with the various roots to proof inclusion within a block. | Log.index |
provider | readonly | Provider | The provider connected to the log used to fetch additional details if necessary. | Log.provider |
removed | readonly | boolean | If the Log represents a block that was removed due to an orphaned block, this will be true. This can only happen within an orphan event listener. | Log.removed |
topics | readonly | readonly string[] | The indexed topics included in this log when it was emitted. All topics are included in the bloom filters, so they can be efficiently filtered using the Provider.getLogs method. | Log.topics |
transactionHash | readonly | string | The transaction hash of the transaction this log occurred in. Use the Log.getTransaction to get the **TransactionResponse. | Log.transactionHash |
transactionIndex | readonly | number | The index within the transaction of this log. | Log.transactionIndex |
Methods
getBlock()
Parameters
| Parameter | Type | Description |
|---|---|---|
shard | Shard | The shard to fetch the block from. |
Returns
Promise<Block>
A promise resolving to the block.
Inherited from
Log.getBlock
Source
providers/provider.ts:1089getTransaction()
Returns
Promise<TransactionResponse>
A promise resolving to the transaction.
Inherited from
Log.getTransaction
Source
providers/provider.ts:1100getTransactionReceipt()
Returns
Promise<TransactionReceipt>
A promise resolving to the transaction receipt.
Inherited from
Log.getTransactionReceipt
Source
providers/provider.ts:1111toJSON()
Returns
any
Inherited from
Log.toJSON
