{"uid":"cap_1MRX23VI31ZgvQzBjUE0u","slug":"swift-bot-labs-toolbox-evm-abi-encode-98c5ecd4","name":"Swift Bot Labs Toolbox – EVM ABI Encode","description":"62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.","url":"https://x402-toolbox.swiftbotlab.workers.dev/v1/evm/abi-encode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"types":{"type":["array","string"],"items":{"type":"string","maxLength":200},"maxItems":64,"maxLength":2000,"description":"Alternatively a list of types"},"values":{"type":"array","maxItems":64,"description":"Values in order; tuples as arrays"},"signature":{"type":"string","maxLength":1000,"description":"Function signature, e.g. transfer(address,uint256)"}}},"responseSchema":{"type":"json","example":{"ok":true,"tool":"abi-encode","result":{"data":"0xa9059cbb0000000000000000000000002481e29895b43e87e547a50fb0bb5aa1e70585eb00000000000000000000000000000000000000000000000000000000000f4240","bytes":68,"selector":"0xa9059cbb"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_db7tVH4pYZsdt3WO3juzY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes function call data into ABI-encoded hex bytes from a Solidity function signature or explicit type/value arrays, suitable for on-chain transaction calldata.","exampleAgentPrompt":"Can you ABI-encode a call to transfer(address,uint256) with recipient address 0x2481e29895b43e87e547a50fb0bb5aa1e70585eb and amount 1000000 for me?","exampleUseCases":[{"title":"Prepare ERC-20 transfer calldata","prompt":"Encode an ERC-20 transfer call — the function signature is transfer(address,uint256), the recipient is 0xAbCd1234abcd1234abcd1234abcd1234abcd1234, and the amount is 500000000000000000."},{"title":"Build multicall payload for DeFi protocol","prompt":"I need to ABI-encode a call to deposit(uint256,address) with values 1000000000000000000 and 0xDeadBeefDeadBeefDeadBeefDeadBeefDeadBeef so I can include it in a multicall transaction."},{"title":"Encode constructor arguments for contract deployment","prompt":"Can you ABI-encode constructor arguments for types [address, uint256, bool] with values [0x1111111111111111111111111111111111111111, 42, true] so I can append them to a contract bytecode for deployment?"}],"resultDescription":"Returns a JSON object with ok:true, the tool name 'abi-encode', and a result containing: the full ABI-encoded hex string (data), the total byte length (bytes), and the 4-byte function selector (selector) if a function signature was provided.","failureModes":["Mismatched types and values arrays returns an error","Invalid Solidity type names (e.g. 'uint' without size when ambiguous) may fail","Malformed function signature string causes parse error","Value that cannot be coerced to the specified type returns encoding error","Exceeding 64 items in types/values arrays returns a validation error"],"whenToPreferThis":"Use this endpoint when you need quick, serverless ABI encoding without setting up ethers.js, viem, or web3.py locally. Ideal for agents automating on-chain transactions, building calldata dynamically, or testing contract interactions — especially in environments where installing EVM libraries is impractical. Pay-per-call with no API key makes it frictionless for low-volume or one-off encoding tasks.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:46.567Z","isFirstParty":false,"canonicalSlug":"swift-bot-labs-toolbox-evm-abi-encode-98c5ecd4"}