{"uid":"cap_7nM8Vw6c4AEh2kAmLjhPz","slug":"signalharness-abi-function-encoder-c5974f41","name":"SignalHarness ABI Function Encoder","description":"Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.","url":"https://signalharness.ai/api/agent/services/abi_function_encode/invoke","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"abi_function_encode_request":{"type":"string","maxLength":65536,"minLength":2}}},"responseSchema":{"type":"json","example":{"replay":false,"result":{"warnings":["Encoding does not simulate execution or prove contract compatibility."],"service_id":"abi_function_encode","evidence_scope":"caller_supplied_data","encoded_function_data":"{\"data\":\"0x70a082310000000000000000000000000000000000000000000000000000000000000001\",\"signature\":\"balanceOf(address)\"}"},"status":"succeeded","receipt":{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","usage":[],"status":"succeeded","network":"eip155:8453","artifacts":[],"endedAtMs":0,"latencyMs":0,"paymentId":"example-payment","receiptId":"example-receipt","requestId":"example-request","serviceId":"abi_function_encode","executionId":"example-execution","startedAtMs":0,"amountAtomic":"10000","resultSha256":"b343fb3b0eb1d9351456207655f12dfa4440e28ddf662cc09cd1fe94de7fa2d0","serviceVersion":"1.0.0","settlementReference":"0x0000000000000000000000000000000000000000000000000000000000000000"},"artifacts":[],"requestId":"example-request","executionId":"example-execution"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_y5ZowdUJ9I2YR6sBNK9lR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes an Ethereum ABI function call into its hex-encoded calldata representation, ready for on-chain transaction submission.","exampleAgentPrompt":"Encode an ABI function call for the ERC-20 transfer function — the function signature is 'transfer(address,uint256)', the recipient address is 0xAbCd...1234, and the amount is 1000000000000000000 (1 ETH in wei).","exampleUseCases":[{"title":"Building a raw ERC-20 transfer transaction","prompt":"I need to build raw calldata for an ERC-20 transfer — the function is 'transfer(address,uint256)', the to-address is 0x1234567890abcdef1234567890abcdef12345678, and the amount is 500000000 (500 USDC in 6-decimal units). Can you ABI-encode that for me?"},{"title":"Encoding a DeFi swap function call","prompt":"Encode the calldata for a Uniswap-style swapExactTokensForTokens call with this ABI: function swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, address[] path, address to, uint256 deadline) — with amountIn 1000000, amountOutMin 950000, path [0xA0b..., 0x6B1...], to 0xDeAdBeEf..., deadline 1717200000."},{"title":"Preparing calldata for a governance proposal","prompt":"I want to encode a governor contract's 'propose(address[],uint256[],bytes[],string)' function call with targets [0xabc123...], values [0], calldatas [0x], and description 'Proposal #42: Upgrade treasury' — can you give me the ABI-encoded calldata?"}],"resultDescription":"Returns a JSON object containing the hex-encoded ABI function calldata in the 'encoded_function_data' field, along with any encoding warnings, the service ID ('abi_function_encode'), evidence scope, a signed receipt with payment details (paymentId, receiptId, requestId, executionId, network, amount, resultSha256), and the overall execution status.","failureModes":["Invalid or malformed ABI function definition string — returns an error status with a description of the parse failure","Parameter type mismatch (e.g. supplying a string where an address is expected) — may return encoding errors or warnings","Input exceeds maximum length of 65536 characters — rejected with a validation error","Missing required 'abi_function_encode_request' field — request rejected","Network or payment failure prevents execution — status set to failed with no encoded output"],"whenToPreferThis":"Choose this endpoint when you need a reliable, pay-per-use ABI encoding service accessible via HTTP without running local Web3 tooling (ethers.js, web3.py, viem, etc.). Ideal for AI agents, serverless pipelines, or lightweight environments that need to construct Ethereum transaction calldata on the fly without installing blockchain SDKs. At $0.01 USDC per call via x402, it is cost-effective for low-to-medium volume encoding tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T19:01:50.549Z","isFirstParty":false}