> ## Documentation Index
> Fetch the complete documentation index at: https://voltaire.tevm.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# primitives/BlockBody

> Auto-generated API documentation

[**@tevm/voltaire**](../index.mdx)

***

[@tevm/voltaire](../index.mdx) / primitives/BlockBody

# primitives/BlockBody

## Type Aliases

### BlockBodyType

> **BlockBodyType** = `object`

Defined in: [src/primitives/BlockBody/BlockBodyType.ts:15](https://github.com/evmts/voltaire/blob/bd6ec34405c15ad8cd51d11579d495dc53813482/src/primitives/BlockBody/BlockBodyType.ts#L15)

BlockBody type - represents Ethereum block body

Contains the transactions, uncles/ommers, and withdrawals for a block.
The body combined with the header forms a complete block.

#### See

* [https://voltaire.tevm.sh/primitives/block-body](https://voltaire.tevm.sh/primitives/block-body) for BlockBody documentation
* [https://ethereum.org/en/developers/docs/blocks/](https://ethereum.org/en/developers/docs/blocks/) for block documentation

#### Since

0.0.0

#### Properties

##### ommers

> `readonly` **ommers**: readonly [`UncleType`](Uncle.mdx#uncletype)\[]

Defined in: [src/primitives/BlockBody/BlockBodyType.ts:19](https://github.com/evmts/voltaire/blob/bd6ec34405c15ad8cd51d11579d495dc53813482/src/primitives/BlockBody/BlockBodyType.ts#L19)

Uncle/ommer blocks

##### transactions

> `readonly` **transactions**: readonly [`Any`](Transaction/index.mdx#any)\[]

Defined in: [src/primitives/BlockBody/BlockBodyType.ts:17](https://github.com/evmts/voltaire/blob/bd6ec34405c15ad8cd51d11579d495dc53813482/src/primitives/BlockBody/BlockBodyType.ts#L17)

Transactions in block

##### withdrawals?

> `readonly` `optional` **withdrawals**: readonly [`WithdrawalType`](Withdrawal.mdx#withdrawaltype)\[]

Defined in: [src/primitives/BlockBody/BlockBodyType.ts:21](https://github.com/evmts/voltaire/blob/bd6ec34405c15ad8cd51d11579d495dc53813482/src/primitives/BlockBody/BlockBodyType.ts#L21)

Withdrawals (post-Shanghai)

## Variables

### BlockBody

> `const` **BlockBody**: `object`

Defined in: [src/primitives/BlockBody/index.ts:25](https://github.com/evmts/voltaire/blob/bd6ec34405c15ad8cd51d11579d495dc53813482/src/primitives/BlockBody/index.ts#L25)

#### Type Declaration

##### from()

> **from**: (`params`) => [`BlockBodyType`](#blockbodytype)

###### Parameters

###### params

###### ommers

readonly [`UncleType`](Uncle.mdx#uncletype)\[]

###### transactions

readonly [`Any`](Transaction/index.mdx#any)\[]

###### withdrawals?

readonly [`WithdrawalType`](Withdrawal.mdx#withdrawaltype)\[]

###### Returns

[`BlockBodyType`](#blockbodytype)

## Functions

### \_from()

> **\_from**(`params`): [`BlockBodyType`](#blockbodytype)

Defined in: [src/primitives/BlockBody/from.js:19](https://github.com/evmts/voltaire/blob/bd6ec34405c15ad8cd51d11579d495dc53813482/src/primitives/BlockBody/from.js#L19)

Create BlockBody from components

#### Parameters

##### params

BlockBody parameters

###### ommers

readonly [`UncleType`](Uncle.mdx#uncletype)\[]

Ommers/uncles

###### transactions

readonly [`Any`](Transaction/index.mdx#any)\[]

Transactions

###### withdrawals?

readonly [`WithdrawalType`](Withdrawal.mdx#withdrawaltype)\[]

Withdrawals (optional, post-Shanghai)

#### Returns

[`BlockBodyType`](#blockbodytype)

BlockBody

#### Example

```typescript theme={null}
const body = BlockBody.from({
  transactions: [tx1, tx2],
  ommers: [],
  withdrawals: [withdrawal1, withdrawal2] // Optional
});
```

***

### from()

> **from**(`params`): [`BlockBodyType`](#blockbodytype)

Defined in: [src/primitives/BlockBody/index.ts:16](https://github.com/evmts/voltaire/blob/bd6ec34405c15ad8cd51d11579d495dc53813482/src/primitives/BlockBody/index.ts#L16)

#### Parameters

##### params

###### ommers

readonly [`UncleType`](Uncle.mdx#uncletype)\[]

###### transactions

readonly [`Any`](Transaction/index.mdx#any)\[]

###### withdrawals?

readonly [`WithdrawalType`](Withdrawal.mdx#withdrawaltype)\[]

#### Returns

[`BlockBodyType`](#blockbodytype)
