{"slug":"saylorinnovations-com-api-chain-encode-call-7df4fd","title":"Encode a contract call","host":"saylorinnovations.com","method":"GET","resource":"https://saylorinnovations.com/api/chain/encode-call","category":"other","description":"Encode a contract call: give a function signature and a JSON array of arguments, get calldata and the 4-byte selector. Computed locally, no node needed.","price_listed":0.01,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:137","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"args":"[\"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\"1000000\"]","signature":"transfer(address,uint256)"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"args":{"description":"the arguments as a JSON array, for example [\"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045\",\"1000000\"]","type":"string"},"signature":{"description":"the function signature with types only, for example transfer(address,uint256)","type":"string"}},"required":["signature","args"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"argument_types":{"description":"types parsed from the signature","type":["array","null"]},"calldata":{"description":"selector plus ABI-encoded arguments","type":"string"},"calldata_bytes":{"description":"length of the calldata","type":"number"},"note":{"description":"plain-language reading of the result","type":"string"},"selector":{"description":"4-byte function selector","type":"string"},"signature":{"description":"the signature that was encoded","type":"string"},"source":{"description":"where the data was read from or how it was computed","type":"string"}},"required":["signature","selector","calldata","calldata_bytes","note","source"],"type":"object"},"type":{"const":"json","type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Encode a contract call: give a function signature and a JSON array of arguments, get calldata and the 4-byte selector. Computed locally, no node needed.","last_updated":"2026-10-21T04:11:35.97Z","schemes":["exact"]}