ABI function type for contract functions.

interface AbiFunction {
    constant?: boolean;
    gas?: number;
    inputs: AbiParameter[];
    name: string;
    outputs: AbiParameter[];
    payable?: boolean;
    stateMutability: AbiStateMutability;
    type: "function";
}

Properties

constant?: boolean

Deprecated. Use pure or view from stateMutability instead.

gas?: number

Deprecated. Vyper used to provide gas estimates.

inputs: AbiParameter[]

The list of ABI parameters used for this function.

name: string

The name of the ABI function.

outputs: AbiParameter[]

The values returned by this function.

payable?: boolean

Deprecated. Use payable or nonpayable from stateMutability instead.

stateMutability: AbiStateMutability
type: "function"

The type of the ABI item, must be function.