Skip to content

Latest commit

 

History

History
51 lines (26 loc) · 1.08 KB

File metadata and controls

51 lines (26 loc) · 1.08 KB

@cyberchain/smart-contract-wrapper


@cyberchain/smart-contract-wrapper / deploySmartContract

Function: deploySmartContract()

deploySmartContract(byteCode, abi, constructorParams, value, options): Promise<TransactionResult<string>>

Defined in: src/contract.ts:21

Deploys smart contract

Parameters

byteCode

BytesLike

The byte code of the smart contract

abi

ABILike

The ABI definition of the smart contract

constructorParams

InputABIParams

The constructor params

value

QuantityLike

The value to send to the constructor (wei)

options

TransactionSendingOptions

The transaction options (including RPC options)

Returns

Promise<TransactionResult<string>>

A result with the transaction receipt and the contract address