Skip to content

JsonFragment

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/abi/fragments.d.ts:40

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

readonly optional anonymous: boolean;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/abi/fragments.d.ts:52

If the event is anonymous.


readonly optional constant: boolean;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/abi/fragments.d.ts:60

If the function is constant.


readonly optional gas: string;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/abi/fragments.d.ts:76

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


readonly optional inputs: readonly JsonFragmentType[];

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/abi/fragments.d.ts:68

The input parameters.


readonly optional name: string;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/abi/fragments.d.ts:44

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


readonly optional outputs: readonly JsonFragmentType[];

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/abi/fragments.d.ts:72

The output parameters.


readonly optional payable: boolean;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/abi/fragments.d.ts:56

If the function is payable.


readonly optional stateMutability: string;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/abi/fragments.d.ts:64

The mutability state of the function.


readonly optional type: string;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/abi/fragments.d.ts:48

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