@bsv/wallet-toolbox 1.1.12 → 1.1.14
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.
- package/.github/workflows/push.yaml +2 -2
- package/README.md +3 -22
- package/docs/README.md +16 -10
- package/docs/client.md +490 -382
- package/docs/open-rpc/index.html +46 -0
- package/docs/services.md +236 -211
- package/docs/setup.md +51 -34
- package/docs/storage.md +30 -5
- package/docs/wallet.md +490 -382
- package/out/src/SetupClient.d.ts +9 -0
- package/out/src/SetupClient.d.ts.map +1 -1
- package/out/src/SetupClient.js +34 -18
- package/out/src/SetupClient.js.map +1 -1
- package/out/src/Wallet.d.ts +6 -0
- package/out/src/Wallet.d.ts.map +1 -1
- package/out/src/Wallet.js +57 -0
- package/out/src/Wallet.js.map +1 -1
- package/out/src/sdk/WalletServices.interfaces.d.ts +18 -13
- package/out/src/sdk/WalletServices.interfaces.d.ts.map +1 -1
- package/out/src/services/Services.d.ts +4 -11
- package/out/src/services/Services.d.ts.map +1 -1
- package/out/src/services/Services.js +19 -37
- package/out/src/services/Services.js.map +1 -1
- package/out/src/services/__tests/ARC.test.d.ts +2 -0
- package/out/src/services/__tests/ARC.test.d.ts.map +1 -0
- package/out/src/services/__tests/ARC.test.js +98 -0
- package/out/src/services/__tests/ARC.test.js.map +1 -0
- package/out/src/services/__tests/arcServices.test.d.ts +2 -0
- package/out/src/services/__tests/arcServices.test.d.ts.map +1 -0
- package/out/src/services/__tests/arcServices.test.js +7 -0
- package/out/src/services/__tests/arcServices.test.js.map +1 -0
- package/out/src/services/__tests/postBeef.test.js +45 -7
- package/out/src/services/__tests/postBeef.test.js.map +1 -1
- package/out/src/services/createDefaultWalletServicesOptions.d.ts +1 -0
- package/out/src/services/createDefaultWalletServicesOptions.d.ts.map +1 -1
- package/out/src/services/createDefaultWalletServicesOptions.js +16 -4
- package/out/src/services/createDefaultWalletServicesOptions.js.map +1 -1
- package/out/src/services/providers/ARC.d.ts +91 -0
- package/out/src/services/providers/ARC.d.ts.map +1 -0
- package/out/src/services/providers/ARC.js +192 -0
- package/out/src/services/providers/ARC.js.map +1 -0
- package/out/src/services/providers/SdkWhatsOnChain.d.ts +21 -0
- package/out/src/services/providers/SdkWhatsOnChain.d.ts.map +1 -0
- package/out/src/services/providers/SdkWhatsOnChain.js +67 -0
- package/out/src/services/providers/SdkWhatsOnChain.js.map +1 -0
- package/out/src/services/providers/WhatsOnChain.d.ts +35 -0
- package/out/src/services/providers/WhatsOnChain.d.ts.map +1 -0
- package/out/src/services/providers/WhatsOnChain.js +266 -0
- package/out/src/services/providers/WhatsOnChain.js.map +1 -0
- package/out/src/services/providers/__tests/WhatsOnChain.test.d.ts +2 -0
- package/out/src/services/providers/__tests/WhatsOnChain.test.d.ts.map +1 -0
- package/out/src/services/providers/__tests/WhatsOnChain.test.js +176 -0
- package/out/src/services/providers/__tests/WhatsOnChain.test.js.map +1 -0
- package/out/src/signer/methods/createAction.js +3 -3
- package/out/src/signer/methods/createAction.js.map +1 -1
- package/out/src/signer/methods/signAction.js +1 -1
- package/out/src/signer/methods/signAction.js.map +1 -1
- package/out/src/storage/methods/createAction.d.ts.map +1 -1
- package/out/src/storage/methods/createAction.js +9 -2
- package/out/src/storage/methods/createAction.js.map +1 -1
- package/out/src/storage/methods/generateChange.d.ts +12 -1
- package/out/src/storage/methods/generateChange.d.ts.map +1 -1
- package/out/src/storage/methods/generateChange.js +24 -1
- package/out/src/storage/methods/generateChange.js.map +1 -1
- package/out/src/storage/methods/processAction.d.ts.map +1 -1
- package/out/src/storage/methods/processAction.js +1 -1
- package/out/src/storage/methods/processAction.js.map +1 -1
- package/out/src/storage/schema/entities/__tests/ProvenTxTests.test.js +0 -1
- package/out/src/storage/schema/entities/__tests/ProvenTxTests.test.js.map +1 -1
- package/out/src/storage/sync/StorageMySQLDojoReader.js +1 -1
- package/out/src/storage/sync/StorageMySQLDojoReader.js.map +1 -1
- package/out/src/utility/{ScriptTemplateSABPPP.d.ts → ScriptTemplateBRC29.d.ts} +6 -6
- package/out/src/utility/ScriptTemplateBRC29.d.ts.map +1 -0
- package/out/src/utility/{ScriptTemplateSABPPP.js → ScriptTemplateBRC29.js} +4 -4
- package/out/src/utility/ScriptTemplateBRC29.js.map +1 -0
- package/out/src/utility/index.all.d.ts +1 -1
- package/out/src/utility/index.all.d.ts.map +1 -1
- package/out/src/utility/index.all.js +1 -1
- package/out/src/utility/index.all.js.map +1 -1
- package/out/src/utility/index.client.d.ts +1 -1
- package/out/src/utility/index.client.d.ts.map +1 -1
- package/out/src/utility/index.client.js +1 -1
- package/out/src/utility/index.client.js.map +1 -1
- package/out/src/utility/utilityHelpers.js +1 -1
- package/out/src/utility/utilityHelpers.js.map +1 -1
- package/out/test/Wallet/StorageClient/storageClient.man.test.js +22 -3
- package/out/test/Wallet/StorageClient/storageClient.man.test.js.map +1 -1
- package/out/test/Wallet/live/walletLive.man.test.js +2 -2
- package/out/test/Wallet/live/walletLive.man.test.js.map +1 -1
- package/out/test/Wallet/sync/Wallet.updateWalletLegacyTestData.man.test.js +40 -0
- package/out/test/Wallet/sync/Wallet.updateWalletLegacyTestData.man.test.js.map +1 -1
- package/out/test/services/Services.test.js +0 -31
- package/out/test/services/Services.test.js.map +1 -1
- package/out/test/utils/TestUtilsWalletStorage.d.ts +26 -18
- package/out/test/utils/TestUtilsWalletStorage.d.ts.map +1 -1
- package/out/test/utils/TestUtilsWalletStorage.js +135 -27
- package/out/test/utils/TestUtilsWalletStorage.js.map +1 -1
- package/out/test/wallet/list/listActions2.test.js +36 -2
- package/out/test/wallet/list/listActions2.test.js.map +1 -1
- package/out/tsconfig.all.tsbuildinfo +1 -1
- package/package.json +5 -7
- package/src/SetupClient.ts +41 -21
- package/src/Wallet.ts +66 -2
- package/src/sdk/WalletServices.interfaces.ts +19 -14
- package/src/services/Services.ts +23 -62
- package/src/services/__tests/ARC.test.ts +110 -0
- package/src/services/__tests/arcServices.test.ts +8 -0
- package/src/services/__tests/postBeef.test.ts +47 -9
- package/src/services/createDefaultWalletServicesOptions.ts +19 -6
- package/src/services/providers/ARC.ts +289 -0
- package/src/services/providers/SdkWhatsOnChain.ts +96 -0
- package/src/services/providers/WhatsOnChain.ts +369 -0
- package/src/services/providers/__tests/WhatsOnChain.test.ts +227 -0
- package/src/signer/methods/createAction.ts +4 -4
- package/src/signer/methods/signAction.ts +2 -2
- package/src/storage/methods/createAction.ts +26 -4
- package/src/storage/methods/generateChange.ts +42 -2
- package/src/storage/methods/processAction.ts +2 -1
- package/src/storage/schema/entities/__tests/ProvenTxTests.test.ts +0 -1
- package/src/storage/sync/StorageMySQLDojoReader.ts +1 -1
- package/src/utility/{ScriptTemplateSABPPP.ts → ScriptTemplateBRC29.ts} +6 -8
- package/src/utility/index.all.ts +1 -1
- package/src/utility/index.client.ts +1 -1
- package/src/utility/utilityHelpers.ts +1 -1
- package/test/Wallet/StorageClient/storageClient.man.test.ts +30 -4
- package/test/Wallet/live/walletLive.man.test.ts +3 -3
- package/test/Wallet/sync/Wallet.updateWalletLegacyTestData.man.test.ts +54 -0
- package/test/services/Services.test.ts +0 -30
- package/test/utils/TestUtilsWalletStorage.ts +175 -45
- package/test/wallet/list/listActions2.test.ts +4 -7
- package/out/src/services/__tests/postBeefToArcTaal.test.d.ts +0 -2
- package/out/src/services/__tests/postBeefToArcTaal.test.d.ts.map +0 -1
- package/out/src/services/__tests/postBeefToArcTaal.test.js +0 -479
- package/out/src/services/__tests/postBeefToArcTaal.test.js.map +0 -1
- package/out/src/services/__tests/postTxs.test.d.ts +0 -2
- package/out/src/services/__tests/postTxs.test.d.ts.map +0 -1
- package/out/src/services/__tests/postTxs.test.js +0 -28
- package/out/src/services/__tests/postTxs.test.js.map +0 -1
- package/out/src/services/providers/arcServices.d.ts +0 -62
- package/out/src/services/providers/arcServices.d.ts.map +0 -1
- package/out/src/services/providers/arcServices.js +0 -375
- package/out/src/services/providers/arcServices.js.map +0 -1
- package/out/src/services/providers/whatsonchain.d.ts +0 -17
- package/out/src/services/providers/whatsonchain.d.ts.map +0 -1
- package/out/src/services/providers/whatsonchain.js +0 -130
- package/out/src/services/providers/whatsonchain.js.map +0 -1
- package/out/src/utility/ScriptTemplateSABPPP.d.ts.map +0 -1
- package/out/src/utility/ScriptTemplateSABPPP.js.map +0 -1
- package/out/test/examples/README.man.test.d.ts +0 -2
- package/out/test/examples/README.man.test.d.ts.map +0 -1
- package/out/test/examples/README.man.test.js +0 -47
- package/out/test/examples/README.man.test.js.map +0 -1
- package/src/services/__tests/postBeefToArcTaal.test.ts +0 -487
- package/src/services/__tests/postTxs.test.ts +0 -28
- package/src/services/providers/arcServices.ts +0 -578
- package/src/services/providers/whatsonchain.ts +0 -170
- package/test/examples/README.man.test.ts +0 -53
package/docs/setup.md
CHANGED
|
@@ -60,6 +60,7 @@ export interface SetupEnv {
|
|
|
60
60
|
chain: sdk.Chain;
|
|
61
61
|
identityKey: string;
|
|
62
62
|
identityKey2: string;
|
|
63
|
+
filePath: string | undefined;
|
|
63
64
|
taalApiKey: string;
|
|
64
65
|
devKeys: Record<string, string>;
|
|
65
66
|
mySQLConnection: string;
|
|
@@ -85,6 +86,14 @@ A map of public keys (identity keys, hex strings) to private keys (hex strings).
|
|
|
85
86
|
devKeys: Record<string, string>
|
|
86
87
|
```
|
|
87
88
|
|
|
89
|
+
###### Property filePath
|
|
90
|
+
|
|
91
|
+
Filepath to sqlite file to be used for identityKey wallet.
|
|
92
|
+
|
|
93
|
+
```ts
|
|
94
|
+
filePath: string | undefined
|
|
95
|
+
```
|
|
96
|
+
|
|
88
97
|
###### Property identityKey
|
|
89
98
|
|
|
90
99
|
The user's primary identity key (public key).
|
|
@@ -559,21 +568,21 @@ export abstract class SetupClient {
|
|
|
559
568
|
const mainPrivKey2 = PrivateKey.fromRandom();
|
|
560
569
|
const mainIdentityKey2 = mainPrivKey2.toPublicKey().toString();
|
|
561
570
|
const log = `
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
|
|
571
|
+
# .env file template for working with wallet-toolbox Setup functions.
|
|
572
|
+
MY_TEST_IDENTITY = '${testIdentityKey1}'
|
|
573
|
+
MY_TEST_IDENTITY2 = '${testIdentityKey2}'
|
|
574
|
+
MY_MAIN_IDENTITY = '${mainIdentityKey1}'
|
|
575
|
+
MY_MAIN_IDENTITY2 = '${mainIdentityKey2}'
|
|
576
|
+
MAIN_TAAL_API_KEY='mainnet_9596de07e92300c6287e4393594ae39c'
|
|
577
|
+
TEST_TAAL_API_KEY='testnet_0e6cf72133b43ea2d7861da2a38684e3'
|
|
578
|
+
MYSQL_CONNECTION='{"port":3306,"host":"127.0.0.1","user":"root","password":"<your_password>","database":"<your_database>", "timezone": "Z"}'
|
|
579
|
+
DEV_KEYS = '{
|
|
580
|
+
"${testIdentityKey1}": "${testPrivKey1.toString()}",
|
|
581
|
+
"${testIdentityKey2}": "${testPrivKey2.toString()}"
|
|
582
|
+
"${mainIdentityKey1}": "${mainPrivKey1.toString()}",
|
|
583
|
+
"${mainIdentityKey2}": "${mainPrivKey2.toString()}"
|
|
584
|
+
}'
|
|
585
|
+
`;
|
|
577
586
|
console.log(log);
|
|
578
587
|
return log;
|
|
579
588
|
}
|
|
@@ -584,6 +593,9 @@ export abstract class SetupClient {
|
|
|
584
593
|
const identityKey2 = chain === "main"
|
|
585
594
|
? process.env.MY_MAIN_IDENTITY2
|
|
586
595
|
: process.env.MY_TEST_IDENTITY2;
|
|
596
|
+
const filePath = chain === "main"
|
|
597
|
+
? process.env.MY_MAIN_FILEPATH
|
|
598
|
+
: process.env.MY_TEST_FILEPATH;
|
|
587
599
|
const DEV_KEYS = process.env.DEV_KEYS || "{}";
|
|
588
600
|
const mySQLConnection = process.env.MYSQL_CONNECTION || "{}";
|
|
589
601
|
const taalApiKey = verifyTruthy(chain === "main"
|
|
@@ -595,6 +607,7 @@ export abstract class SetupClient {
|
|
|
595
607
|
chain,
|
|
596
608
|
identityKey,
|
|
597
609
|
identityKey2,
|
|
610
|
+
filePath,
|
|
598
611
|
taalApiKey,
|
|
599
612
|
devKeys: JSON.parse(DEV_KEYS) as Record<string, string>,
|
|
600
613
|
mySQLConnection
|
|
@@ -642,9 +655,8 @@ export abstract class SetupClient {
|
|
|
642
655
|
}
|
|
643
656
|
static async createWalletClient(args: SetupWalletClientArgs): Promise<SetupWalletClient> {
|
|
644
657
|
const wo = await SetupClient.createWallet(args);
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
const endpointUrl = args.endpointUrl || "https://staging-dojo.babbage.systems";
|
|
658
|
+
const endpointUrl = args.endpointUrl ||
|
|
659
|
+
`https://${args.env.chain !== "main" ? "staging-" : ""}storage.babbage.systems`;
|
|
648
660
|
const client = new StorageClient(wo.wallet, endpointUrl);
|
|
649
661
|
await wo.storage.addWalletStorageProvider(client);
|
|
650
662
|
await wo.storage.makeAvailable();
|
|
@@ -725,7 +737,7 @@ export abstract class SetupClient {
|
|
|
725
737
|
}
|
|
726
738
|
```
|
|
727
739
|
|
|
728
|
-
See also: [Chain](./client.md#type-chain), [KeyPairAddress](./setup.md#interface-keypairaddress), [Monitor](./monitor.md#class-monitor), [PrivilegedKeyManager](./client.md#class-privilegedkeymanager), [ScriptTemplateUnlock](./client.md#interface-scripttemplateunlock), [Services](./services.md#class-services), [SetupEnv](./setup.md#interface-setupenv), [SetupWallet](./setup.md#interface-setupwallet), [SetupWalletArgs](./setup.md#interface-setupwalletargs), [SetupWalletClient](./setup.md#interface-setupwalletclient), [SetupWalletClientArgs](./setup.md#interface-setupwalletclientargs), [StorageClient](./storage.md#class-storageclient), [WERR_INVALID_OPERATION](./client.md#class-werr_invalid_operation), [
|
|
740
|
+
See also: [Chain](./client.md#type-chain), [KeyPairAddress](./setup.md#interface-keypairaddress), [Monitor](./monitor.md#class-monitor), [PrivilegedKeyManager](./client.md#class-privilegedkeymanager), [ScriptTemplateUnlock](./client.md#interface-scripttemplateunlock), [Services](./services.md#class-services), [Setup](./setup.md#class-setup), [SetupEnv](./setup.md#interface-setupenv), [SetupWallet](./setup.md#interface-setupwallet), [SetupWalletArgs](./setup.md#interface-setupwalletargs), [SetupWalletClient](./setup.md#interface-setupwalletclient), [SetupWalletClientArgs](./setup.md#interface-setupwalletclientargs), [StorageClient](./storage.md#class-storageclient), [WERR_INVALID_OPERATION](./client.md#class-werr_invalid_operation), [Wallet](./client.md#class-wallet), [WalletStorageManager](./storage.md#class-walletstoragemanager), [createAction](./storage.md#function-createaction), [verifyTruthy](./client.md#function-verifytruthy)
|
|
729
741
|
|
|
730
742
|
###### Method createWallet
|
|
731
743
|
|
|
@@ -794,6 +806,9 @@ static getEnv(chain: sdk.Chain): SetupEnv {
|
|
|
794
806
|
const identityKey2 = chain === "main"
|
|
795
807
|
? process.env.MY_MAIN_IDENTITY2
|
|
796
808
|
: process.env.MY_TEST_IDENTITY2;
|
|
809
|
+
const filePath = chain === "main"
|
|
810
|
+
? process.env.MY_MAIN_FILEPATH
|
|
811
|
+
: process.env.MY_TEST_FILEPATH;
|
|
797
812
|
const DEV_KEYS = process.env.DEV_KEYS || "{}";
|
|
798
813
|
const mySQLConnection = process.env.MYSQL_CONNECTION || "{}";
|
|
799
814
|
const taalApiKey = verifyTruthy(chain === "main"
|
|
@@ -805,6 +820,7 @@ static getEnv(chain: sdk.Chain): SetupEnv {
|
|
|
805
820
|
chain,
|
|
806
821
|
identityKey,
|
|
807
822
|
identityKey2,
|
|
823
|
+
filePath,
|
|
808
824
|
taalApiKey,
|
|
809
825
|
devKeys: JSON.parse(DEV_KEYS) as Record<string, string>,
|
|
810
826
|
mySQLConnection
|
|
@@ -842,25 +858,26 @@ static makeEnv(): string {
|
|
|
842
858
|
const mainPrivKey2 = PrivateKey.fromRandom();
|
|
843
859
|
const mainIdentityKey2 = mainPrivKey2.toPublicKey().toString();
|
|
844
860
|
const log = `
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
|
|
861
|
+
# .env file template for working with wallet-toolbox Setup functions.
|
|
862
|
+
MY_TEST_IDENTITY = '${testIdentityKey1}'
|
|
863
|
+
MY_TEST_IDENTITY2 = '${testIdentityKey2}'
|
|
864
|
+
MY_MAIN_IDENTITY = '${mainIdentityKey1}'
|
|
865
|
+
MY_MAIN_IDENTITY2 = '${mainIdentityKey2}'
|
|
866
|
+
MAIN_TAAL_API_KEY='mainnet_9596de07e92300c6287e4393594ae39c'
|
|
867
|
+
TEST_TAAL_API_KEY='testnet_0e6cf72133b43ea2d7861da2a38684e3'
|
|
868
|
+
MYSQL_CONNECTION='{"port":3306,"host":"127.0.0.1","user":"root","password":"<your_password>","database":"<your_database>", "timezone": "Z"}'
|
|
869
|
+
DEV_KEYS = '{
|
|
870
|
+
"${testIdentityKey1}": "${testPrivKey1.toString()}",
|
|
871
|
+
"${testIdentityKey2}": "${testPrivKey2.toString()}"
|
|
872
|
+
"${mainIdentityKey1}": "${mainPrivKey1.toString()}",
|
|
873
|
+
"${mainIdentityKey2}": "${mainPrivKey2.toString()}"
|
|
874
|
+
}'
|
|
875
|
+
`;
|
|
860
876
|
console.log(log);
|
|
861
877
|
return log;
|
|
862
878
|
}
|
|
863
879
|
```
|
|
880
|
+
See also: [Setup](./setup.md#class-setup)
|
|
864
881
|
|
|
865
882
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
866
883
|
|
package/docs/storage.md
CHANGED
|
@@ -34,9 +34,9 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
34
34
|
| [GetReqsAndBeefDetail](#interface-getreqsandbeefdetail) | [TableCertificate](#interface-tablecertificate) | [TableTxLabel](#interface-tabletxlabel) |
|
|
35
35
|
| [GetReqsAndBeefResult](#interface-getreqsandbeefresult) | [TableCertificateField](#interface-tablecertificatefield) | [TableTxLabelMap](#interface-tabletxlabelmap) |
|
|
36
36
|
| [PostBeefResultForTxidApi](#interface-postbeefresultfortxidapi) | [TableCertificateX](#interface-tablecertificatex) | [TableUser](#interface-tableuser) |
|
|
37
|
-
| [PostReqsToNetworkDetails](#interface-postreqstonetworkdetails) | [TableCommission](#interface-tablecommission) | [
|
|
38
|
-
| [PostReqsToNetworkResult](#interface-postreqstonetworkresult) | [TableMonitorEvent](#interface-tablemonitorevent) | [
|
|
39
|
-
| [ProvenTxFromTxidResult](#interface-proventxfromtxidresult) | [TableOutput](#interface-tableoutput) |
|
|
37
|
+
| [PostReqsToNetworkDetails](#interface-postreqstonetworkdetails) | [TableCommission](#interface-tablecommission) | [ValidateGenerateChangeSdkParamsResult](#interface-validategeneratechangesdkparamsresult) |
|
|
38
|
+
| [PostReqsToNetworkResult](#interface-postreqstonetworkresult) | [TableMonitorEvent](#interface-tablemonitorevent) | [WalletStorageServerOptions](#interface-walletstorageserveroptions) |
|
|
39
|
+
| [ProvenTxFromTxidResult](#interface-proventxfromtxidresult) | [TableOutput](#interface-tableoutput) | [XValidCreateActionOutput](#interface-xvalidcreateactionoutput) |
|
|
40
40
|
| [ProvenTxReqHistory](#interface-proventxreqhistory) | [TableOutputBasket](#interface-tableoutputbasket) | |
|
|
41
41
|
|
|
42
42
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
@@ -227,6 +227,10 @@ export interface GenerateChangeSdkResult {
|
|
|
227
227
|
size: number;
|
|
228
228
|
fee: number;
|
|
229
229
|
satsPerKb: number;
|
|
230
|
+
maxPossibleSatoshisAdjustment?: {
|
|
231
|
+
fixedOutputIndex: number;
|
|
232
|
+
satoshis: number;
|
|
233
|
+
};
|
|
230
234
|
}
|
|
231
235
|
```
|
|
232
236
|
|
|
@@ -1109,6 +1113,17 @@ identityKey: string
|
|
|
1109
1113
|
|
|
1110
1114
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
1111
1115
|
|
|
1116
|
+
---
|
|
1117
|
+
##### Interface: ValidateGenerateChangeSdkParamsResult
|
|
1118
|
+
|
|
1119
|
+
```ts
|
|
1120
|
+
export interface ValidateGenerateChangeSdkParamsResult {
|
|
1121
|
+
hasMaxPossibleOutput?: number;
|
|
1122
|
+
}
|
|
1123
|
+
```
|
|
1124
|
+
|
|
1125
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
1126
|
+
|
|
1112
1127
|
---
|
|
1113
1128
|
##### Interface: WalletStorageServerOptions
|
|
1114
1129
|
|
|
@@ -3956,10 +3971,10 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
3956
3971
|
##### Function: validateGenerateChangeSdkParams
|
|
3957
3972
|
|
|
3958
3973
|
```ts
|
|
3959
|
-
export function validateGenerateChangeSdkParams(params: GenerateChangeSdkParams)
|
|
3974
|
+
export function validateGenerateChangeSdkParams(params: GenerateChangeSdkParams): ValidateGenerateChangeSdkParamsResult
|
|
3960
3975
|
```
|
|
3961
3976
|
|
|
3962
|
-
See also: [GenerateChangeSdkParams](./storage.md#interface-generatechangesdkparams)
|
|
3977
|
+
See also: [GenerateChangeSdkParams](./storage.md#interface-generatechangesdkparams), [ValidateGenerateChangeSdkParamsResult](./storage.md#interface-validategeneratechangesdkparamsresult)
|
|
3963
3978
|
|
|
3964
3979
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
3965
3980
|
|
|
@@ -4051,6 +4066,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
4051
4066
|
|
|
4052
4067
|
| |
|
|
4053
4068
|
| --- |
|
|
4069
|
+
| [maxPossibleSatoshis](#variable-maxpossiblesatoshis) |
|
|
4054
4070
|
| [outputColumnsWithoutLockingScript](#variable-outputcolumnswithoutlockingscript) |
|
|
4055
4071
|
| [transactionColumnsWithoutRawTx](#variable-transactioncolumnswithoutrawtx) |
|
|
4056
4072
|
|
|
@@ -4058,6 +4074,15 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
4058
4074
|
|
|
4059
4075
|
---
|
|
4060
4076
|
|
|
4077
|
+
##### Variable: maxPossibleSatoshis
|
|
4078
|
+
|
|
4079
|
+
```ts
|
|
4080
|
+
maxPossibleSatoshis = 2099999999999999
|
|
4081
|
+
```
|
|
4082
|
+
|
|
4083
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
4084
|
+
|
|
4085
|
+
---
|
|
4061
4086
|
##### Variable: outputColumnsWithoutLockingScript
|
|
4062
4087
|
|
|
4063
4088
|
```ts
|