ArkNotes are special virtual coins in the Ark protocol that can be created and spent without requiring any transactions. The server mints them, and they are encoded as base58 strings with a human-readable prefix. It contains a preimage and value.

// Create an ArkNote
const note = new ArkNote(preimage, 50000);

// Encode to string
const noteString = note.toString();

// Decode from string
const decodedNote = ArkNote.fromString(noteString);

Implements

Constructors

  • Parameters

    • preimage: Uint8Array
    • value: number
    • HRP: string = ArkNote.DefaultHRP

    Returns ArkNote

Properties

extraWitness?: Bytes[]
forfeitTapLeafScript: TapLeafScript
HRP: string = ArkNote.DefaultHRP
intentTapLeafScript: TapLeafScript
preimage: Uint8Array
status: Status
tapTree: Bytes
txid: string
value: number
vout: 0
vtxoScript: VtxoScript
DefaultHRP: "arknote"
FakeOutpointIndex: 0
Length: number = ...
PreimageLength: 32
ValueLength: 4

Methods