{"uid":"cap_z4rRZykWYd-0rvHFBjUF9","slug":"base58-encode-decode-f8c642b6","name":"Base58 Encode/Decode","description":"Base58 encode or decode bytes/hex (Solana-style base58).","url":"https://conclavex402p04.pythonanywhere.com/u/base58?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"},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"pathParams":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"base58":"6h8cQN"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DWF-xBKrgzMMCBOB8EM7-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes bytes or hex strings to Base58 format (Solana-style) or decodes Base58 strings back to their original representation.","exampleAgentPrompt":"Can you base58-encode this hex string for me: 04a5b3c7d9e1f2a0? I need it in Solana-style base58 format.","exampleUseCases":[{"title":"Encode Solana public key bytes","prompt":"I have a raw hex public key — 0x3a7f9c12b4e8d05f1c6a2b8d4e7f3c9a0b5d1e2f — can you encode it into Solana-style base58 so I can use it in a transaction?"},{"title":"Decode a base58 wallet address","prompt":"Decode this Solana base58 address back into hex for me: 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d"},{"title":"Validate base58 round-trip encoding","prompt":"Encode this hex data to base58 and then decode it back so I can confirm the round-trip is lossless: deadbeefcafe0123."}],"resultDescription":"Returns a JSON object with a 'base58' field containing the Base58-encoded string (for encode operations) or the decoded output (for decode operations), e.g. {\"base58\": \"6h8cQN\"}.","failureModes":["Invalid hex string input returns an error","Malformed Base58 input during decode (non-base58 characters) causes a decode failure","Missing required 'input' body field returns a validation error","Incorrect bodyType or method returns a 400-style error"],"whenToPreferThis":"Choose this endpoint when you need Solana-compatible (Bitcoin-style, no padding zeros) Base58 encoding or decoding of arbitrary hex or byte data. Prefer this over generic encoding libraries when operating in a blockchain/Solana context where the exact Base58 alphabet and checksum behavior matters, or when you need a pay-per-call hosted service without managing local dependencies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:42:58.272Z","isFirstParty":false,"canonicalSlug":"base58-encode-decode-f8c642b6"}