ABI एनकोडर और डिकोडर
Solidity ABI parameters, calldata, selectors और event topics को लोकल encode व decode करें।
लोकल चलता है
टूल लोड हो रहा है…
टूल लोड हो रहा है…
इस्तेमाल कैसे करें
कोई मोड चुनकर transfer(address,uint256) जैसा Solidity signature डालें।
- Selectors हर पंक्ति में एक signature लेकर function/error selector या event का Topic0 calculate करता है।
- Encode calldata JSON array लेता है। बड़े integers के लिए decimal strings और bytes के लिए
0xstrings इस्तेमाल करें। - Decode calldata parameters decode करने से पहले शुरुआती 4 bytes verify करता है।
- Decode raw data selector के बिना comma-separated ABI type list लेता है।
Mixed-case addresses में valid EIP-55 checksum होना चाहिए।
आम सवाल
क्या ABI decoder calldata upload करता है?
नहीं। Signature parsing, Keccak-256 hashing, encoding और decoding सब browser में लोकल चलते हैं।
JSON में uint256 values कैसे डालें?
JavaScript safe integer से बड़ी values के लिए decimal या 0x-prefixed hexadecimal string इस्तेमाल करें। Safe integers को JSON numbers भी रखा जा सकता है।
क्या nested tuples और arrays supported हैं?
हाँ। Static और dynamic arrays, nested tuples, strings और bytes standard ABI head-and-tail offset rules इस्तेमाल करते हैं।