GetBlockApi
Methods
getBlock()
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
rewards: readonly Reward[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
signatures: readonly Base58EncodedBytes[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
rewards: readonly Reward[];
}> & Readonly<{
signatures: readonly Base58EncodedBytes[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
transactions: readonly TTransaction[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
transactions: readonly TTransaction[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
rewards: readonly Reward[];
}> & Readonly<{
transactions: readonly TTransaction[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
rewards: readonly Reward[];
}> & Readonly<{
transactions: readonly TTransaction[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
transactions: readonly TTransaction[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
transactions: readonly TTransaction[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
rewards: readonly Reward[];
}> & Readonly<{
transactions: readonly TTransaction[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
rewards: readonly Reward[];
}> & Readonly<{
transactions: readonly TTransaction[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
transactions: readonly TTransaction[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
transactions: readonly TTransaction[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
rewards: readonly Reward[];
}> & Readonly<{
transactions: readonly TTransaction[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
rewards: readonly Reward[];
}> & Readonly<{
transactions: readonly TTransaction[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
transactions: readonly TTransaction[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
transactions: readonly TTransaction[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
rewards: readonly Reward[];
}> & Readonly<{
transactions: readonly TTransaction[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
rewards: readonly Reward[];
}> & Readonly<{
transactions: readonly TTransaction[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
transactions: readonly TTransaction[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
transactions: readonly TTransaction[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
rewards: readonly Reward[];
}> & Readonly<{
transactions: readonly TTransaction[];
}>
| null
See
https://solana.com/docs/rpc/http/getblock
Call Signature
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
| Readonly<{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
}> & Readonly<{
rewards: readonly Reward[];
}> & Readonly<{
transactions: readonly TTransaction[];
}>
| null