- deployContract(api, account, abi, wasm, constructorMethod?, args?, contractOptions?, signerOptions?): Promise<DeployedContract>
Parameters
- api: ApiPromise
- account: string | IKeyringPair
- abi: any
- wasm: string | Uint8Array | Buffer
- constructorMethod: string = 'new'
- args: unknown[] = ...
- contractOptions: Partial<ContractOptions> = ...
- signerOptions: Partial<SignerOptions> = ...
Uploads & instantiates a contract on-chain.