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

1
const params = {
2
asset: 'xamdfH5Uk+alv3le0pEA01qSsfZjycyMsqaqHtycJ1M=',
3
attestors: [
4
'X5ZHWBYBF4TUYS35HU3ROVDQJC772ZMG',
5
'GZSEKMEQVOW2ZAHDZBABRTECDSDFBWVH',
6
'2QLYLKHMUG237QG36Z6AWLVH4KQ4MEY6'
7
].sort()
8
};
9
10
client.post.assetAttestors(params, wif, function(err, result) {
11
if (err) return console.error(err);
12
console.log(result);
13
});
Copied!

Learn more

Last modified 7mo ago