InterfaceAbi
type InterfaceAbi = | string | ReadonlyArray< | Fragment | JsonFragment| string>;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/abi/interface.d.ts:159
An InterfaceAbi may be any supported ABI format.
A string is expected to be a JSON string, which will be parsed
using JSON.parse
. This means that the value must be a valid
JSON string, with no stray commas, etc.
An array may contain any combination of:
- Human-Readable fragments
- Parsed JSON fragment
- [[Fragment]] instances
A Human-Readable Fragment is a string which resembles a Solidity
signature and is introduced in this blog entry.
For example, function balanceOf(address) view returns (uint)
.
A Parsed JSON Fragment is a JavaScript Object desribed in the Solidity documentation.