Function registerCBOREncoder

  • Registers a CBOR encoder for the Memo type with the cbor2 library. This allows CborMemo instances to be automatically encoded when used with the cbor2 library's encode function.

    Returns

    Example

    // Register the encoder
    registerCBOREncoder();
    // Now CborMemo instances can be encoded directly
    const encoded = encode(memo);

    Returns void

Generated using TypeDoc