Class

OwnerMemo

OwnerMemo()

Asset owner memo. Contains information needed to decrypt an asset record.

Constructor

# new OwnerMemo()

See:
  • ClientAssetRecord for more details about asset records.

View Source pkg/wasm.js, line 1638

Methods

# static from_json(val) → {OwnerMemo}

Builds an owner memo from a JSON-serialized JavaScript value.

Parameters:
Name Type Description
val JsValue

JSON owner memo fetched from query server with the get_owner_memo/{sid} route, where sid can be fetched from the query server with the get_owned_utxos/{address} route. See the example below.

View Source pkg/wasm.js, line 1666

OwnerMemo
Example
{
  "blind_share":[91,251,44,28,7,221,67,155,175,213,25,183,70,90,119,232,212,238,226,142,159,200,54,19,60,115,38,221,248,202,74,248],
  "lock":{"ciphertext":[119,54,117,136,125,133,112,193],"encoded_rand":"8KDql2JphPB5WLd7-aYE1bxTQAcweFSmrqymLvPDntM="}
}

# clone() → {OwnerMemo}

Creates a clone of the owner memo.

View Source pkg/wasm.js, line 1678

OwnerMemo