{"uid":"cap_SvdVicOfQF2UWuS1xlpaE","slug":"moneytools-abi-encode-d45574b8","name":"MoneyTools ABI Encode","description":"ABI-encode calldata: Build calldata from a function signature and arguments (selector + encoded args). Unsigned bytes only, for agents preparing a tx for a human or wallet to review. Free tier 10/day; then $0.001 via x402 (HTTP 402 + PAYMENT-REQUIRED) or X-API-Key credits. Not charged on failure. $0.001 USDC per call via x402 on Base. Run by MoneyTools.","url":"https://tools.moneytools.dev/v1/abi-encode?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"type":"object","required":["signature","args"],"properties":{"args":{"type":"string","examples":["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045,1000000"],"description":"comma list or JSON array"},"signature":{"type":"string","examples":["transfer(address,uint256)"],"description":"function signature"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","properties":{"payment":{"type":"object","properties":{"charged":{"type":"boolean"},"network":{"type":"string"},"amountUsd":{"type":"string"},"transaction":{"type":["string","null"]}}},"freeTier":{"type":"object"},"_moneytools":{"type":"object","description":"optional plan / partner hints"}},"description":"Tool-specific JSON result (see llms.txt / openapi.json). Always includes payment info.","additionalProperties":true}}}}},"responseSchema":{"type":"json"},"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_0x-W2TQvOSottXEgjmB1v","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 Ethereum function calldata from a function signature and arguments, returning selector + ABI-encoded bytes ready for transaction review.","exampleAgentPrompt":"Can you ABI-encode the calldata for a transfer(address,uint256) function call with arguments 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 and 1000000 so I can review the transaction before signing?","exampleUseCases":[{"title":"Encode ERC-20 token transfer","prompt":"Build me the calldata for an ERC-20 transfer — the function signature is transfer(address,uint256) and the arguments are 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 and 1000000. I want to inspect it before my wallet signs it."},{"title":"Prepare multicall contract data","prompt":"I need to encode the calldata for approve(address,uint256) with arguments 0xUniswapRouter and 500000000 — can you give me the selector and encoded args so I can review the hex before submitting?"},{"title":"Verify calldata matches expected bytes","prompt":"What does the ABI-encoded calldata look like for setOwner(address) called with 0xAbCd1234567890AbCd1234567890AbCd12345678? I want to compare it against what my dapp is producing."}],"resultDescription":"A JSON object containing the ABI-encoded calldata as a hex string (function selector + encoded arguments), along with payment metadata indicating whether the free tier was used or a $0.001 USDC charge was made, the network, transaction reference, and optional plan/partner hints.","failureModes":["Invalid or malformed function signature returns an error — e.g. missing parentheses or unknown types","Argument count mismatch between signature and args list causes encoding failure","Unsupported Solidity types in the signature may not be encodable","Exceeding the free tier (10/day) without valid x402 payment or API key results in HTTP 402 Payment Required","Malformed args format (neither comma-separated nor valid JSON array) causes a parse error"],"whenToPreferThis":"Use this endpoint when an AI agent needs to construct Ethereum transaction calldata for human or wallet review without signing anything — it's read-only and produces only unsigned bytes. Prefer it over client-side ABI libraries when you want a lightweight, stateless HTTP call without importing ethers.js or viem, or when building calldata in a sandboxed environment. Best for agents preparing transactions for user approval rather than autonomous execution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-05T12:43:16.186Z","isFirstParty":false,"canonicalSlug":"moneytools-abi-encode-d45574b8"}