GetBlockApi: { getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding?: GetBlockEncoding; maxSupportedTransactionVersion?: GetBlockMaxSupportedTransactionVersion; rewards: false; transactionDetails: "none"; }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, >; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding?: GetBlockEncoding; maxSupportedTransactionVersion?: GetBlockMaxSupportedTransactionVersion; rewards?: true; transactionDetails: "none"; }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ rewards: readonly Reward[] }>; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding?: GetBlockEncoding; maxSupportedTransactionVersion?: GetBlockMaxSupportedTransactionVersion; rewards: false; transactionDetails: "signatures"; }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ signatures: readonly Base58EncodedBytes[] }>; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding?: GetBlockEncoding; maxSupportedTransactionVersion?: GetBlockMaxSupportedTransactionVersion; rewards?: true; transactionDetails: "signatures"; }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ rewards: readonly Reward[] }> & Readonly< { signatures: readonly Base58EncodedBytes[] }, >; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding?: GetBlockEncoding; maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion; rewards: false; transactionDetails: "accounts"; }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ transactions: readonly TTransaction[] }>; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding?: GetBlockEncoding; rewards: false; transactionDetails: "accounts"; }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ transactions: readonly TTransaction[] }>; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding?: GetBlockEncoding; maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion; rewards?: true; transactionDetails: "accounts"; }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ rewards: readonly Reward[] }> & Readonly< { transactions: readonly TTransaction[] }, >; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding?: GetBlockEncoding; rewards?: true; transactionDetails: "accounts"; }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ rewards: readonly Reward[] }> & Readonly< { transactions: readonly TTransaction[] }, >; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding: "base58"; maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion; rewards: false; transactionDetails?: "full"; }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ transactions: readonly TTransaction[] }>; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding: "base58"; rewards: false; transactionDetails?: "full" }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ transactions: readonly TTransaction[] }>; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding: "base58"; maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion; rewards?: true; transactionDetails?: "full"; }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ rewards: readonly Reward[] }> & Readonly< { transactions: readonly TTransaction[] }, >; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding: "base58"; rewards?: true; transactionDetails?: "full" }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ rewards: readonly Reward[] }> & Readonly< { transactions: readonly TTransaction[] }, >; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding: "base64"; maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion; rewards: false; transactionDetails?: "full"; }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ transactions: readonly TTransaction[] }>; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding: "base64"; rewards: false; transactionDetails?: "full" }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ transactions: readonly TTransaction[] }>; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding: "base64"; maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion; rewards?: true; transactionDetails?: "full"; }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ rewards: readonly Reward[] }> & Readonly< { transactions: readonly TTransaction[] }, >; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding: "base64"; rewards?: true; transactionDetails?: "full" }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ rewards: readonly Reward[] }> & Readonly< { transactions: readonly TTransaction[] }, >; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding: "jsonParsed"; maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion; rewards: false; transactionDetails?: "full"; }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ transactions: readonly TTransaction[] }>; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding: "jsonParsed"; rewards: false; transactionDetails?: "full"; }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ transactions: readonly TTransaction[] }>; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding: "jsonParsed"; maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion; rewards?: boolean; transactionDetails?: "full"; }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ rewards: readonly Reward[] }> & Readonly< { transactions: readonly TTransaction[] }, >; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding: "jsonParsed"; rewards?: boolean; transactionDetails?: "full"; }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ rewards: readonly Reward[] }> & Readonly< { transactions: readonly TTransaction[] }, >; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding?: "json"; maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion; rewards: false; transactionDetails?: "full"; }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ transactions: readonly TTransaction[] }>; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding?: "json"; rewards: false; transactionDetails?: "full" }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ transactions: readonly TTransaction[] }>; getBlock( slot: bigint, config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding?: "json"; maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion; rewards?: boolean; transactionDetails?: "full"; }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ rewards: readonly Reward[] }> & Readonly< { transactions: readonly TTransaction[] }, >; getBlock( slot: bigint, config?: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly< { encoding?: "json"; rewards?: boolean; transactionDetails?: "full" }, >, ): | null | Readonly< { blockhash: Blockhash; blockHeight: bigint; blockTime: UnixTimestamp; parentSlot: Slot; previousBlockhash: Blockhash; }, > & Readonly<{ rewards: readonly Reward[] }> & Readonly< { transactions: readonly TTransaction[] }, >;} Type declaration
getBlock:function
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{
encoding?: GetBlockEncoding;
maxSupportedTransactionVersion?: GetBlockMaxSupportedTransactionVersion;
rewards: false;
transactionDetails: "none";
},
>,
): | null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> Returns
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
>
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{
encoding?: GetBlockEncoding;
maxSupportedTransactionVersion?: GetBlockMaxSupportedTransactionVersion;
rewards?: true;
transactionDetails: "none";
},
>,
): | null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ rewards: readonly Reward[] }> Returns
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ rewards: readonly Reward[] }>
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{
encoding?: GetBlockEncoding;
maxSupportedTransactionVersion?: GetBlockMaxSupportedTransactionVersion;
rewards: false;
transactionDetails: "signatures";
},
>,
): | null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ signatures: readonly Base58EncodedBytes[] }> - getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{
encoding?: GetBlockEncoding;
maxSupportedTransactionVersion?: GetBlockMaxSupportedTransactionVersion;
rewards?: true;
transactionDetails: "signatures";
},
>,
): | null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ rewards: readonly Reward[] }> & Readonly<
{ signatures: readonly Base58EncodedBytes[] },
> Returns
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ rewards: readonly Reward[] }> & Readonly<
{ signatures: readonly Base58EncodedBytes[] },
>
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{
encoding?: GetBlockEncoding;
maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion;
rewards: false;
transactionDetails: "accounts";
},
>,
): | null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ transactions: readonly TTransaction[] }> Returns
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ transactions: readonly TTransaction[] }>
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{
encoding?: GetBlockEncoding;
rewards: false;
transactionDetails: "accounts";
},
>,
): | null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ transactions: readonly TTransaction[] }> Returns
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ transactions: readonly TTransaction[] }>
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{
encoding?: GetBlockEncoding;
maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion;
rewards?: true;
transactionDetails: "accounts";
},
>,
): | null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ rewards: readonly Reward[] }> & Readonly<
{ transactions: readonly TTransaction[] },
> Returns
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ rewards: readonly Reward[] }> & Readonly<
{ transactions: readonly TTransaction[] },
>
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{
encoding?: GetBlockEncoding;
rewards?: true;
transactionDetails: "accounts";
},
>,
): | null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ rewards: readonly Reward[] }> & Readonly<
{ transactions: readonly TTransaction[] },
> Returns
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ rewards: readonly Reward[] }> & Readonly<
{ transactions: readonly TTransaction[] },
>
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{
encoding: "base58";
maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion;
rewards: false;
transactionDetails?: "full";
},
>,
): | null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ transactions: readonly TTransaction[] }> Returns
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ transactions: readonly TTransaction[] }>
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{ encoding: "base58"; rewards: false; transactionDetails?: "full" },
>,
):
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ transactions: readonly TTransaction[] }> Parameters
- slot: bigint
- config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{ encoding: "base58"; rewards: false; transactionDetails?: "full" },
>
Returns
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ transactions: readonly TTransaction[] }>
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{
encoding: "base58";
maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion;
rewards?: true;
transactionDetails?: "full";
},
>,
): | null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ rewards: readonly Reward[] }> & Readonly<
{ transactions: readonly TTransaction[] },
> Returns
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ rewards: readonly Reward[] }> & Readonly<
{ transactions: readonly TTransaction[] },
>
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{ encoding: "base58"; rewards?: true; transactionDetails?: "full" },
>,
):
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ rewards: readonly Reward[] }> & Readonly<
{ transactions: readonly TTransaction[] },
> Parameters
- slot: bigint
- config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & 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[] },
>
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{
encoding: "base64";
maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion;
rewards: false;
transactionDetails?: "full";
},
>,
): | null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ transactions: readonly TTransaction[] }> Returns
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ transactions: readonly TTransaction[] }>
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{ encoding: "base64"; rewards: false; transactionDetails?: "full" },
>,
):
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ transactions: readonly TTransaction[] }> Parameters
- slot: bigint
- config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{ encoding: "base64"; rewards: false; transactionDetails?: "full" },
>
Returns
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ transactions: readonly TTransaction[] }>
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{
encoding: "base64";
maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion;
rewards?: true;
transactionDetails?: "full";
},
>,
): | null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ rewards: readonly Reward[] }> & Readonly<
{ transactions: readonly TTransaction[] },
> Returns
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ rewards: readonly Reward[] }> & Readonly<
{ transactions: readonly TTransaction[] },
>
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{ encoding: "base64"; rewards?: true; transactionDetails?: "full" },
>,
):
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ rewards: readonly Reward[] }> & Readonly<
{ transactions: readonly TTransaction[] },
> Parameters
- slot: bigint
- config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & 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[] },
>
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{
encoding: "jsonParsed";
maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion;
rewards: false;
transactionDetails?: "full";
},
>,
): | null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ transactions: readonly TTransaction[] }> Returns
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ transactions: readonly TTransaction[] }>
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{ encoding: "jsonParsed"; rewards: false; transactionDetails?: "full" },
>,
):
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ transactions: readonly TTransaction[] }> Parameters
- slot: bigint
- config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{ encoding: "jsonParsed"; rewards: false; transactionDetails?: "full" },
>
Returns
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ transactions: readonly TTransaction[] }>
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{
encoding: "jsonParsed";
maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion;
rewards?: boolean;
transactionDetails?: "full";
},
>,
): | null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ rewards: readonly Reward[] }> & Readonly<
{ transactions: readonly TTransaction[] },
> Returns
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ rewards: readonly Reward[] }> & Readonly<
{ transactions: readonly TTransaction[] },
>
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{
encoding: "jsonParsed";
rewards?: boolean;
transactionDetails?: "full";
},
>,
): | null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ rewards: readonly Reward[] }> & Readonly<
{ transactions: readonly TTransaction[] },
> Parameters
- slot: bigint
- config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & 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[] },
>
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{
encoding?: "json";
maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion;
rewards: false;
transactionDetails?: "full";
},
>,
): | null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ transactions: readonly TTransaction[] }> Returns
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ transactions: readonly TTransaction[] }>
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{ encoding?: "json"; rewards: false; transactionDetails?: "full" },
>,
):
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ transactions: readonly TTransaction[] }> Parameters
- slot: bigint
- config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{ encoding?: "json"; rewards: false; transactionDetails?: "full" },
>
Returns
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ transactions: readonly TTransaction[] }>
- getBlock(
slot: bigint,
config: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{
encoding?: "json";
maxSupportedTransactionVersion: GetBlockMaxSupportedTransactionVersion;
rewards?: boolean;
transactionDetails?: "full";
},
>,
): | null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ rewards: readonly Reward[] }> & Readonly<
{ transactions: readonly TTransaction[] },
> Returns
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ rewards: readonly Reward[] }> & Readonly<
{ transactions: readonly TTransaction[] },
>
- getBlock(
slot: bigint,
config?: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{ encoding?: "json"; rewards?: boolean; transactionDetails?: "full" },
>,
):
| null
| Readonly<
{
blockhash: Blockhash;
blockHeight: bigint;
blockTime: UnixTimestamp;
parentSlot: Slot;
previousBlockhash: Blockhash;
},
> & Readonly<{ rewards: readonly Reward[] }> & Readonly<
{ transactions: readonly TTransaction[] },
> Parameters
- slot: bigint
Optionalconfig: Readonly<{ commitment?: Omit<Commitment, "processed"> }> & Readonly<
{ encoding?: "json"; 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[] },
>
Returns identity and transaction information about a confirmed block in the ledger