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.
- asset
string
required Asset unit id. - attestors
array
required List of approved attestor addresses
Returns the unit hash.
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);
});
Last modified 2yr ago