Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
provider | readonly | Provider | The provider connected to the block used to fetch additional details if necessary. | Block .provider |
null
| Date
The date this block was included at, or null if the timestamp is not available.
number
The number of transactions.
string
[]
The list of extended transaction hashes.
true
to prefetchTxs
into
getBlock.
ExternalTransactionResponse
[]
The list of prefetched extended transactions.
true
to prefetchTxs
into
getBlock.
TransactionResponse
[]
The list of prefetched transactions.
string
[]
The list of transaction hashes.
index
within this block.
Parameter | Type | Description |
---|---|---|
indexOrHash | string | number | The index or hash of the extended transaction. |
Promise
<ExternalTransactionResponse
>
A promise resolving to the extended transaction.
Block
.getExtTransaction
Parameter | Type | Description |
---|---|---|
indexOrHash | string | number | The index or hash of the transaction. |
TransactionResponse
The transaction.
Block
.getPrefetchedTransaction
index
within this block.
Parameter | Type | Description |
---|---|---|
indexOrHash | string | number | The index or hash of the transaction. |
Promise
<TransactionResponse
| ExternalTransactionResponse
>
A promise resolving to the transaction.
Block
.getTransaction
this is MinedBlock
True if the block has been mined.
Block
.isMined
BlockParams
The JSON-friendly value.
Block
.toJSON