octez.js TypeDocs
    Preparing search index...

    Interface EvmTransactionRequest

    An EVM transaction to wrap into a Michelson → EVM call.

    interface EvmTransactionRequest {
        data?: string;
        methodSignature?: string;
        to: string;
        value?: AmountLike;
    }
    Index
    data?: string

    Calldata (hex). Empty or missing for a bare native transfer, otherwise at least the 4-byte function selector

    methodSignature?: string

    ABI signature of the called method (e.g. transfer(address,uint256) or function transfer(address to, uint256 amount)). It is sent to the gateway in its canonical form, which must match the selector of data, so it requires data. When missing, the selector is looked up in the known signatures.

    to: string

    Destination EVM address (0x-prefixed, 20 bytes, EIP-55 checksummed if mixed-case)

    value?: AmountLike

    Value in wei. Defaults to 0