Skip to main content

    Calldata Structure

    Encoded calldata format:
    Example for transfer(address,uint256):

    Usage Examples

    Basic Function Call

    Multiple Parameters

    Dynamic Types (String)

    Arrays

    Tuples (Structs)

    No Parameters

    Type-Safe Encoding

    TypeScript infers parameter types from function definition:

    Address Formats

    Multiple address input formats accepted:

    BigInt for Integers

    Use bigint for all integer types:

    Error Handling

    Advanced: Encoding Without Selector

    To encode only parameters without selector, use parameter encoding directly:

    See Also