{"uid":"cap_qU32qo5CaBwzynX3Mg8HD","slug":"hex-encode-6eeb555b","name":"Hex Encode","description":"Machine-payable x402 utilities for hashing, Base64, UUID generation, unit and timezone conversion, realtime crypto market data, webpage/document extraction, URL-to-Markdown, metadata, RAG ingestion and deterministic website change detection.","url":"https://x402-gateway-production-1f21.up.railway.app/hex/encode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["text"],"properties":{"text":{"type":"string","maxLength":250000}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"status":"ready"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IhCPQJuWE8r8SYGBJTFG2","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes a text string into its hexadecimal representation","exampleAgentPrompt":"Can you hex encode this text for me: 'Hello, World! This is my payload.'","exampleUseCases":[{"title":"Encoding payload for protocol compatibility","prompt":"I need to hex encode this string before sending it over a protocol that only accepts hex: 'user:admin password:secret123'"},{"title":"Preparing data for blockchain transaction","prompt":"Hex encode this message so I can embed it in a blockchain transaction: 'Order ID: 8f2a-confirmed on 2024-01-15'"},{"title":"Debugging binary data representation","prompt":"Can you convert this raw text to its hex representation so I can inspect the byte values? The text is: 'café résumé naïve'"}],"resultDescription":"A JSON response containing the hexadecimal encoded version of the input text string, where each character is represented as its corresponding two-digit hex value.","failureModes":["Input text exceeds 250,000 character limit — returns validation error","Missing required 'text' field in body — returns schema validation error","Payment not included or insufficient — returns x402 payment required response","Malformed JSON body — returns parse error"],"whenToPreferThis":"Choose this endpoint when you need a machine-payable, on-demand hex encoding utility accessible via the x402 micropayment protocol, particularly in automated agent pipelines where per-call USDC billing is acceptable. Useful when you don't have a local encoding library available or need a trustless, auditable encoding step in a workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:42:33.980Z","isFirstParty":false,"canonicalSlug":"hex-encode-6eeb555b"}