For the complete documentation index, see llms.txt. This page is also available as Markdown.

Asset attestors

The list of an asset attestors can be amended by the definer by sending an ‘asset_attestors’ message that replaces the list of attestors.

Arguments

  • asset string required Asset unit id.

  • attestors array required List of approved attestor addresses

Returns

Returns the unit hash.

Example

const params = {
  asset: 'xamdfH5Uk+alv3le0pEA01qSsfZjycyMsqaqHtycJ1M=',
  attestors: [
    'X5ZHWBYBF4TUYS35HU3ROVDQJC772ZMG',
    'GZSEKMEQVOW2ZAHDZBABRTECDSDFBWVH',
    '2QLYLKHMUG237QG36Z6AWLVH4KQ4MEY6'
  ].sort()
};

client.post.assetAttestors(params, wif, function(err, result) {
  if (err) return console.error(err);
  console.log(result);
});

Learn more

Last updated