class
ContractDeleteTransaction
extendsTransaction
new ContractDeleteTransaction()
.setContractId(contractId)
.setNodeAccountIds(Collections.singletonList(response.nodeId))
.execute(client)
.getReceipt(client);
await (
await new ContractDeleteTransaction()
.setContractId(contract)
.setNodeAccountIds([response.nodeId])
.execute(client)
).getReceipt(client);
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())
}
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