obyte.js
GitHubDiscord
0.1.9
0.1.9
  • Obyte.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
    • Dry run AA (testnet)
    • Get AA state vars (testnet)
    • Get AAs by base AAs (testnet)
    • Get AA responses (testnet)
    • Core
      • Catchup
      • Get hash tree
      • Get light props
      • Post joint
      • Pick divisible coins for amount
      • Heartbeat
  • Post
    • Address definition change
    • Attestation
    • Asset
    • Asset attestors
    • Data
    • Data feed
    • Definition
    • Definition template
    • Payment
    • Poll
    • Vote
    • Profile
    • Text
    • Multi
  • Utils
    • Sign message
    • Generate a random address
    • Get definition address
    • Is valid address
    • Keep connection alive
  • About
    • About
    • Links
    • Tutorials
Powered by GitBook
On this page
  • Arguments
  • Returns
  • Example
  • Learn more
  1. Post

Attestation

Attestations confirm that the user who issued the attestation (the attestor) verified some data about the attested user (the subject).

Arguments

  • address string required Address of the attested user (the subject).

  • profile object required Verified data about the attested user.

Returns

Returns the unit hash.

Example

const params = {
  address: 'IX77DDUQ56TVQVC3E77KIC5QLPQHD4PV',
  profile: {
    email: 'robertjsmc@gmail.com',
    user_id: 'mT+Qwu2e2OH+QJ5mwCijrkQ6Bz2IW/Ad9IIHHHffbwo='
  }
};

client.post.attestation(params, wif, function(err, result) {
  console.log(result);
  // -> J12wi3v0tSco6JJKagqJ265/jEt8Evl4Rk03YIErlpQ=
});

Learn more

PreviousAddress definition changeNextAsset

Last updated 6 years ago

"23. Attestations" (page 32)

https://obyte.org/Byteball.pdf