DOCS

getBlockWithTransactions

Get a specific block (with the transactions contained in it) from a given network.

function getBlockWithTransactions(
  params: GetBlockWithTransactionsParams,
): Promise<BlockWithTransactions>;

Example

const block = await getBlockWithTransactions({
  network: "ethereum",
  block: 12345678,
});

Parameters

Returns

the block for the given block number / block tag

type ReturnType = Promise<BlockWithTransactions>;