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:...", ... ] Copy
import {BCUREncoder} from "@caravan/wallets";const hexString = "deadbeef";const encoder = BCUREncoder(hexString);console.log(encoder.parts())// [ "ur:...", "ur:...", ... ]
Create a new encoder.
Return all UR parts.
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.
Example