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) {
console.log(result);
});

Learn more