cast-abi-encode - ABI encode the given function arguments, excluding the selector.
cast abi-encode
[options] sig [args...]
ABI encode the given function, excluding the selector.
The signature (sig) is a fragment in the form <function name>(<types...>)
.
{{#include common-options.md}}
-
ABI-encode the arguments for a call to
someFunc(address,uint256)
:cast abi-encode "someFunc(address,uint256)" 0x... 1
-
For encoding a type with components (as a tuple, or custom struct):
cast abi-encode "someFunc((string,uint256))" "(myString,1)"