obyte.js
GitHubDiscord
0.1.1
0.1.1
  • Byteball.js
  • Getting started
    • Quick start
    • Testnet
  • Client
    • Subscribe
    • Just saying
  • API
    • Get witnesses
    • Get peers
    • Get joint
    • Get last MCI
    • Get history
    • Get attestation
    • Get attestations
    • Get bots
    • Get asset metadata
    • Get definition
    • Get balances
    • Get profile units
    • Core
      • Catchup
      • Get hash tree
      • Get light props
      • Post joint
      • Pick divisible coins for amount
  • Post
    • Address definition change
    • Attestation
    • Asset
    • Asset attestors
    • Data
    • Data feed
    • Definition template
    • Payment
    • Poll
    • Vote
    • Profile
    • Text
  • Utils
    • Generate a random address
  • About
    • About
    • Links
    • Tutorials
Powered by GitBook
On this page
  • Arguments
  • Returns
  • Example
  • Learn more
  1. Post

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

PreviousAssetNextData

Last updated 6 years ago

"24. Assets" (page 33)

https://byteball.org/Byteball.pdf