{"uid":"cap_O04Q_jef1mtRckvReUhEU","slug":"delx-bytes-hex-encode-6ed4bd46","name":"Delx Bytes Hex Encode","description":"Encode bounded UTF-8 text to hex or inspect hex byte length without RPC — call when encoding bounded UTF-8 to hex or inspecting hex length. Use for chain input hygiene without live RPC—adjacent to OneSource-class small chain reads, but static/local only so rights and margin stay clear. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain…","url":"https://api.delx.ai/api/v1/x402/bytes-hex-encode","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"UTF-8 text to encode, chunk, index, or analyze (caller-supplied only)."}}},"responseSchema":{"type":"json","example":{"hex":"0x64656c78","mode":"text_to_hex","valid":true,"schema":"delx/util-bytes-hex-encode/v1","truncated":false,"byte_length":4}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_a3gXN6JGkJfQIh9xmjmdZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes bounded UTF-8 text to its hexadecimal representation, or inspects the resulting hex byte length, entirely locally without any RPC calls.","exampleAgentPrompt":"Encode the UTF-8 string 'Hello, World!' to hex so I can use it as input for a smart contract call.","exampleUseCases":[{"title":"Blockchain input hygiene for contract call","prompt":"I need to hex-encode the string 'transfer:0xABC123' before passing it as calldata to a smart contract — can you convert it to hex for me?"},{"title":"Inspect hex byte length before on-chain submission","prompt":"Before I submit this text 'auction_bid_round_42' to the chain, can you tell me how many bytes its hex encoding will be?"},{"title":"Deterministic hex encoding for off-chain logging","prompt":"Convert the UTF-8 string 'user_session_data_2024' to its hex representation so I can store it in a deterministic, machine-readable log."}],"resultDescription":"Returns a deterministic JSON object containing the hex-encoded representation of the input UTF-8 text and/or the byte length of the resulting hex string. No external calls are made; output is computed locally and statelessly.","failureModes":["Input text exceeds bounded length limit — API returns an error indicating text is too long","Non-UTF-8 or malformed byte sequences in input — API returns a validation or encoding error","Empty string input — may return empty hex string or an error depending on validation rules","Missing required 'text' field — API returns a 400-style error about missing input"],"whenToPreferThis":"Choose this endpoint when you need a fast, stateless, deterministic hex encoding of a UTF-8 string with no external RPC dependencies, no data retention, and no side effects — ideal for preparing on-chain inputs, validating byte lengths before submission, or any workflow where local-only execution and privacy are required. Prefer this over RPC-based encoding utilities when live chain access is unnecessary and cost predictability matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:11:15.108Z","isFirstParty":false}