@arkade-os/sdk Documentation - v0.3.11
    Preparing search index...

    Class ArkNote

    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

    Index

    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

    • Returns a string representation of an object.

      Returns string