CreateContractParams
CreateContractParams<
TName
,TAbi
,TAddress
,TBytecode
,TDeployedBytecode
,TCode
>:object
|object
Parameters for creating a Contract instance. This type allows for two mutually exclusive ways of specifying the ABI: either as a human-readable ABI or as a JSON ABI.
Type Parameters
• TName extends string
| undefined
| never
The name of the contract (optional)
• TAbi extends readonly string
[] | Abi
The ABI type (either string[] for human readable or Abi for JSON)
• TAddress extends undefined
| Address
| never
The contract address type (optional)
• TBytecode extends undefined
| Hex
| never
The contract creation bytecode type (optional)
• TDeployedBytecode extends undefined
| Hex
| never
The deployed bytecode type (optional)
• TCode extends undefined
| Hex
| never
The runtime bytecode type (optional)
See
CreateContract
Examples
Using human-readable ABI:
Using JSON ABI: