@circle-fin/usdckit - v0.22.0
Preparing search index...
providers/solana
getBlock
Function getBlock
getBlock
(
client
:
ExtendedViemClient
,
...
params
:
[
slot
:
bigint
,
config
?:
Omit
<
Readonly
<
{
commitment
?:
Omit
<
Commitment
,
"processed"
>
;
encoding
?:
GetBlockEncoding
;
maxSupportedTransactionVersion
?:
0
;
rewards
?:
boolean
;
transactionDetails
?:
GetBlockTransactionDetailsMode
;
}
,
>
,
"maxSupportedTransactionVersion"
,
>
&
Readonly
<
{
encoding
?:
"json"
;
transactionDetails
?:
"full"
}
>
,
]
,
)
:
Promise
<
|
null
|
Readonly
<
{
blockhash
:
Blockhash
;
blockHeight
:
bigint
;
blockTime
:
UnixTimestamp
;
parentSlot
:
bigint
;
previousBlockhash
:
Blockhash
;
}
,
>
&
Readonly
<
{
rewards
:
readonly
Reward
[]
}
>
&
Readonly
<
{
transactions
:
readonly
Readonly
<
{
meta
:
null
|
Readonly
<
(...)
>
&
Readonly
<
(...)
>
&
Readonly
<
(...)
>
;
transaction
:
TransactionForFullTransactionJsonBase
;
}
,
>
[]
;
}
,
>
,
>
Gets a block
Parameters
client
:
ExtendedViemClient
Extended Viem client
...
params
:
[
slot
:
bigint
,
config
?:
Omit
<
Readonly
<
{
commitment
?:
Omit
<
Commitment
,
"processed"
>
;
encoding
?:
GetBlockEncoding
;
maxSupportedTransactionVersion
?:
0
;
rewards
?:
boolean
;
transactionDetails
?:
GetBlockTransactionDetailsMode
;
}
,
>
,
"maxSupportedTransactionVersion"
,
>
&
Readonly
<
{
encoding
?:
"json"
;
transactionDetails
?:
"full"
}
>
,
]
Parameters for sol_getBlock
Returns
Promise
<
|
null
|
Readonly
<
{
blockhash
:
Blockhash
;
blockHeight
:
bigint
;
blockTime
:
UnixTimestamp
;
parentSlot
:
bigint
;
previousBlockhash
:
Blockhash
;
}
,
>
&
Readonly
<
{
rewards
:
readonly
Reward
[]
}
>
&
Readonly
<
{
transactions
:
readonly
Readonly
<
{
meta
:
null
|
Readonly
<
(...)
>
&
Readonly
<
(...)
>
&
Readonly
<
(...)
>
;
transaction
:
TransactionForFullTransactionJsonBase
;
}
,
>
[]
;
}
,
>
,
>
Promise resolving to block information
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
@circle-fin/usdckit - v0.22.0
Loading...
Gets a block