GetBlockApi
GetBlockApi =
object
Methods
getBlock()
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }> & Readonly <{ rewards : false ; transactionDetails : "none" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{rewards
: readonlyReward
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }> & Readonly <{ rewards? : true ; transactionDetails : "none" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ rewards
: readonly Reward
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{signatures
: readonlyBase58EncodedBytes
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }> & Readonly <{ rewards : false ; transactionDetails : "signatures" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ signatures
: readonly Base58EncodedBytes
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{rewards
: readonlyReward
[]; }> &Readonly
<{signatures
: readonlyBase58EncodedBytes
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }> & Readonly <{ rewards? : true ; transactionDetails : "signatures" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ rewards
: readonly Reward
[]; }> & Readonly
<{ signatures
: readonly Base58EncodedBytes
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{transactions
: readonlyTTransaction
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }> & Readonly <{ maxSupportedTransactionVersion : GetBlockMaxSupportedTransactionVersion ; rewards : false ; transactionDetails : "accounts" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ transactions
: readonly TTransaction
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{transactions
: readonlyTTransaction
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Omit <Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }>, "maxSupportedTransactionVersion" > & Readonly <{ rewards : false ; transactionDetails : "accounts" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ transactions
: readonly TTransaction
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{rewards
: readonlyReward
[]; }> &Readonly
<{transactions
: readonlyTTransaction
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }> & Readonly <{ maxSupportedTransactionVersion : GetBlockMaxSupportedTransactionVersion ; rewards? : true ; transactionDetails : "accounts" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ rewards
: readonly Reward
[]; }> & Readonly
<{ transactions
: readonly TTransaction
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{rewards
: readonlyReward
[]; }> &Readonly
<{transactions
: readonlyTTransaction
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Omit <Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }>, "maxSupportedTransactionVersion" > & Readonly <{ rewards? : true ; transactionDetails : "accounts" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ rewards
: readonly Reward
[]; }> & Readonly
<{ transactions
: readonly TTransaction
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{transactions
: readonlyTTransaction
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }> & Readonly <{ encoding : "base58" ; maxSupportedTransactionVersion : GetBlockMaxSupportedTransactionVersion ; rewards : false ; transactionDetails? : "full" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ transactions
: readonly TTransaction
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{transactions
: readonlyTTransaction
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Omit <Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }>, "maxSupportedTransactionVersion" > & Readonly <{ encoding : "base58" ; rewards : false ; transactionDetails? : "full" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ transactions
: readonly TTransaction
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{rewards
: readonlyReward
[]; }> &Readonly
<{transactions
: readonlyTTransaction
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }> & Readonly <{ encoding : "base58" ; maxSupportedTransactionVersion : GetBlockMaxSupportedTransactionVersion ; rewards? : true ; transactionDetails? : "full" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ rewards
: readonly Reward
[]; }> & Readonly
<{ transactions
: readonly TTransaction
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{rewards
: readonlyReward
[]; }> &Readonly
<{transactions
: readonlyTTransaction
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Omit <Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }>, "maxSupportedTransactionVersion" > & Readonly <{ encoding : "base58" ; rewards? : true ; transactionDetails? : "full" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ rewards
: readonly Reward
[]; }> & Readonly
<{ transactions
: readonly TTransaction
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{transactions
: readonlyTTransaction
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }> & Readonly <{ encoding : "base64" ; maxSupportedTransactionVersion : GetBlockMaxSupportedTransactionVersion ; rewards : false ; transactionDetails? : "full" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ transactions
: readonly TTransaction
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{transactions
: readonlyTTransaction
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Omit <Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }>, "maxSupportedTransactionVersion" > & Readonly <{ encoding : "base64" ; rewards : false ; transactionDetails? : "full" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ transactions
: readonly TTransaction
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{rewards
: readonlyReward
[]; }> &Readonly
<{transactions
: readonlyTTransaction
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }> & Readonly <{ encoding : "base64" ; maxSupportedTransactionVersion : GetBlockMaxSupportedTransactionVersion ; rewards? : true ; transactionDetails? : "full" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ rewards
: readonly Reward
[]; }> & Readonly
<{ transactions
: readonly TTransaction
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{rewards
: readonlyReward
[]; }> &Readonly
<{transactions
: readonlyTTransaction
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Omit <Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }>, "maxSupportedTransactionVersion" > & Readonly <{ encoding : "base64" ; rewards? : true ; transactionDetails? : "full" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ rewards
: readonly Reward
[]; }> & Readonly
<{ transactions
: readonly TTransaction
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{transactions
: readonlyTTransaction
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }> & Readonly <{ encoding : "jsonParsed" ; maxSupportedTransactionVersion : GetBlockMaxSupportedTransactionVersion ; rewards : false ; transactionDetails? : "full" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ transactions
: readonly TTransaction
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{transactions
: readonlyTTransaction
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Omit <Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }>, "maxSupportedTransactionVersion" > & Readonly <{ encoding : "jsonParsed" ; rewards : false ; transactionDetails? : "full" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ transactions
: readonly TTransaction
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{rewards
: readonlyReward
[]; }> &Readonly
<{transactions
: readonlyTTransaction
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }> & Readonly <{ encoding : "jsonParsed" ; maxSupportedTransactionVersion : GetBlockMaxSupportedTransactionVersion ; transactionDetails? : "full" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ rewards
: readonly Reward
[]; }> & Readonly
<{ transactions
: readonly TTransaction
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{rewards
: readonlyReward
[]; }> &Readonly
<{transactions
: readonlyTTransaction
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Omit <Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }>, "maxSupportedTransactionVersion" > & Readonly <{ encoding : "jsonParsed" ; rewards? : boolean ; transactionDetails? : "full" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ rewards
: readonly Reward
[]; }> & Readonly
<{ transactions
: readonly TTransaction
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{transactions
: readonlyTTransaction
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }> & Readonly <{ encoding? : "json" ; maxSupportedTransactionVersion : GetBlockMaxSupportedTransactionVersion ; rewards : false ; transactionDetails? : "full" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ transactions
: readonly TTransaction
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{transactions
: readonlyTTransaction
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Omit <Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }>, "maxSupportedTransactionVersion" > & Readonly <{ encoding? : "json" ; rewards : false ; transactionDetails? : "full" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ transactions
: readonly TTransaction
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{rewards
: readonlyReward
[]; }> &Readonly
<{transactions
: readonlyTTransaction
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config | Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }> & Readonly <{ encoding? : "json" ; maxSupportedTransactionVersion : GetBlockMaxSupportedTransactionVersion ; transactionDetails? : "full" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ rewards
: readonly Reward
[]; }> & Readonly
<{ transactions
: readonly TTransaction
[]; }>
See
https://solana.com/docs/rpc/http/getblock
Call Signature
getBlock(
slot
,config?
):null
|Readonly
<{blockhash
:Blockhash
;blockHeight
:bigint
;blockTime
:UnixTimestamp
;parentSlot
:Slot
;previousBlockhash
:Blockhash
; }> &Readonly
<{rewards
: readonlyReward
[]; }> &Readonly
<{transactions
: readonlyTTransaction
[]; }>
Returns identity and transaction information about a confirmed block in the ledger
Parameters
Parameter | Type |
---|---|
slot | bigint |
config? | Omit <Readonly <{ commitment? : Omit <Commitment , "processed" >; encoding? : GetBlockEncoding ; maxSupportedTransactionVersion? : GetBlockMaxSupportedTransactionVersion ; rewards? : boolean ; transactionDetails? : GetBlockTransactionDetailsMode ; }>, "maxSupportedTransactionVersion" > & Readonly <{ encoding? : "json" ; transactionDetails? : "full" ; }> |
Returns
null
| Readonly
<{ blockhash
: Blockhash
; blockHeight
: bigint
; blockTime
: UnixTimestamp
; parentSlot
: Slot
; previousBlockhash
: Blockhash
; }> & Readonly
<{ rewards
: readonly Reward
[]; }> & Readonly
<{ transactions
: readonly TTransaction
[]; }>