@bsv/sdk 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bsv/sdk",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "type": "commonjs",
5
5
  "description": "BSV Blockchain Software Development Kit",
6
6
  "files": [
@@ -522,28 +522,14 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
522
522
  ---
523
523
  ## Variables
524
524
 
525
- | |
526
- | --- |
527
- | [DEFAULT_SHIP_TRACKERS](#variable-default_ship_trackers) |
528
- | [DEFAULT_SLAP_TRACKERS](#variable-default_slap_trackers) |
529
-
530
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
531
-
532
- ---
533
-
534
525
  ### Variable: DEFAULT_SLAP_TRACKERS
535
526
 
536
527
  ```ts
537
- DEFAULT_SLAP_TRACKERS: string[] = []
538
- ```
539
-
540
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
541
-
542
- ---
543
- ### Variable: DEFAULT_SHIP_TRACKERS
544
-
545
- ```ts
546
- DEFAULT_SHIP_TRACKERS: string[] = []
528
+ DEFAULT_SLAP_TRACKERS: string[] = [
529
+ "https://overlay.babbage.systems",
530
+ "https://overlay-example.babbage.systems",
531
+ "https://office.babbage.systems"
532
+ ]
547
533
  ```
548
534
 
549
535
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
package/docs/wallet.md CHANGED
@@ -1538,6 +1538,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
1538
1538
  ```ts
1539
1539
  export class WalletError extends Error {
1540
1540
  code: number;
1541
+ isError: boolean = true;
1541
1542
  constructor(message: string, code = 1, stack?: string)
1542
1543
  }
1543
1544
  ```
@@ -2430,448 +2431,6 @@ export default class WindowCWISubstrate implements Wallet {
2430
2431
 
2431
2432
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
2432
2433
 
2433
- ---
2434
- ### Class: XDMSubstrate
2435
-
2436
- Facilitates wallet operations over cross-document messaging.
2437
-
2438
- ```ts
2439
- export default class XDMSubstrate implements Wallet {
2440
- constructor()
2441
- async invoke(call, args): Promise<any>
2442
- async createAction(args: {
2443
- description: DescriptionString5to50Bytes;
2444
- inputs?: Array<{
2445
- tx?: BEEF;
2446
- outpoint: OutpointString;
2447
- unlockingScript?: HexString;
2448
- unlockingScriptLength?: PositiveInteger;
2449
- inputDescription: DescriptionString5to50Bytes;
2450
- sequenceNumber?: PositiveIntegerOrZero;
2451
- }>;
2452
- outputs?: Array<{
2453
- lockingScript: HexString;
2454
- satoshis: SatoshiValue;
2455
- outputDescription: DescriptionString5to50Bytes;
2456
- basket?: BasketStringUnder300Bytes;
2457
- customInstructions?: string;
2458
- tags?: OutputTagStringUnder300Bytes[];
2459
- }>;
2460
- lockTime?: PositiveIntegerOrZero;
2461
- version?: PositiveIntegerOrZero;
2462
- labels?: LabelStringUnder300Bytes[];
2463
- options?: {
2464
- signAndProcess?: BooleanDefaultTrue;
2465
- acceptDelayedBroadcast?: BooleanDefaultTrue;
2466
- trustSelf?: "known";
2467
- knownTxids?: TXIDHexString[];
2468
- returnTXIDOnly?: BooleanDefaultFalse;
2469
- noSend?: BooleanDefaultFalse;
2470
- noSendChange?: OutpointString[];
2471
- sendWith?: TXIDHexString[];
2472
- };
2473
- }): Promise<{
2474
- txid?: TXIDHexString;
2475
- tx?: BEEF;
2476
- noSendChange?: OutpointString[];
2477
- sendWithResults?: Array<{
2478
- txid: TXIDHexString;
2479
- status: "unproven" | "sending" | "failed";
2480
- }>;
2481
- signableTransaction?: {
2482
- tx: BEEF;
2483
- reference: Base64String;
2484
- };
2485
- }>
2486
- async signAction(args: {
2487
- spends: Record<PositiveIntegerOrZero, {
2488
- unlockingScript: HexString;
2489
- sequenceNumber?: PositiveIntegerOrZero;
2490
- }>;
2491
- reference: Base64String;
2492
- options?: {
2493
- acceptDelayedBroadcast?: BooleanDefaultTrue;
2494
- returnTXIDOnly?: BooleanDefaultFalse;
2495
- noSend?: BooleanDefaultFalse;
2496
- noSendChange?: OutpointString[];
2497
- sendWith: TXIDHexString[];
2498
- };
2499
- }): Promise<{
2500
- txid?: TXIDHexString;
2501
- tx?: BEEF;
2502
- noSendChange?: OutpointString[];
2503
- sendWithResults?: Array<{
2504
- txid: TXIDHexString;
2505
- status: "unproven" | "sending" | "failed";
2506
- }>;
2507
- }>
2508
- async abortAction(args: {
2509
- reference: Base64String;
2510
- }): Promise<{
2511
- aborted: true;
2512
- }>
2513
- async listActions(args: {
2514
- labels: LabelStringUnder300Bytes[];
2515
- labelQueryMode?: "any" | "all";
2516
- includeLabels?: BooleanDefaultFalse;
2517
- includeInputs?: BooleanDefaultFalse;
2518
- includeInputSourceLockingScripts?: BooleanDefaultFalse;
2519
- includeInputUnlockingScripts?: BooleanDefaultFalse;
2520
- includeOutputs?: BooleanDefaultFalse;
2521
- includeOutputLockingScripts?: BooleanDefaultFalse;
2522
- limit?: PositiveIntegerDefault10Max10000;
2523
- offset?: PositiveIntegerOrZero;
2524
- }): Promise<{
2525
- totalActions: PositiveIntegerOrZero;
2526
- actions: Array<{
2527
- txid: TXIDHexString;
2528
- satoshis: SatoshiValue;
2529
- status: "completed" | "unprocessed" | "sending" | "unproven" | "unsigned" | "nosend" | "nonfinal";
2530
- isOutgoing: boolean;
2531
- description: DescriptionString5to50Bytes;
2532
- labels?: LabelStringUnder300Bytes[];
2533
- version: PositiveIntegerOrZero;
2534
- lockTime: PositiveIntegerOrZero;
2535
- inputs?: Array<{
2536
- sourceOutpoint: OutpointString;
2537
- sourceSatoshis: SatoshiValue;
2538
- sourceLockingScript?: HexString;
2539
- unlockingScript?: HexString;
2540
- inputDescription: DescriptionString5to50Bytes;
2541
- sequenceNumber: PositiveIntegerOrZero;
2542
- }>;
2543
- outputs?: Array<{
2544
- outputIndex: PositiveIntegerOrZero;
2545
- satoshis: SatoshiValue;
2546
- lockingScript?: HexString;
2547
- spendable: boolean;
2548
- outputDescription: DescriptionString5to50Bytes;
2549
- basket: BasketStringUnder300Bytes;
2550
- tags: OutputTagStringUnder300Bytes[];
2551
- customInstructions?: string;
2552
- }>;
2553
- }>;
2554
- }>
2555
- async internalizeAction(args: {
2556
- tx: BEEF;
2557
- outputs: Array<{
2558
- outputIndex: PositiveIntegerOrZero;
2559
- protocol: "wallet payment" | "basket insertion";
2560
- paymentRemittance?: {
2561
- derivationPrefix: Base64String;
2562
- derivationSuffix: Base64String;
2563
- senderIdentityKey: PubKeyHex;
2564
- };
2565
- insertionRemittance?: {
2566
- basket: BasketStringUnder300Bytes;
2567
- customInstructions?: string;
2568
- tags?: OutputTagStringUnder300Bytes[];
2569
- };
2570
- }>;
2571
- description: DescriptionString5to50Bytes;
2572
- labels?: LabelStringUnder300Bytes[];
2573
- }): Promise<{
2574
- accepted: true;
2575
- }>
2576
- async listOutputs(args: {
2577
- basket: BasketStringUnder300Bytes;
2578
- tags?: OutputTagStringUnder300Bytes[];
2579
- tagQueryMode?: "all" | "any";
2580
- include?: "locking scripts" | "entire transactions";
2581
- includeCustomInstructions?: BooleanDefaultFalse;
2582
- includeTags?: BooleanDefaultFalse;
2583
- includeLabels?: BooleanDefaultFalse;
2584
- limit?: PositiveIntegerDefault10Max10000;
2585
- offset?: PositiveIntegerOrZero;
2586
- }): Promise<{
2587
- totalOutputs: PositiveIntegerOrZero;
2588
- outputs: Array<{
2589
- outpoint: OutpointString;
2590
- satoshis: SatoshiValue;
2591
- lockingScript?: HexString;
2592
- tx?: BEEF;
2593
- spendable: true;
2594
- customInstructions?: string;
2595
- tags?: OutputTagStringUnder300Bytes[];
2596
- labels?: LabelStringUnder300Bytes[];
2597
- }>;
2598
- }>
2599
- async relinquishOutput(args: {
2600
- basket: BasketStringUnder300Bytes;
2601
- output: OutpointString;
2602
- }): Promise<{
2603
- relinquished: true;
2604
- }>
2605
- async getPublicKey(args: {
2606
- identityKey?: true;
2607
- protocolID?: [
2608
- 0 | 1 | 2,
2609
- ProtocolString5To400Bytes
2610
- ];
2611
- keyID?: KeyIDStringUnder800Bytes;
2612
- privileged?: BooleanDefaultFalse;
2613
- privilegedReason?: DescriptionString5to50Bytes;
2614
- counterparty?: PubKeyHex | "self" | "anyone";
2615
- forSelf?: BooleanDefaultFalse;
2616
- }): Promise<{
2617
- publicKey: PubKeyHex;
2618
- }>
2619
- async revealCounterpartyKeyLinkage(args: {
2620
- counterparty: PubKeyHex;
2621
- verifier: PubKeyHex;
2622
- privilegedReason?: DescriptionString5to50Bytes;
2623
- privileged?: BooleanDefaultFalse;
2624
- }): Promise<{
2625
- prover: PubKeyHex;
2626
- verifier: PubKeyHex;
2627
- counterparty: PubKeyHex;
2628
- revelationTime: ISOTimestampString;
2629
- encryptedLinkage: Byte[];
2630
- encryptedLinkageProof: Byte[];
2631
- }>
2632
- async revealSpecificKeyLinkage(args: {
2633
- counterparty: PubKeyHex;
2634
- verifier: PubKeyHex;
2635
- protocolID: [
2636
- 0 | 1 | 2,
2637
- ProtocolString5To400Bytes
2638
- ];
2639
- keyID: KeyIDStringUnder800Bytes;
2640
- privilegedReason?: DescriptionString5to50Bytes;
2641
- privileged?: BooleanDefaultFalse;
2642
- }): Promise<{
2643
- prover: PubKeyHex;
2644
- verifier: PubKeyHex;
2645
- counterparty: PubKeyHex;
2646
- protocolID: [
2647
- 0 | 1 | 2,
2648
- ProtocolString5To400Bytes
2649
- ];
2650
- keyID: KeyIDStringUnder800Bytes;
2651
- encryptedLinkage: Byte[];
2652
- encryptedLinkageProof: Byte[];
2653
- proofType: Byte;
2654
- }>
2655
- async encrypt(args: {
2656
- plaintext: Byte[];
2657
- protocolID: [
2658
- 0 | 1 | 2,
2659
- ProtocolString5To400Bytes
2660
- ];
2661
- keyID: KeyIDStringUnder800Bytes;
2662
- privilegedReason?: DescriptionString5to50Bytes;
2663
- counterparty?: PubKeyHex | "self" | "anyone";
2664
- privileged?: BooleanDefaultFalse;
2665
- }): Promise<{
2666
- ciphertext: Byte[];
2667
- }>
2668
- async decrypt(args: {
2669
- ciphertext: Byte[];
2670
- protocolID: [
2671
- 0 | 1 | 2,
2672
- ProtocolString5To400Bytes
2673
- ];
2674
- keyID: KeyIDStringUnder800Bytes;
2675
- privilegedReason?: DescriptionString5to50Bytes;
2676
- counterparty?: PubKeyHex | "self" | "anyone";
2677
- privileged?: BooleanDefaultFalse;
2678
- }): Promise<{
2679
- plaintext: Byte[];
2680
- }>
2681
- async createHmac(args: {
2682
- data: Byte[];
2683
- protocolID: [
2684
- 0 | 1 | 2,
2685
- ProtocolString5To400Bytes
2686
- ];
2687
- keyID: KeyIDStringUnder800Bytes;
2688
- privilegedReason?: DescriptionString5to50Bytes;
2689
- counterparty?: PubKeyHex | "self" | "anyone";
2690
- privileged?: BooleanDefaultFalse;
2691
- }): Promise<{
2692
- hmac: Byte[];
2693
- }>
2694
- async verifyHmac(args: {
2695
- data: Byte[];
2696
- hmac: Byte[];
2697
- protocolID: [
2698
- 0 | 1 | 2,
2699
- ProtocolString5To400Bytes
2700
- ];
2701
- keyID: KeyIDStringUnder800Bytes;
2702
- privilegedReason?: DescriptionString5to50Bytes;
2703
- counterparty?: PubKeyHex | "self" | "anyone";
2704
- privileged?: BooleanDefaultFalse;
2705
- }): Promise<{
2706
- valid: true;
2707
- }>
2708
- async createSignature(args: {
2709
- data?: Byte[];
2710
- hashToDirectlySign?: Byte[];
2711
- protocolID: [
2712
- 0 | 1 | 2,
2713
- ProtocolString5To400Bytes
2714
- ];
2715
- keyID: KeyIDStringUnder800Bytes;
2716
- privilegedReason?: DescriptionString5to50Bytes;
2717
- counterparty?: PubKeyHex | "self" | "anyone";
2718
- privileged?: BooleanDefaultFalse;
2719
- }): Promise<{
2720
- signature: Byte[];
2721
- }>
2722
- async verifySignature(args: {
2723
- data?: Byte[];
2724
- hashToDirectlyVerify?: Byte[];
2725
- signature: Byte[];
2726
- protocolID: [
2727
- 0 | 1 | 2,
2728
- ProtocolString5To400Bytes
2729
- ];
2730
- keyID: KeyIDStringUnder800Bytes;
2731
- privilegedReason?: DescriptionString5to50Bytes;
2732
- counterparty?: PubKeyHex | "self" | "anyone";
2733
- forSelf?: BooleanDefaultFalse;
2734
- privileged?: BooleanDefaultFalse;
2735
- }): Promise<{
2736
- valid: true;
2737
- }>
2738
- async acquireCertificate(args: {
2739
- type: Base64String;
2740
- subject: PubKeyHex;
2741
- serialNumber: Base64String;
2742
- revocationOutpoint: OutpointString;
2743
- signature: HexString;
2744
- fields: Record<CertificateFieldNameUnder50Bytes, string>;
2745
- certifier: PubKeyHex;
2746
- keyringRevealer: PubKeyHex | "certifier";
2747
- keyringForSubject: Record<CertificateFieldNameUnder50Bytes, Base64String>;
2748
- acquisitionProtocol: "direct" | "issuance";
2749
- certifierUrl?: string;
2750
- }): Promise<{
2751
- type: Base64String;
2752
- subject: PubKeyHex;
2753
- serialNumber: Base64String;
2754
- certifier: PubKeyHex;
2755
- revocationOutpoint: OutpointString;
2756
- signature: HexString;
2757
- fields: Record<CertificateFieldNameUnder50Bytes, string>;
2758
- }>
2759
- async listCertificates(args: {
2760
- certifiers: PubKeyHex[];
2761
- types: Base64String[];
2762
- limit?: PositiveIntegerDefault10Max10000;
2763
- offset?: PositiveIntegerOrZero;
2764
- privileged?: BooleanDefaultFalse;
2765
- privilegedReason?: DescriptionString5to50Bytes;
2766
- }): Promise<{
2767
- totalCertificates: PositiveIntegerOrZero;
2768
- certificates: Array<{
2769
- type: Base64String;
2770
- subject: PubKeyHex;
2771
- serialNumber: Base64String;
2772
- certifier: PubKeyHex;
2773
- revocationOutpoint: OutpointString;
2774
- signature: HexString;
2775
- fields: Record<CertificateFieldNameUnder50Bytes, string>;
2776
- }>;
2777
- }>
2778
- async proveCertificate(args: {
2779
- certificate: {
2780
- type: Base64String;
2781
- subject: PubKeyHex;
2782
- serialNumber: Base64String;
2783
- certifier: PubKeyHex;
2784
- revocationOutpoint: OutpointString;
2785
- signature: HexString;
2786
- fields: Record<CertificateFieldNameUnder50Bytes, string>;
2787
- };
2788
- fieldsToReveal: CertificateFieldNameUnder50Bytes[];
2789
- verifier: PubKeyHex;
2790
- privileged?: BooleanDefaultFalse;
2791
- privilegedReason?: DescriptionString5to50Bytes;
2792
- }): Promise<{
2793
- keyringForVerifier: Record<CertificateFieldNameUnder50Bytes, Base64String>;
2794
- }>
2795
- async relinquishCertificate(args: {
2796
- type: Base64String;
2797
- serialNumber: Base64String;
2798
- certifier: PubKeyHex;
2799
- }): Promise<{
2800
- relinquished: true;
2801
- }>
2802
- async discoverByIdentityKey(args: {
2803
- identityKey: PubKeyHex;
2804
- limit?: PositiveIntegerDefault10Max10000;
2805
- offset?: PositiveIntegerOrZero;
2806
- }): Promise<{
2807
- totalCertificates: PositiveIntegerOrZero;
2808
- certificates: Array<{
2809
- type: Base64String;
2810
- subject: PubKeyHex;
2811
- serialNumber: Base64String;
2812
- certifier: PubKeyHex;
2813
- revocationOutpoint: OutpointString;
2814
- signature: HexString;
2815
- fields: Record<CertificateFieldNameUnder50Bytes, Base64String>;
2816
- certifierInfo: {
2817
- name: EntityNameStringMax100Bytes;
2818
- iconUrl: EntityIconURLStringMax500Bytes;
2819
- description: DescriptionString5to50Bytes;
2820
- trust: PositiveIntegerMax10;
2821
- };
2822
- publiclyRevealedKeyring: Record<CertificateFieldNameUnder50Bytes, Base64String>;
2823
- decryptedFields: Record<CertificateFieldNameUnder50Bytes, string>;
2824
- }>;
2825
- }>
2826
- async discoverByAttributes(args: {
2827
- attributes: Record<CertificateFieldNameUnder50Bytes, string>;
2828
- limit?: PositiveIntegerDefault10Max10000;
2829
- offset?: PositiveIntegerOrZero;
2830
- }): Promise<{
2831
- totalCertificates: PositiveIntegerOrZero;
2832
- certificates: Array<{
2833
- type: Base64String;
2834
- subject: PubKeyHex;
2835
- serialNumber: Base64String;
2836
- certifier: PubKeyHex;
2837
- revocationOutpoint: OutpointString;
2838
- signature: HexString;
2839
- fields: Record<CertificateFieldNameUnder50Bytes, Base64String>;
2840
- certifierInfo: {
2841
- name: EntityNameStringMax100Bytes;
2842
- iconUrl: EntityIconURLStringMax500Bytes;
2843
- description: DescriptionString5to50Bytes;
2844
- trust: PositiveIntegerMax10;
2845
- };
2846
- publiclyRevealedKeyring: Record<CertificateFieldNameUnder50Bytes, Base64String>;
2847
- decryptedFields: Record<CertificateFieldNameUnder50Bytes, string>;
2848
- }>;
2849
- }>
2850
- async isAuthenticated(args: {}): Promise<{
2851
- authenticated: boolean;
2852
- }>
2853
- async waitForAuthentication(args: {}): Promise<{
2854
- authenticated: true;
2855
- }>
2856
- async getHeight(args: {}): Promise<{
2857
- height: PositiveInteger;
2858
- }>
2859
- async getHeaderForHeight(args: {
2860
- height: PositiveInteger;
2861
- }): Promise<{
2862
- header: HexString;
2863
- }>
2864
- async getNetwork(args: {}): Promise<{
2865
- network: "mainnet" | "testnet";
2866
- }>
2867
- async getVersion(args: {}): Promise<{
2868
- version: VersionString7To30Bytes;
2869
- }>
2870
- }
2871
- ```
2872
-
2873
- Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
2874
-
2875
2434
  ---
2876
2435
  ### Class: WalletWireTransceiver
2877
2436
 
@@ -2881,167 +2440,18 @@ A way to make remote calls to a wallet over a wallet wire.
2881
2440
  export default class WalletWireTransceiver implements Wallet {
2882
2441
  wire: WalletWire;
2883
2442
  constructor(wire: WalletWire)
2884
- async createAction(args: {
2885
- description: DescriptionString5to50Bytes;
2886
- inputBEEF?: BEEF;
2887
- inputs?: Array<{
2888
- outpoint: OutpointString;
2889
- unlockingScript?: HexString;
2890
- unlockingScriptLength?: PositiveInteger;
2891
- inputDescription: DescriptionString5to50Bytes;
2892
- sequenceNumber?: PositiveIntegerOrZero;
2893
- }>;
2894
- outputs?: Array<{
2895
- lockingScript: HexString;
2896
- satoshis: SatoshiValue;
2897
- outputDescription: DescriptionString5to50Bytes;
2898
- basket?: BasketStringUnder300Bytes;
2899
- customInstructions?: string;
2900
- tags?: OutputTagStringUnder300Bytes[];
2901
- }>;
2902
- lockTime?: PositiveIntegerOrZero;
2903
- version?: PositiveIntegerOrZero;
2904
- labels?: LabelStringUnder300Bytes[];
2905
- options?: {
2906
- signAndProcess?: BooleanDefaultTrue;
2907
- acceptDelayedBroadcast?: BooleanDefaultTrue;
2908
- trustSelf?: "known";
2909
- knownTxids?: TXIDHexString[];
2910
- returnTXIDOnly?: BooleanDefaultFalse;
2911
- noSend?: BooleanDefaultFalse;
2912
- noSendChange?: OutpointString[];
2913
- sendWith?: TXIDHexString[];
2914
- randomizeOutputs?: BooleanDefaultTrue;
2915
- };
2916
- }, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<{
2917
- txid?: TXIDHexString;
2918
- tx?: BEEF;
2919
- noSendChange?: OutpointString[];
2920
- sendWithResults?: Array<{
2921
- txid: TXIDHexString;
2922
- status: "unproven" | "sending" | "failed";
2923
- }>;
2924
- signableTransaction?: {
2925
- tx: BEEF;
2926
- reference: Base64String;
2927
- };
2928
- }>
2929
- async signAction(args: {
2930
- spends: Record<PositiveIntegerOrZero, {
2931
- unlockingScript: HexString;
2932
- sequenceNumber?: PositiveIntegerOrZero;
2933
- }>;
2934
- reference: Base64String;
2935
- options?: {
2936
- acceptDelayedBroadcast?: BooleanDefaultTrue;
2937
- returnTXIDOnly?: BooleanDefaultFalse;
2938
- noSend?: BooleanDefaultFalse;
2939
- noSendChange?: OutpointString[];
2940
- sendWith: TXIDHexString[];
2941
- };
2942
- }, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<{
2943
- txid?: TXIDHexString;
2944
- tx?: BEEF;
2945
- noSendChange?: OutpointString[];
2946
- sendWithResults?: Array<{
2947
- txid: TXIDHexString;
2948
- status: "unproven" | "sending" | "failed";
2949
- }>;
2950
- }>
2443
+ async createAction(args: CreateActionArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<CreateActionResult>
2444
+ async signAction(args: SignActionArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<SignActionResult>
2951
2445
  async abortAction(args: {
2952
2446
  reference: Base64String;
2953
2447
  }, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<{
2954
2448
  aborted: true;
2955
2449
  }>
2956
- async listActions(args: {
2957
- seekPermission?: BooleanDefaultTrue;
2958
- labels: LabelStringUnder300Bytes[];
2959
- labelQueryMode?: "any" | "all";
2960
- includeLabels?: BooleanDefaultFalse;
2961
- includeInputs?: BooleanDefaultFalse;
2962
- includeInputSourceLockingScripts?: BooleanDefaultFalse;
2963
- includeInputUnlockingScripts?: BooleanDefaultFalse;
2964
- includeOutputs?: BooleanDefaultFalse;
2965
- includeOutputLockingScripts?: BooleanDefaultFalse;
2966
- limit?: PositiveIntegerDefault10Max10000;
2967
- offset?: PositiveIntegerOrZero;
2968
- }, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<{
2969
- totalActions: PositiveIntegerOrZero;
2970
- actions: Array<{
2971
- txid: TXIDHexString;
2972
- satoshis: SatoshiValue;
2973
- status: "completed" | "unprocessed" | "sending" | "unproven" | "unsigned" | "nosend" | "nonfinal";
2974
- isOutgoing: boolean;
2975
- description: DescriptionString5to50Bytes;
2976
- labels?: LabelStringUnder300Bytes[];
2977
- version: PositiveIntegerOrZero;
2978
- lockTime: PositiveIntegerOrZero;
2979
- inputs?: Array<{
2980
- sourceOutpoint: OutpointString;
2981
- sourceSatoshis: SatoshiValue;
2982
- sourceLockingScript?: HexString;
2983
- unlockingScript?: HexString;
2984
- inputDescription: DescriptionString5to50Bytes;
2985
- sequenceNumber: PositiveIntegerOrZero;
2986
- }>;
2987
- outputs?: Array<{
2988
- outputIndex: PositiveIntegerOrZero;
2989
- satoshis: SatoshiValue;
2990
- lockingScript?: HexString;
2991
- spendable: boolean;
2992
- outputDescription: DescriptionString5to50Bytes;
2993
- basket: BasketStringUnder300Bytes;
2994
- tags: OutputTagStringUnder300Bytes[];
2995
- customInstructions?: string;
2996
- }>;
2997
- }>;
2998
- }>
2999
- async internalizeAction(args: {
3000
- seekPermission?: BooleanDefaultTrue;
3001
- tx: AtomicBEEF;
3002
- outputs: Array<{
3003
- outputIndex: PositiveIntegerOrZero;
3004
- protocol: "wallet payment" | "basket insertion";
3005
- paymentRemittance?: {
3006
- derivationPrefix: Base64String;
3007
- derivationSuffix: Base64String;
3008
- senderIdentityKey: PubKeyHex;
3009
- };
3010
- insertionRemittance?: {
3011
- basket: BasketStringUnder300Bytes;
3012
- customInstructions?: string;
3013
- tags?: OutputTagStringUnder300Bytes[];
3014
- };
3015
- }>;
3016
- description: DescriptionString5to50Bytes;
3017
- labels?: LabelStringUnder300Bytes[];
3018
- }, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<{
2450
+ async listActions(args: ListActionsArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<ListActionsResult>
2451
+ async internalizeAction(args: InternalizeActionArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<{
3019
2452
  accepted: true;
3020
2453
  }>
3021
- async listOutputs(args: {
3022
- seekPermission?: BooleanDefaultTrue;
3023
- basket: BasketStringUnder300Bytes;
3024
- tags?: OutputTagStringUnder300Bytes[];
3025
- tagQueryMode?: "all" | "any";
3026
- include?: "locking scripts" | "entire transactions";
3027
- includeCustomInstructions?: BooleanDefaultFalse;
3028
- includeTags?: BooleanDefaultFalse;
3029
- includeLabels?: BooleanDefaultFalse;
3030
- limit?: PositiveIntegerDefault10Max10000;
3031
- offset?: PositiveIntegerOrZero;
3032
- }, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<{
3033
- totalOutputs: PositiveIntegerOrZero;
3034
- BEEF?: BEEF;
3035
- outputs: Array<{
3036
- outpoint: OutpointString;
3037
- satoshis: SatoshiValue;
3038
- lockingScript?: HexString;
3039
- spendable: true;
3040
- customInstructions?: string;
3041
- tags?: OutputTagStringUnder300Bytes[];
3042
- labels?: LabelStringUnder300Bytes[];
3043
- }>;
3044
- }>
2454
+ async listOutputs(args: ListOutputsArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<ListOutputsResult>
3045
2455
  async relinquishOutput(args: {
3046
2456
  basket: BasketStringUnder300Bytes;
3047
2457
  output: OutpointString;
@@ -3188,28 +2598,7 @@ export default class WalletWireTransceiver implements Wallet {
3188
2598
  }, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<{
3189
2599
  valid: true;
3190
2600
  }>
3191
- async acquireCertificate(args: {
3192
- type: Base64String;
3193
- certifier: PubKeyHex;
3194
- acquisitionProtocol: "direct" | "issuance";
3195
- fields: Record<CertificateFieldNameUnder50Bytes, string>;
3196
- serialNumber?: Base64String;
3197
- revocationOutpoint?: OutpointString;
3198
- signature?: HexString;
3199
- certifierUrl?: string;
3200
- keyringRevealer?: PubKeyHex | "certifier";
3201
- keyringForSubject?: Record<CertificateFieldNameUnder50Bytes, Base64String>;
3202
- privileged?: BooleanDefaultFalse;
3203
- privilegedReason?: DescriptionString5to50Bytes;
3204
- }, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<{
3205
- type: Base64String;
3206
- subject: PubKeyHex;
3207
- serialNumber: Base64String;
3208
- certifier: PubKeyHex;
3209
- revocationOutpoint: OutpointString;
3210
- signature: HexString;
3211
- fields: Record<CertificateFieldNameUnder50Bytes, string>;
3212
- }>
2601
+ async acquireCertificate(args: AcquireCertificateArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<AcquireCertificateResult>
3213
2602
  async listCertificates(args: {
3214
2603
  certifiers: PubKeyHex[];
3215
2604
  types: Base64String[];
@@ -3217,35 +2606,8 @@ export default class WalletWireTransceiver implements Wallet {
3217
2606
  offset?: PositiveIntegerOrZero;
3218
2607
  privileged?: BooleanDefaultFalse;
3219
2608
  privilegedReason?: DescriptionString5to50Bytes;
3220
- }, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<{
3221
- totalCertificates: PositiveIntegerOrZero;
3222
- certificates: Array<{
3223
- type: Base64String;
3224
- subject: PubKeyHex;
3225
- serialNumber: Base64String;
3226
- certifier: PubKeyHex;
3227
- revocationOutpoint: OutpointString;
3228
- signature: HexString;
3229
- fields: Record<CertificateFieldNameUnder50Bytes, string>;
3230
- }>;
3231
- }>
3232
- async proveCertificate(args: {
3233
- certificate: {
3234
- type: Base64String;
3235
- subject: PubKeyHex;
3236
- serialNumber: Base64String;
3237
- certifier: PubKeyHex;
3238
- revocationOutpoint: OutpointString;
3239
- signature: HexString;
3240
- fields: Record<CertificateFieldNameUnder50Bytes, string>;
3241
- };
3242
- fieldsToReveal: CertificateFieldNameUnder50Bytes[];
3243
- verifier: PubKeyHex;
3244
- privileged?: BooleanDefaultFalse;
3245
- privilegedReason?: DescriptionString5to50Bytes;
3246
- }, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<{
3247
- keyringForVerifier: Record<CertificateFieldNameUnder50Bytes, Base64String>;
3248
- }>
2609
+ }, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<ListCertificatesResult>
2610
+ async proveCertificate(args: ProveCertificateArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<ProveCertificateResult>
3249
2611
  async relinquishCertificate(args: {
3250
2612
  type: Base64String;
3251
2613
  serialNumber: Base64String;
@@ -3258,51 +2620,13 @@ export default class WalletWireTransceiver implements Wallet {
3258
2620
  identityKey: PubKeyHex;
3259
2621
  limit?: PositiveIntegerDefault10Max10000;
3260
2622
  offset?: PositiveIntegerOrZero;
3261
- }, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<{
3262
- totalCertificates: PositiveIntegerOrZero;
3263
- certificates: Array<{
3264
- type: Base64String;
3265
- subject: PubKeyHex;
3266
- serialNumber: Base64String;
3267
- certifier: PubKeyHex;
3268
- revocationOutpoint: OutpointString;
3269
- signature: HexString;
3270
- fields: Record<CertificateFieldNameUnder50Bytes, Base64String>;
3271
- certifierInfo: {
3272
- name: EntityNameStringMax100Bytes;
3273
- iconUrl: EntityIconURLStringMax500Bytes;
3274
- description: DescriptionString5to50Bytes;
3275
- trust: PositiveIntegerMax10;
3276
- };
3277
- publiclyRevealedKeyring: Record<CertificateFieldNameUnder50Bytes, Base64String>;
3278
- decryptedFields: Record<CertificateFieldNameUnder50Bytes, string>;
3279
- }>;
3280
- }>
2623
+ }, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<DiscoverCertificatesResult>
3281
2624
  async discoverByAttributes(args: {
3282
2625
  seekPermission?: BooleanDefaultTrue;
3283
2626
  attributes: Record<CertificateFieldNameUnder50Bytes, string>;
3284
2627
  limit?: PositiveIntegerDefault10Max10000;
3285
2628
  offset?: PositiveIntegerOrZero;
3286
- }, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<{
3287
- totalCertificates: PositiveIntegerOrZero;
3288
- certificates: Array<{
3289
- type: Base64String;
3290
- subject: PubKeyHex;
3291
- serialNumber: Base64String;
3292
- certifier: PubKeyHex;
3293
- revocationOutpoint: OutpointString;
3294
- signature: HexString;
3295
- fields: Record<CertificateFieldNameUnder50Bytes, Base64String>;
3296
- certifierInfo: {
3297
- name: EntityNameStringMax100Bytes;
3298
- iconUrl: EntityIconURLStringMax500Bytes;
3299
- description: DescriptionString5to50Bytes;
3300
- trust: PositiveIntegerMax10;
3301
- };
3302
- publiclyRevealedKeyring: Record<CertificateFieldNameUnder50Bytes, Base64String>;
3303
- decryptedFields: Record<CertificateFieldNameUnder50Bytes, string>;
3304
- }>;
3305
- }>
2629
+ }, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<DiscoverCertificatesResult>
3306
2630
  async isAuthenticated(args: {}, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<{
3307
2631
  authenticated: boolean;
3308
2632
  }>
@@ -3328,6 +2652,21 @@ export default class WalletWireTransceiver implements Wallet {
3328
2652
 
3329
2653
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
3330
2654
 
2655
+ ---
2656
+ ### Class: WalletWireProcessor
2657
+
2658
+ Processes incoming wallet calls received over a wallet wire, with a given wallet.
2659
+
2660
+ ```ts
2661
+ export default class WalletWireProcessor implements WalletWire {
2662
+ wallet: Wallet;
2663
+ constructor(wallet: Wallet)
2664
+ async transmitToWallet(message: number[]): Promise<number[]>
2665
+ }
2666
+ ```
2667
+
2668
+ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
2669
+
3331
2670
  ---
3332
2671
  ### Class: HTTPWalletWire
3333
2672
 
@@ -3344,16 +2683,14 @@ export default class HTTPWalletWire implements WalletWire {
3344
2683
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
3345
2684
 
3346
2685
  ---
3347
- ### Class: WalletClient
2686
+ ### Class: XDMSubstrate
3348
2687
 
3349
- The SDK is how applications communicate with wallets over a communications substrate.
2688
+ Facilitates wallet operations over cross-document messaging.
3350
2689
 
3351
2690
  ```ts
3352
- export default class WalletClient implements Wallet {
3353
- public substrate: "auto" | Wallet;
3354
- originator?: OriginatorDomainNameStringUnder250Bytes;
3355
- constructor(substrate: "auto" | "Cicada" | "XDM" | "window.CWI" | Wallet = "auto", originator?: OriginatorDomainNameStringUnder250Bytes)
3356
- async connectToSubstrate()
2691
+ export default class XDMSubstrate implements Wallet {
2692
+ constructor(domain: string = "*")
2693
+ async invoke(call: CallType, args: any): Promise<any>
3357
2694
  async createAction(args: {
3358
2695
  description: DescriptionString5to50Bytes;
3359
2696
  inputs?: Array<{
@@ -3762,13 +3099,13 @@ export default class WalletClient implements Wallet {
3762
3099
  decryptedFields: Record<CertificateFieldNameUnder50Bytes, string>;
3763
3100
  }>;
3764
3101
  }>
3765
- async isAuthenticated(args: {} = {}): Promise<{
3102
+ async isAuthenticated(args: {}): Promise<{
3766
3103
  authenticated: boolean;
3767
3104
  }>
3768
- async waitForAuthentication(args: {} = {}): Promise<{
3105
+ async waitForAuthentication(args: {}): Promise<{
3769
3106
  authenticated: true;
3770
3107
  }>
3771
- async getHeight(args: {} = {}): Promise<{
3108
+ async getHeight(args: {}): Promise<{
3772
3109
  height: PositiveInteger;
3773
3110
  }>
3774
3111
  async getHeaderForHeight(args: {
@@ -3776,10 +3113,10 @@ export default class WalletClient implements Wallet {
3776
3113
  }): Promise<{
3777
3114
  header: HexString;
3778
3115
  }>
3779
- async getNetwork(args: {} = {}): Promise<{
3116
+ async getNetwork(args: {}): Promise<{
3780
3117
  network: "mainnet" | "testnet";
3781
3118
  }>
3782
- async getVersion(args: {} = {}): Promise<{
3119
+ async getVersion(args: {}): Promise<{
3783
3120
  version: VersionString7To30Bytes;
3784
3121
  }>
3785
3122
  }
@@ -3788,15 +3125,214 @@ export default class WalletClient implements Wallet {
3788
3125
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
3789
3126
 
3790
3127
  ---
3791
- ### Class: WalletWireProcessor
3128
+ ### Class: WalletClient
3792
3129
 
3793
- Processes incoming wallet calls received over a wallet wire, with a given wallet.
3130
+ The SDK is how applications communicate with wallets over a communications substrate.
3794
3131
 
3795
3132
  ```ts
3796
- export default class WalletWireProcessor implements WalletWire {
3797
- wallet: Wallet;
3798
- constructor(wallet: Wallet)
3799
- async transmitToWallet(message: number[]): Promise<number[]>
3133
+ export default class WalletClient implements Wallet {
3134
+ public substrate: "auto" | Wallet;
3135
+ originator?: OriginatorDomainNameStringUnder250Bytes;
3136
+ constructor(substrate: "auto" | "Cicada" | "XDM" | "window.CWI" | Wallet = "auto", originator?: OriginatorDomainNameStringUnder250Bytes)
3137
+ async connectToSubstrate()
3138
+ async createAction(args: CreateActionArgs): Promise<CreateActionResult>
3139
+ async signAction(args: SignActionArgs): Promise<SignActionResult>
3140
+ async abortAction(args: {
3141
+ reference: Base64String;
3142
+ }): Promise<{
3143
+ aborted: true;
3144
+ }>
3145
+ async listActions(args: ListActionsArgs): Promise<ListActionsResult>
3146
+ async internalizeAction(args: InternalizeActionArgs): Promise<{
3147
+ accepted: true;
3148
+ }>
3149
+ async listOutputs(args: ListOutputsArgs): Promise<ListOutputsResult>
3150
+ async relinquishOutput(args: {
3151
+ basket: BasketStringUnder300Bytes;
3152
+ output: OutpointString;
3153
+ }): Promise<{
3154
+ relinquished: true;
3155
+ }>
3156
+ async getPublicKey(args: {
3157
+ identityKey?: true;
3158
+ protocolID?: [
3159
+ 0 | 1 | 2,
3160
+ ProtocolString5To400Bytes
3161
+ ];
3162
+ keyID?: KeyIDStringUnder800Bytes;
3163
+ privileged?: BooleanDefaultFalse;
3164
+ privilegedReason?: DescriptionString5to50Bytes;
3165
+ counterparty?: PubKeyHex | "self" | "anyone";
3166
+ forSelf?: BooleanDefaultFalse;
3167
+ }): Promise<{
3168
+ publicKey: PubKeyHex;
3169
+ }>
3170
+ async revealCounterpartyKeyLinkage(args: {
3171
+ counterparty: PubKeyHex;
3172
+ verifier: PubKeyHex;
3173
+ privilegedReason?: DescriptionString5to50Bytes;
3174
+ privileged?: BooleanDefaultFalse;
3175
+ }): Promise<{
3176
+ prover: PubKeyHex;
3177
+ verifier: PubKeyHex;
3178
+ counterparty: PubKeyHex;
3179
+ revelationTime: ISOTimestampString;
3180
+ encryptedLinkage: Byte[];
3181
+ encryptedLinkageProof: Byte[];
3182
+ }>
3183
+ async revealSpecificKeyLinkage(args: {
3184
+ counterparty: PubKeyHex;
3185
+ verifier: PubKeyHex;
3186
+ protocolID: [
3187
+ 0 | 1 | 2,
3188
+ ProtocolString5To400Bytes
3189
+ ];
3190
+ keyID: KeyIDStringUnder800Bytes;
3191
+ privilegedReason?: DescriptionString5to50Bytes;
3192
+ privileged?: BooleanDefaultFalse;
3193
+ }): Promise<{
3194
+ prover: PubKeyHex;
3195
+ verifier: PubKeyHex;
3196
+ counterparty: PubKeyHex;
3197
+ protocolID: [
3198
+ 0 | 1 | 2,
3199
+ ProtocolString5To400Bytes
3200
+ ];
3201
+ keyID: KeyIDStringUnder800Bytes;
3202
+ encryptedLinkage: Byte[];
3203
+ encryptedLinkageProof: Byte[];
3204
+ proofType: Byte;
3205
+ }>
3206
+ async encrypt(args: {
3207
+ plaintext: Byte[];
3208
+ protocolID: [
3209
+ 0 | 1 | 2,
3210
+ ProtocolString5To400Bytes
3211
+ ];
3212
+ keyID: KeyIDStringUnder800Bytes;
3213
+ privilegedReason?: DescriptionString5to50Bytes;
3214
+ counterparty?: PubKeyHex | "self" | "anyone";
3215
+ privileged?: BooleanDefaultFalse;
3216
+ }): Promise<{
3217
+ ciphertext: Byte[];
3218
+ }>
3219
+ async decrypt(args: {
3220
+ ciphertext: Byte[];
3221
+ protocolID: [
3222
+ 0 | 1 | 2,
3223
+ ProtocolString5To400Bytes
3224
+ ];
3225
+ keyID: KeyIDStringUnder800Bytes;
3226
+ privilegedReason?: DescriptionString5to50Bytes;
3227
+ counterparty?: PubKeyHex | "self" | "anyone";
3228
+ privileged?: BooleanDefaultFalse;
3229
+ }): Promise<{
3230
+ plaintext: Byte[];
3231
+ }>
3232
+ async createHmac(args: {
3233
+ data: Byte[];
3234
+ protocolID: [
3235
+ 0 | 1 | 2,
3236
+ ProtocolString5To400Bytes
3237
+ ];
3238
+ keyID: KeyIDStringUnder800Bytes;
3239
+ privilegedReason?: DescriptionString5to50Bytes;
3240
+ counterparty?: PubKeyHex | "self" | "anyone";
3241
+ privileged?: BooleanDefaultFalse;
3242
+ }): Promise<{
3243
+ hmac: Byte[];
3244
+ }>
3245
+ async verifyHmac(args: {
3246
+ data: Byte[];
3247
+ hmac: Byte[];
3248
+ protocolID: [
3249
+ 0 | 1 | 2,
3250
+ ProtocolString5To400Bytes
3251
+ ];
3252
+ keyID: KeyIDStringUnder800Bytes;
3253
+ privilegedReason?: DescriptionString5to50Bytes;
3254
+ counterparty?: PubKeyHex | "self" | "anyone";
3255
+ privileged?: BooleanDefaultFalse;
3256
+ }): Promise<{
3257
+ valid: true;
3258
+ }>
3259
+ async createSignature(args: {
3260
+ data?: Byte[];
3261
+ hashToDirectlySign?: Byte[];
3262
+ protocolID: [
3263
+ 0 | 1 | 2,
3264
+ ProtocolString5To400Bytes
3265
+ ];
3266
+ keyID: KeyIDStringUnder800Bytes;
3267
+ privilegedReason?: DescriptionString5to50Bytes;
3268
+ counterparty?: PubKeyHex | "self" | "anyone";
3269
+ privileged?: BooleanDefaultFalse;
3270
+ }): Promise<{
3271
+ signature: Byte[];
3272
+ }>
3273
+ async verifySignature(args: {
3274
+ data?: Byte[];
3275
+ hashToDirectlyVerify?: Byte[];
3276
+ signature: Byte[];
3277
+ protocolID: [
3278
+ 0 | 1 | 2,
3279
+ ProtocolString5To400Bytes
3280
+ ];
3281
+ keyID: KeyIDStringUnder800Bytes;
3282
+ privilegedReason?: DescriptionString5to50Bytes;
3283
+ counterparty?: PubKeyHex | "self" | "anyone";
3284
+ forSelf?: BooleanDefaultFalse;
3285
+ privileged?: BooleanDefaultFalse;
3286
+ }): Promise<{
3287
+ valid: true;
3288
+ }>
3289
+ async acquireCertificate(args: AcquireCertificateArgs): Promise<AcquireCertificateResult>
3290
+ async listCertificates(args: {
3291
+ certifiers: PubKeyHex[];
3292
+ types: Base64String[];
3293
+ limit?: PositiveIntegerDefault10Max10000;
3294
+ offset?: PositiveIntegerOrZero;
3295
+ privileged?: BooleanDefaultFalse;
3296
+ privilegedReason?: DescriptionString5to50Bytes;
3297
+ }): Promise<ListCertificatesResult>
3298
+ async proveCertificate(args: ProveCertificateArgs): Promise<ProveCertificateResult>
3299
+ async relinquishCertificate(args: {
3300
+ type: Base64String;
3301
+ serialNumber: Base64String;
3302
+ certifier: PubKeyHex;
3303
+ }): Promise<{
3304
+ relinquished: true;
3305
+ }>
3306
+ async discoverByIdentityKey(args: {
3307
+ identityKey: PubKeyHex;
3308
+ limit?: PositiveIntegerDefault10Max10000;
3309
+ offset?: PositiveIntegerOrZero;
3310
+ }): Promise<DiscoverCertificatesResult>
3311
+ async discoverByAttributes(args: {
3312
+ attributes: Record<CertificateFieldNameUnder50Bytes, string>;
3313
+ limit?: PositiveIntegerDefault10Max10000;
3314
+ offset?: PositiveIntegerOrZero;
3315
+ }): Promise<DiscoverCertificatesResult>
3316
+ async isAuthenticated(args: {} = {}): Promise<{
3317
+ authenticated: boolean;
3318
+ }>
3319
+ async waitForAuthentication(args: {} = {}): Promise<{
3320
+ authenticated: true;
3321
+ }>
3322
+ async getHeight(args: {} = {}): Promise<{
3323
+ height: PositiveInteger;
3324
+ }>
3325
+ async getHeaderForHeight(args: {
3326
+ height: PositiveInteger;
3327
+ }): Promise<{
3328
+ header: HexString;
3329
+ }>
3330
+ async getNetwork(args: {} = {}): Promise<{
3331
+ network: "mainnet" | "testnet";
3332
+ }>
3333
+ async getVersion(args: {} = {}): Promise<{
3334
+ version: VersionString7To30Bytes;
3335
+ }>
3800
3336
  }
3801
3337
  ```
3802
3338
 
@@ -3809,19 +3345,19 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
3809
3345
 
3810
3346
  | | | |
3811
3347
  | --- | --- | --- |
3812
- | [AcquisitionProtocol](#type-acquisitionprotocol) | [EntityNameStringMax100Bytes](#type-entitynamestringmax100characters) | [PositiveIntegerMax10](#type-positiveintegermax10) |
3813
- | [ActionStatus](#type-actionstatus) | [ErrorCodeString10To40Bytes](#type-errorcodestring10to40characters) | [PositiveIntegerOrZero](#type-positiveintegerorzero) |
3814
- | [AtomicBEEF](#type-atomicbeef) | [ErrorDescriptionString20To200Bytes](#type-errordescriptionstring20to200characters) | [ProtocolString5To400Bytes](#type-protocolstring5to400characters) |
3348
+ | [AcquisitionProtocol](#type-acquisitionprotocol) | [EntityNameStringMax100Bytes](#type-entitynamestringmax100bytes) | [PositiveIntegerMax10](#type-positiveintegermax10) |
3349
+ | [ActionStatus](#type-actionstatus) | [ErrorCodeString10To40Bytes](#type-errorcodestring10to40bytes) | [PositiveIntegerOrZero](#type-positiveintegerorzero) |
3350
+ | [AtomicBEEF](#type-atomicbeef) | [ErrorDescriptionString20To200Bytes](#type-errordescriptionstring20to200bytes) | [ProtocolString5To400Bytes](#type-protocolstring5to400bytes) |
3815
3351
  | [BEEF](#type-beef) | [HexString](#type-hexstring) | [PubKeyHex](#type-pubkeyhex) |
3816
3352
  | [Base64String](#type-base64string) | [ISOTimestampString](#type-isotimestampstring) | [SatoshiValue](#type-satoshivalue) |
3817
- | [BasketStringUnder300Bytes](#type-basketstringunder300characters) | [KeyIDStringUnder800Bytes](#type-keyidstringunder800characters) | [TXIDHexString](#type-txidhexstring) |
3353
+ | [BasketStringUnder300Bytes](#type-basketstringunder300bytes) | [KeyIDStringUnder800Bytes](#type-keyidstringunder800bytes) | [TXIDHexString](#type-txidhexstring) |
3818
3354
  | [BooleanDefaultFalse](#type-booleandefaultfalse) | [KeyringRevealer](#type-keyringrevealer) | [TrustSelf](#type-trustself) |
3819
- | [BooleanDefaultTrue](#type-booleandefaulttrue) | [LabelStringUnder300Bytes](#type-labelstringunder300characters) | [VersionString7To30Bytes](#type-versionstring7to30characters) |
3820
- | [Byte](#type-byte) | [OriginatorDomainNameStringUnder250Bytes](#type-originatordomainnamestringunder250characters) | [WalletCounterparty](#type-walletcounterparty) |
3355
+ | [BooleanDefaultTrue](#type-booleandefaulttrue) | [LabelStringUnder300Bytes](#type-labelstringunder300bytes) | [VersionString7To30Bytes](#type-versionstring7to30bytes) |
3356
+ | [Byte](#type-byte) | [OriginatorDomainNameStringUnder250Bytes](#type-originatordomainnamestringunder250bytes) | [WalletCounterparty](#type-walletcounterparty) |
3821
3357
  | [CallType](#type-calltype) | [OutpointString](#type-outpointstring) | [WalletErrorCode](#type-walleterrorcode) |
3822
- | [CertificateFieldNameUnder50Bytes](#type-certificatefieldnameunder50characters) | [OutputTagStringUnder300Bytes](#type-outputtagstringunder300characters) | [WalletNetwork](#type-walletnetwork) |
3823
- | [DescriptionString5to50Bytes](#type-descriptionstring5to50characters) | [PositiveInteger](#type-positiveinteger) | [WalletProtocol](#type-walletprotocol) |
3824
- | [EntityIconURLStringMax500Bytes](#type-entityiconurlstringmax500characters) | [PositiveIntegerDefault10Max10000](#type-positiveintegerdefault10max10000) | |
3358
+ | [CertificateFieldNameUnder50Bytes](#type-certificatefieldnameunder50bytes) | [OutputTagStringUnder300Bytes](#type-outputtagstringunder300bytes) | [WalletNetwork](#type-walletnetwork) |
3359
+ | [DescriptionString5to50Bytes](#type-descriptionstring5to50bytes) | [PositiveInteger](#type-positiveinteger) | [WalletProtocol](#type-walletprotocol) |
3360
+ | [EntityIconURLStringMax500Bytes](#type-entityiconurlstringmax500bytes) | [PositiveIntegerDefault10Max10000](#type-positiveintegerdefault10max10000) | |
3825
3361
 
3826
3362
  Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
3827
3363
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bsv/sdk",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "type": "module",
5
5
  "description": "BSV Blockchain Software Development Kit",
6
6
  "main": "dist/cjs/mod.js",