Get AA state vars

Get state variables of an Autonomous Agent.

Example

const params = {
  address: 'TSDLQPZTSVDNC63G7YROC26CYCCZC4GO',
  var_prefix: 'proposal_1'
};

client.api.getAaStateVars(params, function(err, result) {
  if (err) return console.error(err);
  console.log(result);
});

Returns

{
  proposal_1: '1',
  proposal_1_amount: '25000',
  proposal_1_author: 'CWUD2ZRELMGI7CQIXRRGENRMSV2NFZOT',
  proposal_1_expiration: '1567288484',
  proposal_1_url: 'https://bit.ly/2Ka8HGo',
  proposal_1_vest: '40000',
  proposal_1_vote_K237YYRMBYWCJBLSZGLJTXLZVVEXLI2Y: '1'
}

Learn more

Last updated