# RLP Encode Value or Nested List (Ethereum)

> RLP Encode Value or Nested List (Ethereum) is a paid API for AI agents from twin.unykorn.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-01).

RLP-encodes a value or nested list structure according to Ethereum's Recursive Length Prefix serialization format

## Facts

- Endpoint: POST https://twin.unykorn.org/eth-rlp-encode?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rlp-encode-value-or-nested-list-ethereum-c053b45f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lKExkAEIBwQjGjxyKs3Zd

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability rlp-encode-value-or-nested-list-ethereum-c053b45f -d '<json body>'
```

Example prompt: RLP-encode this nested list for me: ['0x1234', ['0xabcd', '0x00'], '0xff'] — I need the Ethereum RLP output to use in a raw transaction.

## When to prefer this

Use this endpoint when you need a reliable, paid API to RLP-encode Ethereum data without running your own node or library — ideal for agents that need on-demand RLP serialization as part of transaction construction, Merkle proof verification, or EVM data preparation pipelines. Prefer this over local libraries when operating in environments where installing ethers.js or web3.py is impractical.

## Known failure modes

- Invalid or malformed input values that cannot be RLP-encoded (e.g. non-hex strings where hex is expected)
- Payment failure if insufficient USDC balance for x402 protocol
- Deeply nested or excessively large lists may exceed size limits
- Missing or malformed 'values' parameter in the params object
- Service unavailability from the UnyKorn Operator Network

## How this service works

RLP-encode a value or nested list — Genesis402 / UnyKorn Operator Network

## Output

Returns a JSON object with a success flag, the RLP-encoded result, a transaction receipt including tx_hash, amount_usd paid, and a receipt_id, plus a generated_at ISO8601 timestamp. The encoded output follows Ethereum's RLP specification for the provided value or nested list.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "params": {
   "type": "object",
   "properties": {
    "values": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "type": "eth-rlp-encode",
  "receipt": {
   "tx_hash": "0x<64hex>",
   "amount_usd": 0.002,
   "receipt_id": "g402-<16hex>"
  },
  "generated_at": "<iso8601>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rlp-encode-value-or-nested-list-ethereum-c053b45f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twin.unykorn.org](https://www.zero.xyz/host/twin.unykorn.org/llms.txt)
