A fragment for a method, event or error in a JSON ABI format.

interface JsonFragment {
    anonymous?: boolean;
    constant?: boolean;
    gas?: string;
    inputs?: readonly JsonFragmentType[];
    name?: string;
    outputs?: readonly JsonFragmentType[];
    payable?: boolean;
    stateMutability?: string;
    type?: string;
}

Properties

anonymous?: boolean

If the event is anonymous.

constant?: boolean

If the function is constant.

gas?: string

The gas limit to use when sending a transaction for this function.

inputs?: readonly JsonFragmentType[]

The input parameters.

name?: string

The name of the error, event, function, etc.

outputs?: readonly JsonFragmentType[]

The output parameters.

payable?: boolean

If the function is payable.

stateMutability?: string

The mutability state of the function.

type?: string

The type of the fragment (e.g. event, "function", etc.)

Generated using TypeDoc