Function createAndSendInitTransaction

  • Creates and sends transaction for initializing a smart contract contractName with parameter input.

    Throws

    If the query could not be invoked successfully.

    Returns

    The transaction hash of the update transaction.

    Parameters

    • moduleClient: ModuleClient

      The client for a smart contract module on chain.

    • contractName: ContractName

      The name of the smart contract to instantiate (this is without the init_ prefix).

    • metadata: ContractTransactionMetadata

      Metadata to be used for the transaction (with defaults).

    • parameter: Parameter

      Input for for contract function.

    • signer: AccountSigner

      An object to use for signing the transaction.

    Returns Promise<TransactionHash.Type>

Generated using TypeDoc