Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 558 Bytes

cast-calldata.md

File metadata and controls

30 lines (17 loc) · 558 Bytes

cast calldata

NAME

cast-calldata - ABI-encode a function with arguments.

SYNOPSIS

cast calldata [options] sig [args...]

DESCRIPTION

ABI-encode a function with arguments.

The signature (sig) is a fragment in the form <function name>(<types...>).

OPTIONS

{{#include common-options.md}}

EXAMPLES

  1. ABI-encode the arguments for a call to someFunc(address,uint256):
    cast calldata "someFunc(address,uint256)" 0x... 1

SEE ALSO

cast, cast abi-encode