BlockParams
Iterable
<string
>Parameter | Type | Description |
---|---|---|
block | BlockParams | The block parameters. |
provider | Provider | The provider. |
Block
Property | Modifier | Type | Description |
---|---|---|---|
provider | readonly | Provider | The provider connected to the block used to fetch additional details if necessary. |
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.
Parameter | Type | Description |
---|---|---|
indexOrHash | string | number | The index or hash of the transaction. |
TransactionResponse
The transaction.
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.
this is MinedBlock
True if the block has been mined.
BlockParams
The JSON-friendly value.