pub fn init_contract(
    num_sigs: u32,
    sender: AccountAddress,
    nonce: Nonce,
    expiry: TransactionTime,
    payload: InitContractPayload,
    energy: Energy
) -> PreAccountTransaction
Expand description

Initialize a smart contract, giving it the given amount of energy for execution. The unique parameters are

  • energy – the amount of energy that can be used for contract execution. The base energy amount for transaction verification will be added to this cost.