Skip to content

Latest commit

 

History

History
69 lines (47 loc) · 1.35 KB

ContractDeleteTransaction.md

File metadata and controls

69 lines (47 loc) · 1.35 KB

class ContractDeleteTransaction extends Transaction

** Java **

new ContractDeleteTransaction()
    .setContractId(contractId)
    .setNodeAccountIds(Collections.singletonList(response.nodeId))
    .execute(client)
    .getReceipt(client);

** JavaScript **

await (
    await new ContractDeleteTransaction()
        .setContractId(contract)
        .setNodeAccountIds([response.nodeId])
        .execute(client)
).getReceipt(client);

** Go **

response, err := hedera.NewContractDeleteTransaction().
    SetContractID(contractID).
    SetNodeAccountIDs([]AccountID{resp.NodeID}).
    Execute(client)
if err != nil {
    println(err.Error())
}

receipt, err := response.GetReceipt(client)
if err != nil {
    println(err.Error())
}

Constructor

constructor()

Properties

contractId: ContractId

The ID of the contract to be deleted.


transferAccountId: AccountId

The ID of an account that will receive any remaining Hbar from the deleted contract.


transferContractId: ContractId

The ID of a contract that will receive any remaining Hbar from the deleted contract