---
title: PayloadExpression type | Wartiva GraphQL API
description: PayloadExpression represents an nftables expression for accessing and manipulating packet payload data at various layers (link, network, transport).
url: https://wartiva.com/api-docs/types/payload-expression.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `PayloadExpression` type

PayloadExpression represents an nftables expression for accessing and manipulating packet payload data at various layers (link, network, transport). It allows for loading data into registers or writing data from registers back into the packet.

## Fields

| Field Name | Description |
|---|---|
| `operationType` - [`PayloadOperationType!`](https://wartiva.com/api-docs/types/payload-operation-type.html) | The type of operation: either LOAD data from the packet or WRITE data to the packet. |
| `destRegister` - [`NftRegister!`](https://wartiva.com/api-docs/types/nft-register.html) | The destination register where data will be loaded (if operationType is LOAD). |
| `sourceRegister` - [`NftRegister!`](https://wartiva.com/api-docs/types/nft-register.html) | The source register from which data will be written (if operationType is WRITE). |
| `base` - [`PayloadBase!`](https://wartiva.com/api-docs/types/payload-base.html) | The base offset from which to start accessing the payload (e.g., link layer, network layer). |
| `offset` - [`Uint32!`](https://wartiva.com/api-docs/types/uint32.html) | The byte offset relative to the specified 'base' where data access begins. |
| `len` - [`Uint32!`](https://wartiva.com/api-docs/types/uint32.html) | The length in bytes of the data to access (load or write). |
| `csumType` - [`PayloadCsumType!`](https://wartiva.com/api-docs/types/payload-csum-type.html) | The type of checksum operation to perform (e.g., NONE, INET). |
| `csumOffset` - [`Uint32!`](https://wartiva.com/api-docs/types/uint32.html) | The byte offset where the checksum field is located within the packet if a checksum operation is being performed. |

## Used by

- [`ChainExpression`](https://wartiva.com/api-docs/types/chain-expression.html) union: A union of all possible nftables chain expression types.

## Example

### Example

```json
{
  "operationType": "LOAD",
  "destRegister": "VERDICT",
  "sourceRegister": "VERDICT",
  "base": "LL_HEADER",
  "offset": "1073741824",
  "len": "1073741824",
  "csumType": "NONE",
  "csumOffset": "1073741824"
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
