AltExecCnsContract.prototype.deleteData

Delete string data protected by access control.

Internally calls http DELETE/data on the AltExecCnsAPI.

Parameters

Name Type Description
password string Account password
contractName string Target contract name
functionName string Target function name
objectId string DataObject ID
params array Parameters to pass to Contract function
abi JSONObject ABI of the contract to call
callback function callback

Callback

Name Type Description
err error Error
txHash string Transaction hash of executed transaction

Usage

contract.deleteData('__PASSWORD__', 'Building', 'delete', 'building-object1', ['building1'], abi, function(err, txHash) {
  if (err) console.error(err);
  else console.log(txHash);
}

results matching ""

    No results matching ""