Caravan Documentation
    Preparing search index...

    Encoder class for BC UR data.

    Encodes a hex string as a sequence of UR parts. Each UR is a string.

    Designed for use by a calling application which will typically take the resulting strings and display them as a sequence of animated QR codes.

    import {BCUREncoder} from "@caravan/wallets";
    const hexString = "deadbeef";
    const encoder = BCUREncoder(hexString);
    console.log(encoder.parts())
    // [ "ur:...", "ur:...", ... ]
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    fragmentCapacity: number
    hexString: string

    Methods