{"uid":"cap_lKExkAEIBwQjGjxyKs3Zd","slug":"rlp-encode-value-or-nested-list-ethereum-c053b45f","name":"RLP Encode Value or Nested List (Ethereum)","description":"RLP-encode a value or nested list — Genesis402 / UnyKorn Operator Network","url":"https://twin.unykorn.org/eth-rlp-encode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"params":{"type":"object","properties":{"values":{}}}}},"responseSchema":{"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>"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BMnuK1BdAjM-SX6nyZoJI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"RLP-encodes a value or nested list structure according to Ethereum's Recursive Length Prefix serialization format","exampleAgentPrompt":"RLP-encode this nested list for me: ['0x1234', ['0xabcd', '0x00'], '0xff'] — I need the Ethereum RLP output to use in a raw transaction.","exampleUseCases":[{"title":"Encoding raw Ethereum transaction fields","prompt":"I'm building a raw Ethereum transaction by hand and need to RLP-encode the list of fields like nonce, gas price, gas limit, to, value, and data — can you encode this nested list: ['0x01', '0x3b9aca00', '0x5208', '0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae', '0x0de0b6b3a7640000', '0x']?"},{"title":"Serializing a Merkle proof node","prompt":"I need to RLP-encode a Merkle trie node that's a nested list — can you encode [['0x1a2b', '0x3c4d'], '0xdeadbeef'] for me so I can verify the Ethereum state proof?"},{"title":"Encoding EVM data for custom tooling","prompt":"I'm writing a custom EVM tool and need to RLP-encode the byte value 0x68656c6c6f — can you give me the RLP serialization of that value?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T18:55:23.625Z","isFirstParty":false,"canonicalSlug":"rlp-encode-value-or-nested-list-ethereum-c053b45f"}