{"uid":"cap_9xK8xVPK21LCyQVBMjewA","slug":"finmath-base58-encode-decode-c7305ec6","name":"finmath Base58 Encode/Decode","description":"Deterministic finance and crypto math for AI agents: TradFi (NPV, IRR, XIRR, Black-Scholes + Greeks, bonds, VaR, Sharpe) and DeFi (impermanent loss, perp liquidation, funding, Uniswap v3, health factor, cost basis). Exact, model-free arithmetic that LLMs get wrong — priced per call in USDC.","url":"https://finmath.qzqh5rrbkz.workers.dev/v1/base58","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"mode":{"type":"string","description":"mode"},"input":{"type":"string","description":"input"},"encoding":{"type":"string","description":"encoding"}}},"responseSchema":{"type":"object","required":["result","meta"],"properties":{"meta":{"type":"object"},"result":{}}},"example":{"request":{"mode":"encode","input":"0014751e76e8199196f454f092f14796951d0f6ab45","encoding":"hex"},"response":{"meta":{"tool":"base58","disclaimer":"Deterministic calculation utility. Not financial, investment, or trading advice.","deterministic":true},"result":{"result":"15ZVEXU1rzckTF8iBj89Dqs2BBhZN"}}},"exampleRequest":{"mode":"encode","input":"0014751e76e8199196f454f092f14796951d0f6ab45","encoding":"hex"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_EfyTflroMdivuVwNUXboU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes or decodes data using Base58 encoding, typically for crypto address/key formatting, as part of a deterministic finance and crypto math computation service.","exampleAgentPrompt":"Can you encode this hex string '0014751e76e8199196f454f092f14796951d0f6ab45' to Base58 using finmath's deterministic math engine?","exampleUseCases":null,"resultDescription":"A JSON object with a 'result' field containing the Base58-encoded or decoded output and a 'meta' field with call metadata such as timing or mode used.","failureModes":["Invalid or malformed input string returns an error result","Unsupported encoding mode returns an error","Missing required 'input' field returns 400-level response","Malformed JSON body causes request rejection","Payment not provided or insufficient USDC causes 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need exact, deterministic Base58 encoding/decoding for cryptocurrency addresses or keys without relying on an LLM's error-prone arithmetic, and when operating within a micropayment (x402) workflow priced at $0.001 USDC per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:33:39.694Z","isFirstParty":false}