AltExecCnsContract.prototype.getData

Acquires string data protected by access control.

Internally calls http GET /data on the AltExecCnsAPI.

Please refer to the following page for detailed information.

GUIDE

Parameters

Name Type Description
password string Account password
contractName string Target contract name
functionName string Target function name
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
data JSONObject Data retrieved from the data store

Usage

contract.getData('__PASSWORD__', 'Box', 'getRoomObjectIds', ['box1'], abi, function(err, data) {
  if (err) console.error(err);
  else {
    data.map(function(d) {
      console.log(d.data);
    });
  }
}

results matching ""

    No results matching ""