{"uid":"cap_2G_yN1dxLI6i5Yd6MEoVa","slug":"income-2-agent-tools-base64-encode-0dd39a29","name":"INCOME 2 Agent Tools – Base64 Encode","description":"Low-cost x402 pay-per-call tools for autonomous buyers. Web extraction returns static public pages as clean markdown; every payable operation declares x-payment-info and a 402 response. Free betas: Agent Purchase Guard adds retry-safe purchase intent controls; Outcome Router accepts a desired result plus max budget and autonomously discovers fulfillment, tries zero-dollar proof-of-work first, and supports buyer-signed x402 paid execution where available.\n\nBuyer-signed paid HYDRA execution\n- Outcome request: POST https://earn-tools-backend.onrender.com/outcome-router\n- Paid execution: POST https://earn-tools-backend.onrender.com/outcome-router/execute/{requestId}\n- First execution call returns the relayed Agent402 Smart Order Router x402 PAYMENT-REQUIRED challenge.\n- An x402-capable buyer wallet signs locally and retries with PAYMENT-SIGNATURE.\n- HYDRA forwards the proof and returns the routed result.\n- HYDRA never receives the buyer private key or uses owner working capital.\n- Current beta platform fee: $0. Higher paid tiers are not auto-escalated.","url":"https://earn-tools-backend.onrender.com/base64-encode","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"string","maxLength":500000}}},"responseSchema":{"type":"json","example":{"ok":true,"result":{"result":"aGVsbG8=","operation":"base64-encode"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.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_w2eWz-Ifau3DbESanQnAp","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 an arbitrary string input into its Base64 representation, returning the encoded result as a JSON payload.","exampleAgentPrompt":"Can you base64-encode this string for me: 'Hello, World! This is my test payload for transmission.'","exampleUseCases":[{"title":"Encode API credentials for HTTP auth","prompt":"I need to base64-encode my username and password combined as 'myuser:mypassword123' so I can use it in a Basic Auth header."},{"title":"Encode JSON blob for URL embedding","prompt":"Take this JSON string '{\"userId\":42,\"role\":\"admin\"}' and encode it to base64 so I can safely embed it in a URL query parameter."},{"title":"Encode binary content for data URI","prompt":"Please base64-encode this SVG markup string so I can use it as a data URI in an HTML image tag: '<svg xmlns=\"http://www.w3.org/2000/svg\"><circle r=\"50\"/></svg>'."}],"resultDescription":"Returns a JSON object with 'ok: true', the base64-encoded string under 'result.result', and the operation name 'base64-encode' under 'result.operation'. For example: {\"ok\":true,\"result\":{\"result\":\"aGVsbG8=\",\"operation\":\"base64-encode\"}}.","failureModes":["Input exceeds 500,000 character limit — likely returns a 400 or validation error","Missing or empty 'input' field — may return an error or empty result","Payment not provided or invalid x402 signature — returns 402 PAYMENT-REQUIRED with x-payment-info header","Service unavailable on free Render tier (cold start latency or downtime) — connection timeout","Malformed request body — 400 Bad Request"],"whenToPreferThis":"Choose this endpoint when your agent needs a pay-per-call, x402-compatible base64 encoding operation with no server-side state, no authentication overhead, and a guaranteed clean JSON response. It is well-suited for autonomous agents using micropayment wallets that support the x402 protocol, especially when operating within the HYDRA/INCOME 2 ecosystem where payment signing is already in place.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:34:21.268Z","isFirstParty":false}