@bsv/wallet-toolbox 1.7.1 → 1.7.2
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/CHANGELOG.md +7 -0
- package/docs/client.md +489 -1334
- package/docs/services.md +5 -5
- package/docs/storage.md +64 -61
- package/docs/wallet.md +489 -1334
- package/mobile/out/src/Wallet.d.ts +21 -4
- package/mobile/out/src/Wallet.d.ts.map +1 -1
- package/mobile/out/src/Wallet.js +93 -57
- package/mobile/out/src/Wallet.js.map +1 -1
- package/mobile/out/src/WalletLogger.d.ts +33 -0
- package/mobile/out/src/WalletLogger.d.ts.map +1 -0
- package/mobile/out/src/WalletLogger.js +157 -0
- package/mobile/out/src/WalletLogger.js.map +1 -0
- package/mobile/out/src/WalletPermissionsManager.d.ts.map +1 -1
- package/mobile/out/src/WalletPermissionsManager.js +1 -2
- package/mobile/out/src/WalletPermissionsManager.js.map +1 -1
- package/mobile/out/src/sdk/WERR_errors.d.ts.map +1 -1
- package/mobile/out/src/sdk/WERR_errors.js.map +1 -1
- package/mobile/out/src/sdk/WalletError.d.ts.map +1 -1
- package/mobile/out/src/sdk/WalletError.js +0 -2
- package/mobile/out/src/sdk/WalletError.js.map +1 -1
- package/mobile/out/src/sdk/WalletServices.interfaces.d.ts +3 -3
- package/mobile/out/src/sdk/WalletServices.interfaces.d.ts.map +1 -1
- package/mobile/out/src/sdk/WalletStorage.interfaces.d.ts +9 -10
- package/mobile/out/src/sdk/WalletStorage.interfaces.d.ts.map +1 -1
- package/mobile/out/src/sdk/index.d.ts +1 -1
- package/mobile/out/src/sdk/index.d.ts.map +1 -1
- package/mobile/out/src/sdk/index.js +3 -1
- package/mobile/out/src/sdk/index.js.map +1 -1
- package/mobile/out/src/services/Services.d.ts +5 -5
- package/mobile/out/src/services/Services.d.ts.map +1 -1
- package/mobile/out/src/services/Services.js +18 -4
- package/mobile/out/src/services/Services.js.map +1 -1
- package/mobile/out/src/services/providers/WhatsOnChain.d.ts.map +1 -1
- package/mobile/out/src/services/providers/WhatsOnChain.js +1 -2
- package/mobile/out/src/services/providers/WhatsOnChain.js.map +1 -1
- package/mobile/out/src/services/providers/getBeefForTxid.d.ts.map +1 -1
- package/mobile/out/src/services/providers/getBeefForTxid.js.map +1 -1
- package/mobile/out/src/signer/methods/acquireDirectCertificate.d.ts +2 -3
- package/mobile/out/src/signer/methods/acquireDirectCertificate.d.ts.map +1 -1
- package/mobile/out/src/signer/methods/acquireDirectCertificate.js.map +1 -1
- package/mobile/out/src/signer/methods/buildSignableTransaction.d.ts +3 -4
- package/mobile/out/src/signer/methods/buildSignableTransaction.d.ts.map +1 -1
- package/mobile/out/src/signer/methods/buildSignableTransaction.js +1 -2
- package/mobile/out/src/signer/methods/buildSignableTransaction.js.map +1 -1
- package/mobile/out/src/signer/methods/createAction.d.ts +3 -4
- package/mobile/out/src/signer/methods/createAction.d.ts.map +1 -1
- package/mobile/out/src/signer/methods/createAction.js +17 -6
- package/mobile/out/src/signer/methods/createAction.js.map +1 -1
- package/mobile/out/src/signer/methods/internalizeAction.d.ts.map +1 -1
- package/mobile/out/src/signer/methods/internalizeAction.js +1 -2
- package/mobile/out/src/signer/methods/internalizeAction.js.map +1 -1
- package/mobile/out/src/signer/methods/proveCertificate.d.ts +2 -3
- package/mobile/out/src/signer/methods/proveCertificate.d.ts.map +1 -1
- package/mobile/out/src/signer/methods/proveCertificate.js.map +1 -1
- package/mobile/out/src/signer/methods/signAction.d.ts.map +1 -1
- package/mobile/out/src/signer/methods/signAction.js +1 -2
- package/mobile/out/src/signer/methods/signAction.js.map +1 -1
- package/mobile/out/src/storage/StorageIdb.d.ts +3 -4
- package/mobile/out/src/storage/StorageIdb.d.ts.map +1 -1
- package/mobile/out/src/storage/StorageIdb.js.map +1 -1
- package/mobile/out/src/storage/StorageProvider.d.ts +6 -7
- package/mobile/out/src/storage/StorageProvider.d.ts.map +1 -1
- package/mobile/out/src/storage/StorageProvider.js +5 -6
- package/mobile/out/src/storage/StorageProvider.js.map +1 -1
- package/mobile/out/src/storage/WalletStorageManager.d.ts +5 -5
- package/mobile/out/src/storage/WalletStorageManager.d.ts.map +1 -1
- package/mobile/out/src/storage/WalletStorageManager.js +5 -4
- package/mobile/out/src/storage/WalletStorageManager.js.map +1 -1
- package/mobile/out/src/storage/methods/ListActionsSpecOp.d.ts +2 -2
- package/mobile/out/src/storage/methods/ListActionsSpecOp.d.ts.map +1 -1
- package/mobile/out/src/storage/methods/ListActionsSpecOp.js.map +1 -1
- package/mobile/out/src/storage/methods/ListOutputsSpecOp.d.ts +4 -5
- package/mobile/out/src/storage/methods/ListOutputsSpecOp.d.ts.map +1 -1
- package/mobile/out/src/storage/methods/ListOutputsSpecOp.js.map +1 -1
- package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts +2 -2
- package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts.map +1 -1
- package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.js +11 -7
- package/mobile/out/src/storage/methods/attemptToPostReqsToNetwork.js.map +1 -1
- package/mobile/out/src/storage/methods/createAction.d.ts +3 -4
- package/mobile/out/src/storage/methods/createAction.d.ts.map +1 -1
- package/mobile/out/src/storage/methods/createAction.js +18 -5
- package/mobile/out/src/storage/methods/createAction.js.map +1 -1
- package/mobile/out/src/storage/methods/generateChange.js +10 -10
- package/mobile/out/src/storage/methods/generateChange.js.map +1 -1
- package/mobile/out/src/storage/methods/internalizeAction.d.ts.map +1 -1
- package/mobile/out/src/storage/methods/internalizeAction.js +1 -2
- package/mobile/out/src/storage/methods/internalizeAction.js.map +1 -1
- package/mobile/out/src/storage/methods/listActionsIdb.d.ts +2 -3
- package/mobile/out/src/storage/methods/listActionsIdb.d.ts.map +1 -1
- package/mobile/out/src/storage/methods/listActionsIdb.js.map +1 -1
- package/mobile/out/src/storage/methods/listCertificates.d.ts +3 -3
- package/mobile/out/src/storage/methods/listCertificates.d.ts.map +1 -1
- package/mobile/out/src/storage/methods/listCertificates.js.map +1 -1
- package/mobile/out/src/storage/methods/listOutputsIdb.d.ts +2 -3
- package/mobile/out/src/storage/methods/listOutputsIdb.d.ts.map +1 -1
- package/mobile/out/src/storage/methods/listOutputsIdb.js.map +1 -1
- package/mobile/out/src/storage/methods/processAction.d.ts +2 -2
- package/mobile/out/src/storage/methods/processAction.d.ts.map +1 -1
- package/mobile/out/src/storage/methods/processAction.js +15 -10
- package/mobile/out/src/storage/methods/processAction.js.map +1 -1
- package/mobile/out/src/storage/remoting/StorageClient.d.ts +5 -6
- package/mobile/out/src/storage/remoting/StorageClient.d.ts.map +1 -1
- package/mobile/out/src/storage/remoting/StorageClient.js +22 -0
- package/mobile/out/src/storage/remoting/StorageClient.js.map +1 -1
- package/mobile/out/src/storage/remoting/StorageMobile.d.ts +5 -6
- package/mobile/out/src/storage/remoting/StorageMobile.d.ts.map +1 -1
- package/mobile/out/src/storage/remoting/StorageMobile.js.map +1 -1
- package/mobile/package-lock.json +6 -6
- package/mobile/package.json +2 -2
- package/out/src/Wallet.d.ts +21 -4
- package/out/src/Wallet.d.ts.map +1 -1
- package/out/src/Wallet.js +93 -57
- package/out/src/Wallet.js.map +1 -1
- package/out/src/WalletLogger.d.ts +33 -0
- package/out/src/WalletLogger.d.ts.map +1 -0
- package/out/src/WalletLogger.js +157 -0
- package/out/src/WalletLogger.js.map +1 -0
- package/out/src/WalletPermissionsManager.d.ts.map +1 -1
- package/out/src/WalletPermissionsManager.js +1 -2
- package/out/src/WalletPermissionsManager.js.map +1 -1
- package/out/src/__tests/WalletPermissionsManager.fixtures.d.ts +1 -0
- package/out/src/__tests/WalletPermissionsManager.fixtures.d.ts.map +1 -1
- package/out/src/__tests/WalletPermissionsManager.fixtures.js +15 -4
- package/out/src/__tests/WalletPermissionsManager.fixtures.js.map +1 -1
- package/out/src/__tests/WalletPermissionsManager.proxying.test.js +79 -74
- package/out/src/__tests/WalletPermissionsManager.proxying.test.js.map +1 -1
- package/out/src/sdk/WERR_errors.d.ts.map +1 -1
- package/out/src/sdk/WERR_errors.js.map +1 -1
- package/out/src/sdk/WalletError.d.ts.map +1 -1
- package/out/src/sdk/WalletError.js +0 -2
- package/out/src/sdk/WalletError.js.map +1 -1
- package/out/src/sdk/WalletServices.interfaces.d.ts +3 -3
- package/out/src/sdk/WalletServices.interfaces.d.ts.map +1 -1
- package/out/src/sdk/WalletStorage.interfaces.d.ts +9 -10
- package/out/src/sdk/WalletStorage.interfaces.d.ts.map +1 -1
- package/out/src/sdk/__test/validationHelpers.test.js +4 -4
- package/out/src/sdk/__test/validationHelpers.test.js.map +1 -1
- package/out/src/sdk/index.d.ts +1 -1
- package/out/src/sdk/index.d.ts.map +1 -1
- package/out/src/sdk/index.js +3 -1
- package/out/src/sdk/index.js.map +1 -1
- package/out/src/services/Services.d.ts +5 -5
- package/out/src/services/Services.d.ts.map +1 -1
- package/out/src/services/Services.js +18 -4
- package/out/src/services/Services.js.map +1 -1
- package/out/src/services/providers/WhatsOnChain.d.ts.map +1 -1
- package/out/src/services/providers/WhatsOnChain.js +1 -2
- package/out/src/services/providers/WhatsOnChain.js.map +1 -1
- package/out/src/services/providers/getBeefForTxid.d.ts.map +1 -1
- package/out/src/services/providers/getBeefForTxid.js.map +1 -1
- package/out/src/signer/methods/acquireDirectCertificate.d.ts +2 -3
- package/out/src/signer/methods/acquireDirectCertificate.d.ts.map +1 -1
- package/out/src/signer/methods/acquireDirectCertificate.js.map +1 -1
- package/out/src/signer/methods/buildSignableTransaction.d.ts +3 -4
- package/out/src/signer/methods/buildSignableTransaction.d.ts.map +1 -1
- package/out/src/signer/methods/buildSignableTransaction.js +1 -2
- package/out/src/signer/methods/buildSignableTransaction.js.map +1 -1
- package/out/src/signer/methods/createAction.d.ts +3 -4
- package/out/src/signer/methods/createAction.d.ts.map +1 -1
- package/out/src/signer/methods/createAction.js +17 -6
- package/out/src/signer/methods/createAction.js.map +1 -1
- package/out/src/signer/methods/internalizeAction.d.ts.map +1 -1
- package/out/src/signer/methods/internalizeAction.js +1 -2
- package/out/src/signer/methods/internalizeAction.js.map +1 -1
- package/out/src/signer/methods/proveCertificate.d.ts +2 -3
- package/out/src/signer/methods/proveCertificate.d.ts.map +1 -1
- package/out/src/signer/methods/proveCertificate.js.map +1 -1
- package/out/src/signer/methods/signAction.d.ts.map +1 -1
- package/out/src/signer/methods/signAction.js +1 -2
- package/out/src/signer/methods/signAction.js.map +1 -1
- package/out/src/storage/StorageIdb.d.ts +3 -4
- package/out/src/storage/StorageIdb.d.ts.map +1 -1
- package/out/src/storage/StorageIdb.js.map +1 -1
- package/out/src/storage/StorageKnex.d.ts +3 -4
- package/out/src/storage/StorageKnex.d.ts.map +1 -1
- package/out/src/storage/StorageKnex.js.map +1 -1
- package/out/src/storage/StorageProvider.d.ts +6 -7
- package/out/src/storage/StorageProvider.d.ts.map +1 -1
- package/out/src/storage/StorageProvider.js +5 -6
- package/out/src/storage/StorageProvider.js.map +1 -1
- package/out/src/storage/WalletStorageManager.d.ts +5 -5
- package/out/src/storage/WalletStorageManager.d.ts.map +1 -1
- package/out/src/storage/WalletStorageManager.js +5 -4
- package/out/src/storage/WalletStorageManager.js.map +1 -1
- package/out/src/storage/__test/getBeefForTransaction.test.js.map +1 -1
- package/out/src/storage/methods/ListActionsSpecOp.d.ts +2 -2
- package/out/src/storage/methods/ListActionsSpecOp.d.ts.map +1 -1
- package/out/src/storage/methods/ListActionsSpecOp.js.map +1 -1
- package/out/src/storage/methods/ListOutputsSpecOp.d.ts +4 -5
- package/out/src/storage/methods/ListOutputsSpecOp.d.ts.map +1 -1
- package/out/src/storage/methods/ListOutputsSpecOp.js.map +1 -1
- package/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts +2 -2
- package/out/src/storage/methods/attemptToPostReqsToNetwork.d.ts.map +1 -1
- package/out/src/storage/methods/attemptToPostReqsToNetwork.js +11 -7
- package/out/src/storage/methods/attemptToPostReqsToNetwork.js.map +1 -1
- package/out/src/storage/methods/createAction.d.ts +3 -4
- package/out/src/storage/methods/createAction.d.ts.map +1 -1
- package/out/src/storage/methods/createAction.js +18 -5
- package/out/src/storage/methods/createAction.js.map +1 -1
- package/out/src/storage/methods/generateChange.js +10 -10
- package/out/src/storage/methods/generateChange.js.map +1 -1
- package/out/src/storage/methods/internalizeAction.d.ts.map +1 -1
- package/out/src/storage/methods/internalizeAction.js +1 -2
- package/out/src/storage/methods/internalizeAction.js.map +1 -1
- package/out/src/storage/methods/listActionsIdb.d.ts +2 -3
- package/out/src/storage/methods/listActionsIdb.d.ts.map +1 -1
- package/out/src/storage/methods/listActionsIdb.js.map +1 -1
- package/out/src/storage/methods/listActionsKnex.d.ts +2 -3
- package/out/src/storage/methods/listActionsKnex.d.ts.map +1 -1
- package/out/src/storage/methods/listActionsKnex.js.map +1 -1
- package/out/src/storage/methods/listCertificates.d.ts +3 -3
- package/out/src/storage/methods/listCertificates.d.ts.map +1 -1
- package/out/src/storage/methods/listCertificates.js.map +1 -1
- package/out/src/storage/methods/listOutputsIdb.d.ts +2 -3
- package/out/src/storage/methods/listOutputsIdb.d.ts.map +1 -1
- package/out/src/storage/methods/listOutputsIdb.js.map +1 -1
- package/out/src/storage/methods/listOutputsKnex.d.ts +2 -3
- package/out/src/storage/methods/listOutputsKnex.d.ts.map +1 -1
- package/out/src/storage/methods/listOutputsKnex.js.map +1 -1
- package/out/src/storage/methods/processAction.d.ts +2 -2
- package/out/src/storage/methods/processAction.d.ts.map +1 -1
- package/out/src/storage/methods/processAction.js +15 -10
- package/out/src/storage/methods/processAction.js.map +1 -1
- package/out/src/storage/remoting/StorageClient.d.ts +5 -6
- package/out/src/storage/remoting/StorageClient.d.ts.map +1 -1
- package/out/src/storage/remoting/StorageClient.js +22 -0
- package/out/src/storage/remoting/StorageClient.js.map +1 -1
- package/out/src/storage/remoting/StorageMobile.d.ts +5 -6
- package/out/src/storage/remoting/StorageMobile.d.ts.map +1 -1
- package/out/src/storage/remoting/StorageMobile.js.map +1 -1
- package/out/src/storage/remoting/StorageServer.d.ts +5 -0
- package/out/src/storage/remoting/StorageServer.d.ts.map +1 -1
- package/out/src/storage/remoting/StorageServer.js +38 -5
- package/out/src/storage/remoting/StorageServer.js.map +1 -1
- package/out/src/storage/remoting/__test/StorageClient.test.d.ts +2 -0
- package/out/src/storage/remoting/__test/StorageClient.test.d.ts.map +1 -0
- package/out/src/storage/remoting/__test/StorageClient.test.js +98 -0
- package/out/src/storage/remoting/__test/StorageClient.test.js.map +1 -0
- package/out/src/storage/sync/StorageMySQLDojoReader.d.ts.map +1 -1
- package/out/src/storage/sync/StorageMySQLDojoReader.js +1 -2
- package/out/src/storage/sync/StorageMySQLDojoReader.js.map +1 -1
- package/out/test/Wallet/certificate/listCertificates.test.js.map +1 -1
- package/out/test/Wallet/local/localWallet2.man.test.js.map +1 -1
- package/out/test/Wallet/signAction/mountaintop.man.test.js +2 -2
- package/out/test/Wallet/signAction/mountaintop.man.test.js.map +1 -1
- package/out/test/Wallet/support/operations.man.test.js +46 -1
- package/out/test/Wallet/support/operations.man.test.js.map +1 -1
- package/out/test/Wallet/support/reqErrorReview.2025.05.06.man.test.js.map +1 -1
- package/out/test/WalletClient/WERR.man.test.js +1 -1
- package/out/test/WalletClient/WERR.man.test.js.map +1 -1
- package/out/test/utils/localWalletMethods.d.ts.map +1 -1
- package/out/test/utils/localWalletMethods.js +2 -3
- package/out/test/utils/localWalletMethods.js.map +1 -1
- package/out/test/wallet/action/createAction.test.js +3 -0
- package/out/test/wallet/action/createAction.test.js.map +1 -1
- package/out/tsconfig.all.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/Wallet.ts +114 -79
- package/src/WalletLogger.ts +167 -0
- package/src/WalletPermissionsManager.ts +3 -5
- package/src/__tests/WalletPermissionsManager.fixtures.ts +14 -1
- package/src/__tests/WalletPermissionsManager.proxying.test.ts +89 -85
- package/src/sdk/WERR_errors.ts +6 -3
- package/src/sdk/WalletError.ts +0 -4
- package/src/sdk/WalletServices.interfaces.ts +14 -3
- package/src/sdk/WalletStorage.interfaces.ts +11 -16
- package/src/sdk/__test/validationHelpers.test.ts +4 -5
- package/src/sdk/index.ts +1 -1
- package/src/services/Services.ts +23 -5
- package/src/services/providers/WhatsOnChain.ts +2 -3
- package/src/services/providers/getBeefForTxid.ts +3 -5
- package/src/signer/methods/acquireDirectCertificate.ts +2 -3
- package/src/signer/methods/buildSignableTransaction.ts +5 -6
- package/src/signer/methods/createAction.ts +24 -18
- package/src/signer/methods/internalizeAction.ts +4 -5
- package/src/signer/methods/proveCertificate.ts +3 -4
- package/src/signer/methods/signAction.ts +6 -4
- package/src/storage/StorageIdb.ts +3 -4
- package/src/storage/StorageKnex.ts +3 -4
- package/src/storage/StorageProvider.ts +16 -20
- package/src/storage/WalletStorageManager.ts +10 -11
- package/src/storage/__test/getBeefForTransaction.test.ts +3 -4
- package/src/storage/methods/ListActionsSpecOp.ts +4 -4
- package/src/storage/methods/ListOutputsSpecOp.ts +7 -8
- package/src/storage/methods/attemptToPostReqsToNetwork.ts +15 -8
- package/src/storage/methods/createAction.ts +39 -23
- package/src/storage/methods/generateChange.ts +10 -10
- package/src/storage/methods/internalizeAction.ts +4 -4
- package/src/storage/methods/listActionsIdb.ts +3 -3
- package/src/storage/methods/listActionsKnex.ts +3 -3
- package/src/storage/methods/listCertificates.ts +7 -6
- package/src/storage/methods/listOutputsIdb.ts +2 -3
- package/src/storage/methods/listOutputsKnex.ts +2 -3
- package/src/storage/methods/processAction.ts +30 -11
- package/src/storage/remoting/StorageClient.ts +31 -12
- package/src/storage/remoting/StorageMobile.ts +6 -12
- package/src/storage/remoting/StorageServer.ts +45 -6
- package/src/storage/remoting/__test/StorageClient.test.ts +113 -0
- package/src/storage/sync/StorageMySQLDojoReader.ts +2 -3
- package/test/Wallet/certificate/listCertificates.test.ts +2 -2
- package/test/Wallet/local/localWallet2.man.test.ts +5 -5
- package/test/Wallet/signAction/mountaintop.man.test.ts +3 -2
- package/test/Wallet/support/operations.man.test.ts +65 -6
- package/test/Wallet/support/reqErrorReview.2025.05.06.man.test.ts +2 -14
- package/test/WalletClient/WERR.man.test.ts +3 -3
- package/test/utils/localWalletMethods.ts +5 -5
- package/test/wallet/action/createAction.test.ts +3 -0
- package/mobile/out/src/sdk/validationHelpers.d.ts +0 -322
- package/mobile/out/src/sdk/validationHelpers.d.ts.map +0 -1
- package/mobile/out/src/sdk/validationHelpers.js +0 -691
- package/mobile/out/src/sdk/validationHelpers.js.map +0 -1
- package/out/src/sdk/validationHelpers.d.ts +0 -322
- package/out/src/sdk/validationHelpers.d.ts.map +0 -1
- package/out/src/sdk/validationHelpers.js +0 -691
- package/out/src/sdk/validationHelpers.js.map +0 -1
- package/src/sdk/validationHelpers.ts +0 -1034
package/docs/client.md
CHANGED
|
@@ -14,87 +14,79 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
14
14
|
|
|
15
15
|
| | | |
|
|
16
16
|
| --- | --- | --- |
|
|
17
|
-
| [AdminStatsResult](#interface-adminstatsresult) | [
|
|
18
|
-
| [ArcConfig](#interface-arcconfig) | [
|
|
19
|
-
| [ArcMinerGetTxData](#interface-arcminergettxdata) | [
|
|
20
|
-
| [AuthId](#interface-authid) | [
|
|
21
|
-
| [AuthPayload](#interface-authpayload) | [
|
|
22
|
-
| [BaseBlockHeader](#interface-baseblockheader) | [
|
|
23
|
-
| [BitailsConfig](#interface-bitailsconfig) | [
|
|
24
|
-
| [BitailsMerkleProof](#interface-bitailsmerkleproof) | [
|
|
25
|
-
| [BlockHeader](#interface-blockheader) | [
|
|
26
|
-
| [BsvExchangeRate](#interface-bsvexchangerate) | [
|
|
27
|
-
| [BulkFileDataManagerMergeResult](#interface-bulkfiledatamanagermergeresult) | [
|
|
28
|
-
| [BulkFileDataManagerOptions](#interface-bulkfiledatamanageroptions) | [
|
|
29
|
-
| [BulkHeaderFileInfo](#interface-bulkheaderfileinfo) | [
|
|
30
|
-
| [BulkHeaderFilesInfo](#interface-bulkheaderfilesinfo) | [
|
|
31
|
-
| [BulkIngestorApi](#interface-bulkingestorapi) | [
|
|
32
|
-
| [BulkIngestorBaseOptions](#interface-bulkingestorbaseoptions) | [
|
|
33
|
-
| [BulkIngestorCDNOptions](#interface-bulkingestorcdnoptions) | [
|
|
34
|
-
| [BulkIngestorWhatsOnChainOptions](#interface-bulkingestorwhatsonchainoptions) | [
|
|
35
|
-
| [BulkStorageApi](#interface-bulkstorageapi) | [
|
|
36
|
-
| [BulkStorageBaseOptions](#interface-bulkstoragebaseoptions) | [
|
|
37
|
-
| [BulkSyncResult](#interface-bulksyncresult) | [
|
|
38
|
-
| [CertOpsWallet](#interface-certopswallet) | [
|
|
39
|
-
| [Certifier](#interface-certifier) | [
|
|
40
|
-
| [ChaintracksApi](#interface-chaintracksapi) | [
|
|
41
|
-
| [ChaintracksAppendableFileApi](#interface-chaintracksappendablefileapi) | [
|
|
42
|
-
| [ChaintracksChainTrackerOptions](#interface-chaintrackschaintrackeroptions) | [
|
|
43
|
-
| [ChaintracksClientApi](#interface-chaintracksclientapi) | [
|
|
44
|
-
| [ChaintracksFetchApi](#interface-chaintracksfetchapi) | [
|
|
45
|
-
| [ChaintracksFsApi](#interface-chaintracksfsapi) | [
|
|
46
|
-
| [ChaintracksInfoApi](#interface-chaintracksinfoapi) | [
|
|
47
|
-
| [ChaintracksManagementApi](#interface-chaintracksmanagementapi) | [
|
|
48
|
-
| [ChaintracksOptions](#interface-chaintracksoptions) | [
|
|
49
|
-
| [ChaintracksPackageInfoApi](#interface-chaintrackspackageinfoapi) | [
|
|
50
|
-
| [ChaintracksReadableFileApi](#interface-chaintracksreadablefileapi) | [
|
|
51
|
-
| [ChaintracksServiceClientOptions](#interface-chaintracksserviceclientoptions) | [
|
|
52
|
-
| [ChaintracksStorageApi](#interface-chaintracksstorageapi) | [
|
|
53
|
-
| [ChaintracksStorageBaseOptions](#interface-chaintracksstoragebaseoptions) | [
|
|
54
|
-
| [ChaintracksStorageBulkFileApi](#interface-chaintracksstoragebulkfileapi) | [
|
|
55
|
-
| [ChaintracksStorageIdbOptions](#interface-chaintracksstorageidboptions) | [
|
|
56
|
-
| [ChaintracksStorageIdbSchema](#interface-chaintracksstorageidbschema) | [
|
|
57
|
-
| [ChaintracksStorageIngestApi](#interface-chaintracksstorageingestapi) | [
|
|
58
|
-
| [ChaintracksStorageNoDbOptions](#interface-chaintracksstoragenodboptions) | [
|
|
59
|
-
| [ChaintracksStorageQueryApi](#interface-chaintracksstoragequeryapi) | [
|
|
60
|
-
| [ChaintracksWritableFileApi](#interface-chaintrackswritablefileapi) | [
|
|
61
|
-
| [CommitNewTxResults](#interface-commitnewtxresults) | [
|
|
62
|
-
| [CompleteAuthResponse](#interface-completeauthresponse) | [
|
|
63
|
-
| [CreateActionResultX](#interface-createactionresultx) | [
|
|
64
|
-
| [DeactivedHeader](#interface-deactivedheader) | [
|
|
65
|
-
| [EntitySyncMap](#interface-entitysyncmap) | [
|
|
66
|
-
| [EntityTimeStamp](#interface-entitytimestamp) | [
|
|
67
|
-
| [ExchangeRatesIoApi](#interface-exchangeratesioapi) | [
|
|
68
|
-
| [ExtendedVerifiableCertificate](#interface-extendedverifiablecertificate) | [
|
|
69
|
-
| [FiatExchangeRates](#interface-fiatexchangerates) | [
|
|
70
|
-
| [FindCertificateFieldsArgs](#interface-findcertificatefieldsargs) | [
|
|
71
|
-
| [FindCertificatesArgs](#interface-findcertificatesargs) | [
|
|
72
|
-
| [FindCommissionsArgs](#interface-findcommissionsargs) | [
|
|
73
|
-
| [FindForUserSincePagedArgs](#interface-findforusersincepagedargs) | [
|
|
74
|
-
| [FindMonitorEventsArgs](#interface-findmonitoreventsargs) | [
|
|
75
|
-
| [FindOutputBasketsArgs](#interface-findoutputbasketsargs) | [
|
|
76
|
-
| [FindOutputTagMapsArgs](#interface-findoutputtagmapsargs) | [
|
|
77
|
-
| [FindOutputTagsArgs](#interface-findoutputtagsargs) | [
|
|
78
|
-
| [FindOutputsArgs](#interface-findoutputsargs) | [
|
|
79
|
-
| [FindPartialSincePagedArgs](#interface-findpartialsincepagedargs) | [
|
|
80
|
-
| [FindProvenTxReqsArgs](#interface-findproventxreqsargs) | [
|
|
81
|
-
| [FindProvenTxsArgs](#interface-findproventxsargs) | [
|
|
82
|
-
| [FindSincePagedArgs](#interface-findsincepagedargs) | [
|
|
83
|
-
| [FindSyncStatesArgs](#interface-findsyncstatesargs) | [
|
|
84
|
-
| [FindTransactionsArgs](#interface-findtransactionsargs) | [
|
|
85
|
-
| [FindTxLabelMapsArgs](#interface-findtxlabelmapsargs) | [
|
|
86
|
-
| [FindTxLabelsArgs](#interface-findtxlabelsargs) | [
|
|
87
|
-
| [FindUsersArgs](#interface-findusersargs) | [
|
|
88
|
-
| [GenerateChangeSdkChangeInput](#interface-generatechangesdkchangeinput) | [
|
|
89
|
-
| [GenerateChangeSdkChangeOutput](#interface-generatechangesdkchangeoutput) | [
|
|
90
|
-
| [GenerateChangeSdkInput](#interface-generatechangesdkinput) | [StorageIdentity](#interface-storageidentity) | [WalletStorageWriter](#interface-walletstoragewriter) |
|
|
91
|
-
| [GenerateChangeSdkOutput](#interface-generatechangesdkoutput) | [StorageInternalizeActionResult](#interface-storageinternalizeactionresult) | [WalletTheme](#interface-wallettheme) |
|
|
92
|
-
| [GenerateChangeSdkParams](#interface-generatechangesdkparams) | [StorageProcessActionArgs](#interface-storageprocessactionargs) | [WhatsOnChainServicesOptions](#interface-whatsonchainservicesoptions) |
|
|
93
|
-
| [GenerateChangeSdkResult](#interface-generatechangesdkresult) | [StorageProcessActionResults](#interface-storageprocessactionresults) | [WocChainInfo](#interface-wocchaininfo) |
|
|
94
|
-
| [GenerateChangeSdkStorageChange](#interface-generatechangesdkstoragechange) | [StorageProvenOrReq](#interface-storageprovenorreq) | [WocGetHeaderByteFileLinks](#interface-wocgetheaderbytefilelinks) |
|
|
95
|
-
| [GetHeaderByteFileLinksResult](#interface-getheaderbytefilelinksresult) | [StorageProviderOptions](#interface-storageprovideroptions) | [WocGetHeadersHeader](#interface-wocgetheadersheader) |
|
|
96
|
-
| [GetMerklePathResult](#interface-getmerklepathresult) | [StorageReaderOptions](#interface-storagereaderoptions) | [WocHeader](#interface-wocheader) |
|
|
97
|
-
| [GetRawTxResult](#interface-getrawtxresult) | [StorageReaderWriterOptions](#interface-storagereaderwriteroptions) | [XValidCreateActionOutput](#interface-xvalidcreateactionoutput) |
|
|
17
|
+
| [AdminStatsResult](#interface-adminstatsresult) | [GenerateChangeSdkInput](#interface-generatechangesdkinput) | [StorageAdminStats](#interface-storageadminstats) |
|
|
18
|
+
| [ArcConfig](#interface-arcconfig) | [GenerateChangeSdkOutput](#interface-generatechangesdkoutput) | [StorageCreateActionResult](#interface-storagecreateactionresult) |
|
|
19
|
+
| [ArcMinerGetTxData](#interface-arcminergettxdata) | [GenerateChangeSdkParams](#interface-generatechangesdkparams) | [StorageCreateTransactionSdkInput](#interface-storagecreatetransactionsdkinput) |
|
|
20
|
+
| [AuthId](#interface-authid) | [GenerateChangeSdkResult](#interface-generatechangesdkresult) | [StorageCreateTransactionSdkOutput](#interface-storagecreatetransactionsdkoutput) |
|
|
21
|
+
| [AuthPayload](#interface-authpayload) | [GenerateChangeSdkStorageChange](#interface-generatechangesdkstoragechange) | [StorageFeeModel](#interface-storagefeemodel) |
|
|
22
|
+
| [BaseBlockHeader](#interface-baseblockheader) | [GetHeaderByteFileLinksResult](#interface-getheaderbytefilelinksresult) | [StorageGetBeefOptions](#interface-storagegetbeefoptions) |
|
|
23
|
+
| [BitailsConfig](#interface-bitailsconfig) | [GetMerklePathResult](#interface-getmerklepathresult) | [StorageIdbOptions](#interface-storageidboptions) |
|
|
24
|
+
| [BitailsMerkleProof](#interface-bitailsmerkleproof) | [GetRawTxResult](#interface-getrawtxresult) | [StorageIdbSchema](#interface-storageidbschema) |
|
|
25
|
+
| [BlockHeader](#interface-blockheader) | [GetReqsAndBeefDetail](#interface-getreqsandbeefdetail) | [StorageIdentity](#interface-storageidentity) |
|
|
26
|
+
| [BsvExchangeRate](#interface-bsvexchangerate) | [GetReqsAndBeefResult](#interface-getreqsandbeefresult) | [StorageInternalizeActionResult](#interface-storageinternalizeactionresult) |
|
|
27
|
+
| [BulkFileDataManagerMergeResult](#interface-bulkfiledatamanagermergeresult) | [GetScriptHashHistory](#interface-getscripthashhistory) | [StorageProcessActionArgs](#interface-storageprocessactionargs) |
|
|
28
|
+
| [BulkFileDataManagerOptions](#interface-bulkfiledatamanageroptions) | [GetScriptHashHistoryResult](#interface-getscripthashhistoryresult) | [StorageProcessActionResults](#interface-storageprocessactionresults) |
|
|
29
|
+
| [BulkHeaderFileInfo](#interface-bulkheaderfileinfo) | [GetStatusForTxidsResult](#interface-getstatusfortxidsresult) | [StorageProvenOrReq](#interface-storageprovenorreq) |
|
|
30
|
+
| [BulkHeaderFilesInfo](#interface-bulkheaderfilesinfo) | [GetUtxoStatusDetails](#interface-getutxostatusdetails) | [StorageProviderOptions](#interface-storageprovideroptions) |
|
|
31
|
+
| [BulkIngestorApi](#interface-bulkingestorapi) | [GetUtxoStatusResult](#interface-getutxostatusresult) | [StorageReaderOptions](#interface-storagereaderoptions) |
|
|
32
|
+
| [BulkIngestorBaseOptions](#interface-bulkingestorbaseoptions) | [GroupedPermissionRequest](#interface-groupedpermissionrequest) | [StorageReaderWriterOptions](#interface-storagereaderwriteroptions) |
|
|
33
|
+
| [BulkIngestorCDNOptions](#interface-bulkingestorcdnoptions) | [GroupedPermissions](#interface-groupedpermissions) | [StorageSyncReaderOptions](#interface-storagesyncreaderoptions) |
|
|
34
|
+
| [BulkIngestorWhatsOnChainOptions](#interface-bulkingestorwhatsonchainoptions) | [HeightRangeApi](#interface-heightrangeapi) | [SyncChunk](#interface-syncchunk) |
|
|
35
|
+
| [BulkStorageApi](#interface-bulkstorageapi) | [HeightRanges](#interface-heightranges) | [SyncError](#interface-syncerror) |
|
|
36
|
+
| [BulkStorageBaseOptions](#interface-bulkstoragebaseoptions) | [KeyPair](#interface-keypair) | [SyncMap](#interface-syncmap) |
|
|
37
|
+
| [BulkSyncResult](#interface-bulksyncresult) | [KeyPairAddress](#interface-keypairaddress) | [TableCertificate](#interface-tablecertificate) |
|
|
38
|
+
| [CertOpsWallet](#interface-certopswallet) | [ListActionsSpecOp](#interface-listactionsspecop) | [TableCertificateField](#interface-tablecertificatefield) |
|
|
39
|
+
| [Certifier](#interface-certifier) | [ListOutputsSpecOp](#interface-listoutputsspecop) | [TableCertificateX](#interface-tablecertificatex) |
|
|
40
|
+
| [ChaintracksApi](#interface-chaintracksapi) | [LiveBlockHeader](#interface-liveblockheader) | [TableCommission](#interface-tablecommission) |
|
|
41
|
+
| [ChaintracksAppendableFileApi](#interface-chaintracksappendablefileapi) | [LiveIngestorApi](#interface-liveingestorapi) | [TableMonitorEvent](#interface-tablemonitorevent) |
|
|
42
|
+
| [ChaintracksChainTrackerOptions](#interface-chaintrackschaintrackeroptions) | [LiveIngestorBaseOptions](#interface-liveingestorbaseoptions) | [TableOutput](#interface-tableoutput) |
|
|
43
|
+
| [ChaintracksClientApi](#interface-chaintracksclientapi) | [LiveIngestorWhatsOnChainOptions](#interface-liveingestorwhatsonchainoptions) | [TableOutputBasket](#interface-tableoutputbasket) |
|
|
44
|
+
| [ChaintracksFetchApi](#interface-chaintracksfetchapi) | [MonitorOptions](#interface-monitoroptions) | [TableOutputTag](#interface-tableoutputtag) |
|
|
45
|
+
| [ChaintracksFsApi](#interface-chaintracksfsapi) | [OutPoint](#interface-outpoint) | [TableOutputTagMap](#interface-tableoutputtagmap) |
|
|
46
|
+
| [ChaintracksInfoApi](#interface-chaintracksinfoapi) | [Paged](#interface-paged) | [TableOutputX](#interface-tableoutputx) |
|
|
47
|
+
| [ChaintracksManagementApi](#interface-chaintracksmanagementapi) | [PendingSignAction](#interface-pendingsignaction) | [TableProvenTx](#interface-tableproventx) |
|
|
48
|
+
| [ChaintracksOptions](#interface-chaintracksoptions) | [PendingStorageInput](#interface-pendingstorageinput) | [TableProvenTxReq](#interface-tableproventxreq) |
|
|
49
|
+
| [ChaintracksPackageInfoApi](#interface-chaintrackspackageinfoapi) | [PermissionRequest](#interface-permissionrequest) | [TableProvenTxReqDynamics](#interface-tableproventxreqdynamics) |
|
|
50
|
+
| [ChaintracksReadableFileApi](#interface-chaintracksreadablefileapi) | [PermissionToken](#interface-permissiontoken) | [TableSettings](#interface-tablesettings) |
|
|
51
|
+
| [ChaintracksServiceClientOptions](#interface-chaintracksserviceclientoptions) | [PermissionsManagerConfig](#interface-permissionsmanagerconfig) | [TableSyncState](#interface-tablesyncstate) |
|
|
52
|
+
| [ChaintracksStorageApi](#interface-chaintracksstorageapi) | [PostBeefResult](#interface-postbeefresult) | [TableTransaction](#interface-tabletransaction) |
|
|
53
|
+
| [ChaintracksStorageBaseOptions](#interface-chaintracksstoragebaseoptions) | [PostBeefResultForTxidApi](#interface-postbeefresultfortxidapi) | [TableTxLabel](#interface-tabletxlabel) |
|
|
54
|
+
| [ChaintracksStorageBulkFileApi](#interface-chaintracksstoragebulkfileapi) | [PostReqsToNetworkDetails](#interface-postreqstonetworkdetails) | [TableTxLabelMap](#interface-tabletxlabelmap) |
|
|
55
|
+
| [ChaintracksStorageIdbOptions](#interface-chaintracksstorageidboptions) | [PostReqsToNetworkResult](#interface-postreqstonetworkresult) | [TableUser](#interface-tableuser) |
|
|
56
|
+
| [ChaintracksStorageIdbSchema](#interface-chaintracksstorageidbschema) | [PostTxResultForTxid](#interface-posttxresultfortxid) | [TaskPurgeParams](#interface-taskpurgeparams) |
|
|
57
|
+
| [ChaintracksStorageIngestApi](#interface-chaintracksstorageingestapi) | [PostTxResultForTxidError](#interface-posttxresultfortxiderror) | [TrustSettings](#interface-trustsettings) |
|
|
58
|
+
| [ChaintracksStorageNoDbOptions](#interface-chaintracksstoragenodboptions) | [PostTxsResult](#interface-posttxsresult) | [TrxToken](#interface-trxtoken) |
|
|
59
|
+
| [ChaintracksStorageQueryApi](#interface-chaintracksstoragequeryapi) | [ProcessSyncChunkResult](#interface-processsyncchunkresult) | [TscMerkleProofApi](#interface-tscmerkleproofapi) |
|
|
60
|
+
| [ChaintracksWritableFileApi](#interface-chaintrackswritablefileapi) | [Profile](#interface-profile) | [TxScriptOffsets](#interface-txscriptoffsets) |
|
|
61
|
+
| [CommitNewTxResults](#interface-commitnewtxresults) | [ProvenOrRawTx](#interface-provenorrawtx) | [UMPToken](#interface-umptoken) |
|
|
62
|
+
| [CompleteAuthResponse](#interface-completeauthresponse) | [ProvenTransactionStatus](#interface-proventransactionstatus) | [UMPTokenInteractor](#interface-umptokeninteractor) |
|
|
63
|
+
| [CreateActionResultX](#interface-createactionresultx) | [ProvenTxFromTxidResult](#interface-proventxfromtxidresult) | [UpdateProvenTxReqWithNewProvenTxArgs](#interface-updateproventxreqwithnewproventxargs) |
|
|
64
|
+
| [DeactivedHeader](#interface-deactivedheader) | [ProvenTxReqHistory](#interface-proventxreqhistory) | [UpdateProvenTxReqWithNewProvenTxResult](#interface-updateproventxreqwithnewproventxresult) |
|
|
65
|
+
| [EntitySyncMap](#interface-entitysyncmap) | [ProvenTxReqHistorySummaryApi](#interface-proventxreqhistorysummaryapi) | [ValidateGenerateChangeSdkParamsResult](#interface-validategeneratechangesdkparamsresult) |
|
|
66
|
+
| [EntityTimeStamp](#interface-entitytimestamp) | [ProvenTxReqNotify](#interface-proventxreqnotify) | [VerifyAndRepairBeefResult](#interface-verifyandrepairbeefresult) |
|
|
67
|
+
| [ExchangeRatesIoApi](#interface-exchangeratesioapi) | [ProviderCallHistory](#interface-providercallhistory) | [WalletArgs](#interface-walletargs) |
|
|
68
|
+
| [ExtendedVerifiableCertificate](#interface-extendedverifiablecertificate) | [PurgeParams](#interface-purgeparams) | [WalletBalance](#interface-walletbalance) |
|
|
69
|
+
| [FiatExchangeRates](#interface-fiatexchangerates) | [PurgeResults](#interface-purgeresults) | [WalletPermissionsManagerCallbacks](#interface-walletpermissionsmanagercallbacks) |
|
|
70
|
+
| [FindCertificateFieldsArgs](#interface-findcertificatefieldsargs) | [ReproveHeaderResult](#interface-reproveheaderresult) | [WalletServices](#interface-walletservices) |
|
|
71
|
+
| [FindCertificatesArgs](#interface-findcertificatesargs) | [ReproveProvenResult](#interface-reproveprovenresult) | [WalletServicesOptions](#interface-walletservicesoptions) |
|
|
72
|
+
| [FindCommissionsArgs](#interface-findcommissionsargs) | [RequestSyncChunkArgs](#interface-requestsyncchunkargs) | [WalletSettings](#interface-walletsettings) |
|
|
73
|
+
| [FindForUserSincePagedArgs](#interface-findforusersincepagedargs) | [ReviewActionResult](#interface-reviewactionresult) | [WalletSettingsManagerConfig](#interface-walletsettingsmanagerconfig) |
|
|
74
|
+
| [FindMonitorEventsArgs](#interface-findmonitoreventsargs) | [ScriptTemplateParamsBRC29](#interface-scripttemplateparamsbrc29) | [WalletSigner](#interface-walletsigner) |
|
|
75
|
+
| [FindOutputBasketsArgs](#interface-findoutputbasketsargs) | [ScriptTemplateUnlock](#interface-scripttemplateunlock) | [WalletStorage](#interface-walletstorage) |
|
|
76
|
+
| [FindOutputTagMapsArgs](#interface-findoutputtagmapsargs) | [ServiceCall](#interface-servicecall) | [WalletStorageInfo](#interface-walletstorageinfo) |
|
|
77
|
+
| [FindOutputTagsArgs](#interface-findoutputtagsargs) | [ServiceCall](#interface-servicecall) | [WalletStorageProvider](#interface-walletstorageprovider) |
|
|
78
|
+
| [FindOutputsArgs](#interface-findoutputsargs) | [ServiceCallHistory](#interface-servicecallhistory) | [WalletStorageReader](#interface-walletstoragereader) |
|
|
79
|
+
| [FindPartialSincePagedArgs](#interface-findpartialsincepagedargs) | [ServiceCallHistoryCounts](#interface-servicecallhistorycounts) | [WalletStorageSync](#interface-walletstoragesync) |
|
|
80
|
+
| [FindProvenTxReqsArgs](#interface-findproventxreqsargs) | [ServiceToCall](#interface-servicetocall) | [WalletStorageSyncReader](#interface-walletstoragesyncreader) |
|
|
81
|
+
| [FindProvenTxsArgs](#interface-findproventxsargs) | [SetupClientWalletArgs](#interface-setupclientwalletargs) | [WalletStorageWriter](#interface-walletstoragewriter) |
|
|
82
|
+
| [FindSincePagedArgs](#interface-findsincepagedargs) | [SetupClientWalletClientArgs](#interface-setupclientwalletclientargs) | [WalletTheme](#interface-wallettheme) |
|
|
83
|
+
| [FindSyncStatesArgs](#interface-findsyncstatesargs) | [SetupWallet](#interface-setupwallet) | [WhatsOnChainServicesOptions](#interface-whatsonchainservicesoptions) |
|
|
84
|
+
| [FindTransactionsArgs](#interface-findtransactionsargs) | [SetupWalletClient](#interface-setupwalletclient) | [WocChainInfo](#interface-wocchaininfo) |
|
|
85
|
+
| [FindTxLabelMapsArgs](#interface-findtxlabelmapsargs) | [SetupWalletIdb](#interface-setupwalletidb) | [WocGetHeaderByteFileLinks](#interface-wocgetheaderbytefilelinks) |
|
|
86
|
+
| [FindTxLabelsArgs](#interface-findtxlabelsargs) | [SetupWalletIdbArgs](#interface-setupwalletidbargs) | [WocGetHeadersHeader](#interface-wocgetheadersheader) |
|
|
87
|
+
| [FindUsersArgs](#interface-findusersargs) | [SignActionResultX](#interface-signactionresultx) | [WocHeader](#interface-wocheader) |
|
|
88
|
+
| [GenerateChangeSdkChangeInput](#interface-generatechangesdkchangeinput) | [StartAuthResponse](#interface-startauthresponse) | [XValidCreateActionOutput](#interface-xvalidcreateactionoutput) |
|
|
89
|
+
| [GenerateChangeSdkChangeOutput](#interface-generatechangesdkchangeoutput) | [StatusForTxidResult](#interface-statusfortxidresult) | |
|
|
98
90
|
|
|
99
91
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
100
92
|
|
|
@@ -3351,11 +3343,11 @@ export interface ListActionsSpecOp {
|
|
|
3351
3343
|
name: string;
|
|
3352
3344
|
labelsToIntercept?: string[];
|
|
3353
3345
|
setStatusFilter?: () => TransactionStatus[];
|
|
3354
|
-
postProcess?: (s: StorageProvider, auth: AuthId, vargs: ValidListActionsArgs, specOpLabels: string[], txs: Partial<TableTransaction>[]) => Promise<void>;
|
|
3346
|
+
postProcess?: (s: StorageProvider, auth: AuthId, vargs: Validation.ValidListActionsArgs, specOpLabels: string[], txs: Partial<TableTransaction>[]) => Promise<void>;
|
|
3355
3347
|
}
|
|
3356
3348
|
```
|
|
3357
3349
|
|
|
3358
|
-
See also: [AuthId](./client.md#interface-authid), [StorageProvider](./storage.md#class-storageprovider), [TableTransaction](./storage.md#interface-tabletransaction), [TransactionStatus](./client.md#type-transactionstatus)
|
|
3350
|
+
See also: [AuthId](./client.md#interface-authid), [StorageProvider](./storage.md#class-storageprovider), [TableTransaction](./storage.md#interface-tabletransaction), [TransactionStatus](./client.md#type-transactionstatus)
|
|
3359
3351
|
|
|
3360
3352
|
###### Property labelsToIntercept
|
|
3361
3353
|
|
|
@@ -3379,15 +3371,15 @@ export interface ListOutputsSpecOp {
|
|
|
3379
3371
|
ignoreLimit?: boolean;
|
|
3380
3372
|
includeOutputScripts?: boolean;
|
|
3381
3373
|
includeSpent?: boolean;
|
|
3382
|
-
resultFromTags?: (s: StorageProvider, auth: AuthId, vargs: ValidListOutputsArgs, specOpTags: string[]) => Promise<ListOutputsResult>;
|
|
3383
|
-
resultFromOutputs?: (s: StorageProvider, auth: AuthId, vargs: ValidListOutputsArgs, specOpTags: string[], outputs: TableOutput[]) => Promise<ListOutputsResult>;
|
|
3384
|
-
filterOutputs?: (s: StorageProvider, auth: AuthId, vargs: ValidListOutputsArgs, specOpTags: string[], outputs: TableOutput[]) => Promise<TableOutput[]>;
|
|
3374
|
+
resultFromTags?: (s: StorageProvider, auth: AuthId, vargs: Validation.ValidListOutputsArgs, specOpTags: string[]) => Promise<ListOutputsResult>;
|
|
3375
|
+
resultFromOutputs?: (s: StorageProvider, auth: AuthId, vargs: Validation.ValidListOutputsArgs, specOpTags: string[], outputs: TableOutput[]) => Promise<ListOutputsResult>;
|
|
3376
|
+
filterOutputs?: (s: StorageProvider, auth: AuthId, vargs: Validation.ValidListOutputsArgs, specOpTags: string[], outputs: TableOutput[]) => Promise<TableOutput[]>;
|
|
3385
3377
|
tagsToIntercept?: string[];
|
|
3386
3378
|
tagsParamsCount?: number;
|
|
3387
3379
|
}
|
|
3388
3380
|
```
|
|
3389
3381
|
|
|
3390
|
-
See also: [AuthId](./client.md#interface-authid), [StorageProvider](./storage.md#class-storageprovider), [TableOutput](./storage.md#interface-tableoutput)
|
|
3382
|
+
See also: [AuthId](./client.md#interface-authid), [StorageProvider](./storage.md#class-storageprovider), [TableOutput](./storage.md#interface-tableoutput)
|
|
3391
3383
|
|
|
3392
3384
|
###### Property tagsParamsCount
|
|
3393
3385
|
|
|
@@ -3702,14 +3694,14 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
3702
3694
|
export interface PendingSignAction {
|
|
3703
3695
|
reference: string;
|
|
3704
3696
|
dcr: StorageCreateActionResult;
|
|
3705
|
-
args: ValidCreateActionArgs;
|
|
3697
|
+
args: Validation.ValidCreateActionArgs;
|
|
3706
3698
|
tx: BsvTransaction;
|
|
3707
3699
|
amount: number;
|
|
3708
3700
|
pdi: PendingStorageInput[];
|
|
3709
3701
|
}
|
|
3710
3702
|
```
|
|
3711
3703
|
|
|
3712
|
-
See also: [PendingStorageInput](./client.md#interface-pendingstorageinput), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult)
|
|
3704
|
+
See also: [PendingStorageInput](./client.md#interface-pendingstorageinput), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult)
|
|
3713
3705
|
|
|
3714
3706
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
3715
3707
|
|
|
@@ -5549,7 +5541,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
5549
5541
|
##### Interface: StorageCreateTransactionSdkOutput
|
|
5550
5542
|
|
|
5551
5543
|
```ts
|
|
5552
|
-
export interface StorageCreateTransactionSdkOutput extends ValidCreateActionOutput {
|
|
5544
|
+
export interface StorageCreateTransactionSdkOutput extends Validation.ValidCreateActionOutput {
|
|
5553
5545
|
vout: number;
|
|
5554
5546
|
providedBy: StorageProvidedBy;
|
|
5555
5547
|
purpose?: string;
|
|
@@ -5557,7 +5549,7 @@ export interface StorageCreateTransactionSdkOutput extends ValidCreateActionOutp
|
|
|
5557
5549
|
}
|
|
5558
5550
|
```
|
|
5559
5551
|
|
|
5560
|
-
See also: [StorageProvidedBy](./client.md#type-storageprovidedby)
|
|
5552
|
+
See also: [StorageProvidedBy](./client.md#type-storageprovidedby)
|
|
5561
5553
|
|
|
5562
5554
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
5563
5555
|
|
|
@@ -5607,6 +5599,7 @@ export interface StorageGetBeefOptions {
|
|
|
5607
5599
|
ignoreNewProven?: boolean;
|
|
5608
5600
|
minProofLevel?: number;
|
|
5609
5601
|
chainTracker?: ChainTracker;
|
|
5602
|
+
skipInvalidProofs?: boolean;
|
|
5610
5603
|
}
|
|
5611
5604
|
```
|
|
5612
5605
|
|
|
@@ -5666,6 +5659,14 @@ optional. Default is zero. Ignores available merkle paths until recursion detpth
|
|
|
5666
5659
|
minProofLevel?: number
|
|
5667
5660
|
```
|
|
5668
5661
|
|
|
5662
|
+
###### Property skipInvalidProofs
|
|
5663
|
+
|
|
5664
|
+
optional. Default is false. If chainTracker is valid and an invalid proof is found: if true, pursues deeper beef. If false, throws WERR_INVALID_MERKLE_ROOT.
|
|
5665
|
+
|
|
5666
|
+
```ts
|
|
5667
|
+
skipInvalidProofs?: boolean
|
|
5668
|
+
```
|
|
5669
|
+
|
|
5669
5670
|
###### Property trustSelf
|
|
5670
5671
|
|
|
5671
5672
|
if 'known', txids known to local storage as valid are included as txidOnly
|
|
@@ -5944,10 +5945,12 @@ export interface StorageProcessActionArgs {
|
|
|
5944
5945
|
txid?: string;
|
|
5945
5946
|
rawTx?: number[];
|
|
5946
5947
|
sendWith: string[];
|
|
5947
|
-
|
|
5948
|
+
logger?: WalletLoggerInterface;
|
|
5948
5949
|
}
|
|
5949
5950
|
```
|
|
5950
5951
|
|
|
5952
|
+
See also: [logger](./client.md#variable-logger)
|
|
5953
|
+
|
|
5951
5954
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
5952
5955
|
|
|
5953
5956
|
---
|
|
@@ -6980,755 +6983,301 @@ See also: [ProvenTxReqStatus](./client.md#type-proventxreqstatus)
|
|
|
6980
6983
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
6981
6984
|
|
|
6982
6985
|
---
|
|
6983
|
-
##### Interface:
|
|
6986
|
+
##### Interface: ValidateGenerateChangeSdkParamsResult
|
|
6984
6987
|
|
|
6985
6988
|
```ts
|
|
6986
|
-
export interface
|
|
6987
|
-
|
|
6989
|
+
export interface ValidateGenerateChangeSdkParamsResult {
|
|
6990
|
+
hasMaxPossibleOutput?: number;
|
|
6988
6991
|
}
|
|
6989
6992
|
```
|
|
6990
6993
|
|
|
6991
|
-
See also: [ValidWalletSignerArgs](./client.md#interface-validwalletsignerargs)
|
|
6992
|
-
|
|
6993
6994
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
6994
6995
|
|
|
6995
6996
|
---
|
|
6996
|
-
##### Interface:
|
|
6997
|
+
##### Interface: VerifyAndRepairBeefResult
|
|
6997
6998
|
|
|
6998
6999
|
```ts
|
|
6999
|
-
export interface
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
signature?: HexString;
|
|
7007
|
-
certifierUrl?: string;
|
|
7008
|
-
keyringRevealer?: KeyringRevealer;
|
|
7009
|
-
keyringForSubject?: Record<CertificateFieldNameUnder50Bytes, Base64String>;
|
|
7010
|
-
privileged: boolean;
|
|
7011
|
-
privilegedReason?: DescriptionString5to50Bytes;
|
|
7000
|
+
export interface VerifyAndRepairBeefResult {
|
|
7001
|
+
isStructurallyValid: boolean;
|
|
7002
|
+
originalRoots: Record<number, string>;
|
|
7003
|
+
invalidRoots: Record<number, {
|
|
7004
|
+
root: string;
|
|
7005
|
+
reproveResults: sdk.ReproveHeaderResult;
|
|
7006
|
+
}>;
|
|
7012
7007
|
}
|
|
7013
7008
|
```
|
|
7014
7009
|
|
|
7015
|
-
See also: [
|
|
7010
|
+
See also: [ReproveHeaderResult](./client.md#interface-reproveheaderresult)
|
|
7016
7011
|
|
|
7017
7012
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7018
7013
|
|
|
7019
7014
|
---
|
|
7020
|
-
##### Interface:
|
|
7015
|
+
##### Interface: WalletArgs
|
|
7016
|
+
|
|
7017
|
+
The preferred means of constructing a `Wallet` is with a `WalletArgs` instance.
|
|
7021
7018
|
|
|
7022
7019
|
```ts
|
|
7023
|
-
export interface
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
privileged: boolean;
|
|
7034
|
-
privilegedReason?: DescriptionString5to50Bytes;
|
|
7020
|
+
export interface WalletArgs {
|
|
7021
|
+
chain: Chain;
|
|
7022
|
+
keyDeriver: KeyDeriverApi;
|
|
7023
|
+
storage: WalletStorageManager;
|
|
7024
|
+
services?: WalletServices;
|
|
7025
|
+
monitor?: Monitor;
|
|
7026
|
+
privilegedKeyManager?: PrivilegedKeyManager;
|
|
7027
|
+
settingsManager?: WalletSettingsManager;
|
|
7028
|
+
lookupResolver?: LookupResolver;
|
|
7029
|
+
makeLogger?: MakeWalletLogger;
|
|
7035
7030
|
}
|
|
7036
7031
|
```
|
|
7037
7032
|
|
|
7038
|
-
See also: [
|
|
7033
|
+
See also: [Chain](./client.md#type-chain), [Monitor](./monitor.md#class-monitor), [PrivilegedKeyManager](./client.md#class-privilegedkeymanager), [WalletServices](./client.md#interface-walletservices), [WalletSettingsManager](./client.md#class-walletsettingsmanager), [WalletStorageManager](./storage.md#class-walletstoragemanager)
|
|
7034
|
+
|
|
7035
|
+
###### Property makeLogger
|
|
7036
|
+
|
|
7037
|
+
Optional. Provide a function conforming to the `MakeWalletLogger` type to enable wallet request logging.
|
|
7039
7038
|
|
|
7040
|
-
|
|
7039
|
+
For simple requests using `Console` may be adequate, initialize with
|
|
7040
|
+
`() => Console`
|
|
7041
7041
|
|
|
7042
|
-
|
|
7043
|
-
|
|
7042
|
+
Aggregate tracing and control over capturing all logged output in one place:
|
|
7043
|
+
`(log?: string | WalletLoggerInterface) => new WalletLogger(log)`
|
|
7044
7044
|
|
|
7045
7045
|
```ts
|
|
7046
|
-
|
|
7046
|
+
makeLogger?: MakeWalletLogger
|
|
7047
7047
|
```
|
|
7048
7048
|
|
|
7049
7049
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7050
7050
|
|
|
7051
7051
|
---
|
|
7052
|
-
##### Interface:
|
|
7052
|
+
##### Interface: WalletBalance
|
|
7053
7053
|
|
|
7054
7054
|
```ts
|
|
7055
|
-
export interface
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
privileged: boolean;
|
|
7062
|
-
privilegedReason?: DescriptionString5to50Bytes;
|
|
7055
|
+
export interface WalletBalance {
|
|
7056
|
+
total: number;
|
|
7057
|
+
utxos: {
|
|
7058
|
+
satoshis: number;
|
|
7059
|
+
outpoint: string;
|
|
7060
|
+
}[];
|
|
7063
7061
|
}
|
|
7064
7062
|
```
|
|
7065
7063
|
|
|
7066
|
-
See also: [ValidWalletSignerArgs](./client.md#interface-validwalletsignerargs)
|
|
7067
|
-
|
|
7068
|
-
###### Property subject
|
|
7069
|
-
|
|
7070
|
-
validated to an empty string, must be provided by wallet and must
|
|
7071
|
-
match expectations of keyringForSubject
|
|
7072
|
-
|
|
7073
|
-
```ts
|
|
7074
|
-
subject: PubKeyHex
|
|
7075
|
-
```
|
|
7076
|
-
|
|
7077
7064
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7078
7065
|
|
|
7079
7066
|
---
|
|
7080
|
-
##### Interface:
|
|
7067
|
+
##### Interface: WalletPermissionsManagerCallbacks
|
|
7068
|
+
|
|
7069
|
+
The set of callbacks that external code can bind to, e.g. to display UI prompts or logs
|
|
7070
|
+
when a permission is requested.
|
|
7081
7071
|
|
|
7082
7072
|
```ts
|
|
7083
|
-
export interface
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7073
|
+
export interface WalletPermissionsManagerCallbacks {
|
|
7074
|
+
onProtocolPermissionRequested?: PermissionEventHandler[];
|
|
7075
|
+
onBasketAccessRequested?: PermissionEventHandler[];
|
|
7076
|
+
onCertificateAccessRequested?: PermissionEventHandler[];
|
|
7077
|
+
onSpendingAuthorizationRequested?: PermissionEventHandler[];
|
|
7078
|
+
onGroupedPermissionRequested?: GroupedPermissionEventHandler[];
|
|
7087
7079
|
}
|
|
7088
7080
|
```
|
|
7089
7081
|
|
|
7082
|
+
See also: [GroupedPermissionEventHandler](./client.md#type-groupedpermissioneventhandler), [PermissionEventHandler](./client.md#type-permissioneventhandler)
|
|
7083
|
+
|
|
7090
7084
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7091
7085
|
|
|
7092
7086
|
---
|
|
7093
|
-
##### Interface:
|
|
7087
|
+
##### Interface: WalletServices
|
|
7088
|
+
|
|
7089
|
+
Defines standard interfaces to access functionality implemented by external transaction processing services.
|
|
7094
7090
|
|
|
7095
7091
|
```ts
|
|
7096
|
-
export interface
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7092
|
+
export interface WalletServices {
|
|
7093
|
+
chain: Chain;
|
|
7094
|
+
getChainTracker(): Promise<ChainTracker>;
|
|
7095
|
+
getHeaderForHeight(height: number): Promise<number[]>;
|
|
7096
|
+
getHeight(): Promise<number>;
|
|
7097
|
+
getBsvExchangeRate(): Promise<number>;
|
|
7098
|
+
getFiatExchangeRate(currency: "USD" | "GBP" | "EUR", base?: "USD" | "GBP" | "EUR"): Promise<number>;
|
|
7099
|
+
getRawTx(txid: string, useNext?: boolean): Promise<GetRawTxResult>;
|
|
7100
|
+
getMerklePath(txid: string, useNext?: boolean): Promise<GetMerklePathResult>;
|
|
7101
|
+
postBeef(beef: Beef, txids: string[], logger?: WalletLoggerInterface): Promise<PostBeefResult[]>;
|
|
7102
|
+
hashOutputScript(script: string): string;
|
|
7103
|
+
getStatusForTxids(txids: string[], useNext?: boolean): Promise<GetStatusForTxidsResult>;
|
|
7104
|
+
isUtxo(output: TableOutput): Promise<boolean>;
|
|
7105
|
+
getUtxoStatus(output: string, outputFormat?: GetUtxoStatusOutputFormat, outpoint?: string, useNext?: boolean): Promise<GetUtxoStatusResult>;
|
|
7106
|
+
getScriptHashHistory(hash: string, useNext?: boolean, logger?: WalletLoggerInterface): Promise<GetScriptHashHistoryResult>;
|
|
7107
|
+
hashToHeader(hash: string): Promise<BlockHeader>;
|
|
7108
|
+
nLockTimeIsFinal(txOrLockTime: string | number[] | BsvTransaction | number): Promise<boolean>;
|
|
7109
|
+
getBeefForTxid(txid: string): Promise<Beef>;
|
|
7110
|
+
getServicesCallHistory(reset?: boolean): ServicesCallHistory;
|
|
7108
7111
|
}
|
|
7109
7112
|
```
|
|
7110
7113
|
|
|
7111
|
-
See also: [
|
|
7114
|
+
See also: [BlockHeader](./client.md#interface-blockheader), [Chain](./client.md#type-chain), [GetMerklePathResult](./client.md#interface-getmerklepathresult), [GetRawTxResult](./client.md#interface-getrawtxresult), [GetScriptHashHistoryResult](./client.md#interface-getscripthashhistoryresult), [GetStatusForTxidsResult](./client.md#interface-getstatusfortxidsresult), [GetUtxoStatusOutputFormat](./client.md#type-getutxostatusoutputformat), [GetUtxoStatusResult](./client.md#interface-getutxostatusresult), [PostBeefResult](./client.md#interface-postbeefresult), [ServicesCallHistory](./client.md#type-servicescallhistory), [TableOutput](./storage.md#interface-tableoutput), [getBeefForTxid](./services.md#function-getbeeffortxid), [logger](./client.md#variable-logger)
|
|
7112
7115
|
|
|
7113
|
-
###### Property
|
|
7116
|
+
###### Property chain
|
|
7114
7117
|
|
|
7115
|
-
|
|
7116
|
-
including those that do not require signature and those that were also contained
|
|
7117
|
-
in the inputBEEF.
|
|
7118
|
+
The chain being serviced.
|
|
7118
7119
|
|
|
7119
7120
|
```ts
|
|
7120
|
-
|
|
7121
|
+
chain: Chain
|
|
7121
7122
|
```
|
|
7123
|
+
See also: [Chain](./client.md#type-chain)
|
|
7122
7124
|
|
|
7123
|
-
|
|
7125
|
+
###### Method getBeefForTxid
|
|
7124
7126
|
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
+
Constructs a `Beef` for the given `txid` using only external data retrieval services.
|
|
7128
|
+
|
|
7129
|
+
In most cases, the `getBeefForTransaction` method of the `StorageProvider` class should be
|
|
7130
|
+
used instead to avoid redundantly retrieving data.
|
|
7127
7131
|
|
|
7128
7132
|
```ts
|
|
7129
|
-
|
|
7130
|
-
outpoint: OutPoint;
|
|
7131
|
-
inputDescription: DescriptionString5to2000Bytes;
|
|
7132
|
-
sequenceNumber: PositiveIntegerOrZero;
|
|
7133
|
-
unlockingScript?: HexString;
|
|
7134
|
-
unlockingScriptLength: PositiveInteger;
|
|
7135
|
-
}
|
|
7133
|
+
getBeefForTxid(txid: string): Promise<Beef>
|
|
7136
7134
|
```
|
|
7137
7135
|
|
|
7138
|
-
|
|
7136
|
+
Throws
|
|
7139
7137
|
|
|
7140
|
-
|
|
7138
|
+
errors if txid does not correspond to a valid transaction as determined by the
|
|
7139
|
+
configured services.
|
|
7141
7140
|
|
|
7142
|
-
|
|
7143
|
-
##### Interface: ValidCreateActionOptions
|
|
7141
|
+
###### Method getBsvExchangeRate
|
|
7144
7142
|
|
|
7145
|
-
|
|
7146
|
-
export interface ValidCreateActionOptions extends ValidProcessActionOptions {
|
|
7147
|
-
signAndProcess: boolean;
|
|
7148
|
-
trustSelf?: TrustSelf;
|
|
7149
|
-
knownTxids: TXIDHexString[];
|
|
7150
|
-
noSendChange: OutPoint[];
|
|
7151
|
-
randomizeOutputs: boolean;
|
|
7152
|
-
}
|
|
7153
|
-
```
|
|
7143
|
+
Approximate exchange rate US Dollar / BSV, USD / BSV
|
|
7154
7144
|
|
|
7155
|
-
|
|
7145
|
+
This is the US Dollar price of one BSV
|
|
7156
7146
|
|
|
7157
|
-
|
|
7147
|
+
```ts
|
|
7148
|
+
getBsvExchangeRate(): Promise<number>
|
|
7149
|
+
```
|
|
7158
7150
|
|
|
7159
|
-
|
|
7160
|
-
##### Interface: ValidCreateActionOutput
|
|
7151
|
+
###### Method getChainTracker
|
|
7161
7152
|
|
|
7162
7153
|
```ts
|
|
7163
|
-
|
|
7164
|
-
lockingScript: HexString;
|
|
7165
|
-
satoshis: SatoshiValue;
|
|
7166
|
-
outputDescription: DescriptionString5to2000Bytes;
|
|
7167
|
-
basket?: BasketStringUnder300Bytes;
|
|
7168
|
-
customInstructions?: string;
|
|
7169
|
-
tags: BasketStringUnder300Bytes[];
|
|
7170
|
-
}
|
|
7154
|
+
getChainTracker(): Promise<ChainTracker>
|
|
7171
7155
|
```
|
|
7172
7156
|
|
|
7173
|
-
|
|
7157
|
+
Returns
|
|
7174
7158
|
|
|
7175
|
-
|
|
7159
|
+
standard `ChainTracker` service which requires `options.chaintracks` be valid.
|
|
7176
7160
|
|
|
7177
|
-
|
|
7178
|
-
|
|
7161
|
+
###### Method getFiatExchangeRate
|
|
7162
|
+
|
|
7163
|
+
Approximate exchange rate currency per base.
|
|
7179
7164
|
|
|
7180
7165
|
```ts
|
|
7181
|
-
|
|
7182
|
-
attributes: Record<CertificateFieldNameUnder50Bytes, string>;
|
|
7183
|
-
limit: PositiveIntegerDefault10Max10000;
|
|
7184
|
-
offset: PositiveIntegerOrZero;
|
|
7185
|
-
seekPermission: boolean;
|
|
7186
|
-
}
|
|
7166
|
+
getFiatExchangeRate(currency: "USD" | "GBP" | "EUR", base?: "USD" | "GBP" | "EUR"): Promise<number>
|
|
7187
7167
|
```
|
|
7188
7168
|
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7192
|
-
|
|
7193
|
-
---
|
|
7194
|
-
##### Interface: ValidDiscoverByIdentityKeyArgs
|
|
7169
|
+
###### Method getHeaderForHeight
|
|
7195
7170
|
|
|
7196
7171
|
```ts
|
|
7197
|
-
|
|
7198
|
-
identityKey: PubKeyHex;
|
|
7199
|
-
limit: PositiveIntegerDefault10Max10000;
|
|
7200
|
-
offset: PositiveIntegerOrZero;
|
|
7201
|
-
seekPermission: boolean;
|
|
7202
|
-
}
|
|
7172
|
+
getHeaderForHeight(height: number): Promise<number[]>
|
|
7203
7173
|
```
|
|
7204
7174
|
|
|
7205
|
-
|
|
7175
|
+
Returns
|
|
7206
7176
|
|
|
7207
|
-
|
|
7177
|
+
serialized block header for height on active chain
|
|
7208
7178
|
|
|
7209
|
-
|
|
7210
|
-
##### Interface: ValidInternalizeActionArgs
|
|
7179
|
+
###### Method getHeight
|
|
7211
7180
|
|
|
7212
7181
|
```ts
|
|
7213
|
-
|
|
7214
|
-
tx: AtomicBEEF;
|
|
7215
|
-
outputs: InternalizeOutput[];
|
|
7216
|
-
description: DescriptionString5to2000Bytes;
|
|
7217
|
-
labels: LabelStringUnder300Bytes[];
|
|
7218
|
-
seekPermission: BooleanDefaultTrue;
|
|
7219
|
-
}
|
|
7182
|
+
getHeight(): Promise<number>
|
|
7220
7183
|
```
|
|
7221
7184
|
|
|
7222
|
-
|
|
7185
|
+
Returns
|
|
7223
7186
|
|
|
7224
|
-
|
|
7187
|
+
the height of the active chain
|
|
7225
7188
|
|
|
7226
|
-
|
|
7227
|
-
##### Interface: ValidInternalizeOutput
|
|
7189
|
+
###### Method getMerklePath
|
|
7228
7190
|
|
|
7229
|
-
|
|
7230
|
-
export interface ValidInternalizeOutput {
|
|
7231
|
-
outputIndex: PositiveIntegerOrZero;
|
|
7232
|
-
protocol: "wallet payment" | "basket insertion";
|
|
7233
|
-
paymentRemittance?: ValidWalletPayment;
|
|
7234
|
-
insertionRemittance?: ValidBasketInsertion;
|
|
7235
|
-
}
|
|
7236
|
-
```
|
|
7191
|
+
Attempts to obtain the merkle proof associated with a 32 byte transaction hash (txid).
|
|
7237
7192
|
|
|
7238
|
-
|
|
7193
|
+
Cycles through configured transaction processing services attempting to get a valid response.
|
|
7239
7194
|
|
|
7240
|
-
|
|
7195
|
+
On success:
|
|
7196
|
+
Result txid is the requested transaction hash
|
|
7197
|
+
Result proof will be the merkle proof.
|
|
7198
|
+
Result name will be the responding service's identifying name.
|
|
7199
|
+
Returns result without incrementing active service.
|
|
7241
7200
|
|
|
7242
|
-
|
|
7243
|
-
|
|
7201
|
+
On failure:
|
|
7202
|
+
Result txid is the requested transaction hash
|
|
7203
|
+
Result mapi will be the first mapi response obtained (service name and response), or null
|
|
7204
|
+
Result error will be the first error thrown (service name and CwiError), or null
|
|
7205
|
+
Increments to next configured service and tries again until all services have been tried.
|
|
7244
7206
|
|
|
7245
7207
|
```ts
|
|
7246
|
-
|
|
7247
|
-
labels: LabelStringUnder300Bytes[];
|
|
7248
|
-
labelQueryMode: "any" | "all";
|
|
7249
|
-
includeLabels: BooleanDefaultFalse;
|
|
7250
|
-
includeInputs: BooleanDefaultFalse;
|
|
7251
|
-
includeInputSourceLockingScripts: BooleanDefaultFalse;
|
|
7252
|
-
includeInputUnlockingScripts: BooleanDefaultFalse;
|
|
7253
|
-
includeOutputs: BooleanDefaultFalse;
|
|
7254
|
-
includeOutputLockingScripts: BooleanDefaultFalse;
|
|
7255
|
-
limit: PositiveIntegerDefault10Max10000;
|
|
7256
|
-
offset: PositiveIntegerOrZero;
|
|
7257
|
-
seekPermission: BooleanDefaultTrue;
|
|
7258
|
-
}
|
|
7208
|
+
getMerklePath(txid: string, useNext?: boolean): Promise<GetMerklePathResult>
|
|
7259
7209
|
```
|
|
7210
|
+
See also: [GetMerklePathResult](./client.md#interface-getmerklepathresult)
|
|
7260
7211
|
|
|
7261
|
-
|
|
7212
|
+
Argument Details
|
|
7262
7213
|
|
|
7263
|
-
|
|
7214
|
+
+ **txid**
|
|
7215
|
+
+ transaction hash for which proof is requested
|
|
7216
|
+
+ **useNext**
|
|
7217
|
+
+ optional, forces skip to next service before starting service requests cycle.
|
|
7264
7218
|
|
|
7265
|
-
|
|
7266
|
-
##### Interface: ValidListCertificatesArgs
|
|
7219
|
+
###### Method getRawTx
|
|
7267
7220
|
|
|
7268
|
-
|
|
7269
|
-
export interface ValidListCertificatesArgs extends ValidWalletSignerArgs {
|
|
7270
|
-
partial?: {
|
|
7271
|
-
type?: Base64String;
|
|
7272
|
-
serialNumber?: Base64String;
|
|
7273
|
-
certifier?: PubKeyHex;
|
|
7274
|
-
subject?: PubKeyHex;
|
|
7275
|
-
revocationOutpoint?: OutpointString;
|
|
7276
|
-
signature?: HexString;
|
|
7277
|
-
};
|
|
7278
|
-
certifiers: PubKeyHex[];
|
|
7279
|
-
types: Base64String[];
|
|
7280
|
-
limit: PositiveIntegerDefault10Max10000;
|
|
7281
|
-
offset: PositiveIntegerOrZero;
|
|
7282
|
-
privileged: BooleanDefaultFalse;
|
|
7283
|
-
privilegedReason?: DescriptionString5to50Bytes;
|
|
7284
|
-
}
|
|
7285
|
-
```
|
|
7221
|
+
Attempts to obtain the raw transaction bytes associated with a 32 byte transaction hash (txid).
|
|
7286
7222
|
|
|
7287
|
-
|
|
7223
|
+
Cycles through configured transaction processing services attempting to get a valid response.
|
|
7288
7224
|
|
|
7289
|
-
|
|
7225
|
+
On success:
|
|
7226
|
+
Result txid is the requested transaction hash
|
|
7227
|
+
Result rawTx will be an array containing raw transaction bytes.
|
|
7228
|
+
Result name will be the responding service's identifying name.
|
|
7229
|
+
Returns result without incrementing active service.
|
|
7290
7230
|
|
|
7291
|
-
|
|
7292
|
-
|
|
7231
|
+
On failure:
|
|
7232
|
+
Result txid is the requested transaction hash
|
|
7233
|
+
Result mapi will be the first mapi response obtained (service name and response), or null
|
|
7234
|
+
Result error will be the first error thrown (service name and CwiError), or null
|
|
7235
|
+
Increments to next configured service and tries again until all services have been tried.
|
|
7293
7236
|
|
|
7294
7237
|
```ts
|
|
7295
|
-
|
|
7296
|
-
basket: BasketStringUnder300Bytes;
|
|
7297
|
-
tags: OutputTagStringUnder300Bytes[];
|
|
7298
|
-
tagQueryMode: "all" | "any";
|
|
7299
|
-
includeLockingScripts: boolean;
|
|
7300
|
-
includeTransactions: boolean;
|
|
7301
|
-
includeCustomInstructions: BooleanDefaultFalse;
|
|
7302
|
-
includeTags: BooleanDefaultFalse;
|
|
7303
|
-
includeLabels: BooleanDefaultFalse;
|
|
7304
|
-
limit: PositiveIntegerDefault10Max10000;
|
|
7305
|
-
offset: number;
|
|
7306
|
-
seekPermission: BooleanDefaultTrue;
|
|
7307
|
-
knownTxids: string[];
|
|
7308
|
-
}
|
|
7238
|
+
getRawTx(txid: string, useNext?: boolean): Promise<GetRawTxResult>
|
|
7309
7239
|
```
|
|
7240
|
+
See also: [GetRawTxResult](./client.md#interface-getrawtxresult)
|
|
7310
7241
|
|
|
7311
|
-
|
|
7242
|
+
Argument Details
|
|
7312
7243
|
|
|
7313
|
-
|
|
7244
|
+
+ **txid**
|
|
7245
|
+
+ transaction hash for which raw transaction bytes are requested
|
|
7246
|
+
+ **useNext**
|
|
7247
|
+
+ optional, forces skip to next service before starting service requests cycle.
|
|
7314
7248
|
|
|
7315
|
-
|
|
7316
|
-
##### Interface: ValidProcessActionArgs
|
|
7249
|
+
###### Method getServicesCallHistory
|
|
7317
7250
|
|
|
7318
7251
|
```ts
|
|
7319
|
-
|
|
7320
|
-
options: ValidProcessActionOptions;
|
|
7321
|
-
isSendWith: boolean;
|
|
7322
|
-
isNewTx: boolean;
|
|
7323
|
-
isRemixChange: boolean;
|
|
7324
|
-
isNoSend: boolean;
|
|
7325
|
-
isDelayed: boolean;
|
|
7326
|
-
isTestWerrReviewActions: boolean;
|
|
7327
|
-
}
|
|
7252
|
+
getServicesCallHistory(reset?: boolean): ServicesCallHistory
|
|
7328
7253
|
```
|
|
7254
|
+
See also: [ServicesCallHistory](./client.md#type-servicescallhistory)
|
|
7329
7255
|
|
|
7330
|
-
|
|
7256
|
+
Returns
|
|
7331
7257
|
|
|
7332
|
-
|
|
7258
|
+
a history of service calls made to the configured services.
|
|
7333
7259
|
|
|
7334
|
-
|
|
7335
|
-
##### Interface: ValidProcessActionOptions
|
|
7260
|
+
Argument Details
|
|
7336
7261
|
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
acceptDelayedBroadcast: BooleanDefaultTrue;
|
|
7340
|
-
returnTXIDOnly: BooleanDefaultFalse;
|
|
7341
|
-
noSend: BooleanDefaultFalse;
|
|
7342
|
-
sendWith: TXIDHexString[];
|
|
7343
|
-
}
|
|
7344
|
-
```
|
|
7262
|
+
+ **reset**
|
|
7263
|
+
+ if true, ends current interval and starts a new one.
|
|
7345
7264
|
|
|
7346
|
-
|
|
7265
|
+
###### Method getStatusForTxids
|
|
7347
7266
|
|
|
7348
|
-
|
|
7349
|
-
|
|
7267
|
+
For an array of one or more txids, returns for each wether it is a 'known', 'mined', or 'unknown' transaction.
|
|
7268
|
+
|
|
7269
|
+
Primarily useful for determining if a recently broadcast transaction is known to the processing network.
|
|
7270
|
+
|
|
7271
|
+
Also returns the current depth from chain tip if 'mined'.
|
|
7350
7272
|
|
|
7351
7273
|
```ts
|
|
7352
|
-
|
|
7353
|
-
type?: Base64String;
|
|
7354
|
-
serialNumber?: Base64String;
|
|
7355
|
-
certifier?: PubKeyHex;
|
|
7356
|
-
subject?: PubKeyHex;
|
|
7357
|
-
revocationOutpoint?: OutpointString;
|
|
7358
|
-
signature?: HexString;
|
|
7359
|
-
fieldsToReveal: CertificateFieldNameUnder50Bytes[];
|
|
7360
|
-
verifier: PubKeyHex;
|
|
7361
|
-
privileged: boolean;
|
|
7362
|
-
privilegedReason?: DescriptionString5to50Bytes;
|
|
7363
|
-
}
|
|
7274
|
+
getStatusForTxids(txids: string[], useNext?: boolean): Promise<GetStatusForTxidsResult>
|
|
7364
7275
|
```
|
|
7276
|
+
See also: [GetStatusForTxidsResult](./client.md#interface-getstatusfortxidsresult)
|
|
7365
7277
|
|
|
7366
|
-
|
|
7278
|
+
###### Method getUtxoStatus
|
|
7367
7279
|
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
---
|
|
7371
|
-
##### Interface: ValidRelinquishCertificateArgs
|
|
7372
|
-
|
|
7373
|
-
```ts
|
|
7374
|
-
export interface ValidRelinquishCertificateArgs extends ValidWalletSignerArgs {
|
|
7375
|
-
type: Base64String;
|
|
7376
|
-
serialNumber: Base64String;
|
|
7377
|
-
certifier: PubKeyHex;
|
|
7378
|
-
}
|
|
7379
|
-
```
|
|
7380
|
-
|
|
7381
|
-
See also: [ValidWalletSignerArgs](./client.md#interface-validwalletsignerargs)
|
|
7382
|
-
|
|
7383
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7384
|
-
|
|
7385
|
-
---
|
|
7386
|
-
##### Interface: ValidRelinquishOutputArgs
|
|
7387
|
-
|
|
7388
|
-
```ts
|
|
7389
|
-
export interface ValidRelinquishOutputArgs extends ValidWalletSignerArgs {
|
|
7390
|
-
basket: BasketStringUnder300Bytes;
|
|
7391
|
-
output: OutpointString;
|
|
7392
|
-
}
|
|
7393
|
-
```
|
|
7394
|
-
|
|
7395
|
-
See also: [ValidWalletSignerArgs](./client.md#interface-validwalletsignerargs)
|
|
7396
|
-
|
|
7397
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7398
|
-
|
|
7399
|
-
---
|
|
7400
|
-
##### Interface: ValidSignActionArgs
|
|
7401
|
-
|
|
7402
|
-
```ts
|
|
7403
|
-
export interface ValidSignActionArgs extends ValidProcessActionArgs {
|
|
7404
|
-
spends: Record<PositiveIntegerOrZero, SignActionSpend>;
|
|
7405
|
-
reference: Base64String;
|
|
7406
|
-
options: ValidSignActionOptions;
|
|
7407
|
-
}
|
|
7408
|
-
```
|
|
7409
|
-
|
|
7410
|
-
See also: [ValidProcessActionArgs](./client.md#interface-validprocessactionargs), [ValidSignActionOptions](./client.md#interface-validsignactionoptions)
|
|
7411
|
-
|
|
7412
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7413
|
-
|
|
7414
|
-
---
|
|
7415
|
-
##### Interface: ValidSignActionOptions
|
|
7416
|
-
|
|
7417
|
-
```ts
|
|
7418
|
-
export interface ValidSignActionOptions extends ValidProcessActionOptions {
|
|
7419
|
-
acceptDelayedBroadcast: boolean;
|
|
7420
|
-
returnTXIDOnly: boolean;
|
|
7421
|
-
noSend: boolean;
|
|
7422
|
-
sendWith: TXIDHexString[];
|
|
7423
|
-
}
|
|
7424
|
-
```
|
|
7425
|
-
|
|
7426
|
-
See also: [ValidProcessActionOptions](./client.md#interface-validprocessactionoptions)
|
|
7427
|
-
|
|
7428
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7429
|
-
|
|
7430
|
-
---
|
|
7431
|
-
##### Interface: ValidWalletPayment
|
|
7432
|
-
|
|
7433
|
-
```ts
|
|
7434
|
-
export interface ValidWalletPayment {
|
|
7435
|
-
derivationPrefix: Base64String;
|
|
7436
|
-
derivationSuffix: Base64String;
|
|
7437
|
-
senderIdentityKey: PubKeyHex;
|
|
7438
|
-
}
|
|
7439
|
-
```
|
|
7440
|
-
|
|
7441
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7442
|
-
|
|
7443
|
-
---
|
|
7444
|
-
##### Interface: ValidWalletSignerArgs
|
|
7445
|
-
|
|
7446
|
-
```ts
|
|
7447
|
-
export interface ValidWalletSignerArgs {
|
|
7448
|
-
}
|
|
7449
|
-
```
|
|
7450
|
-
|
|
7451
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7452
|
-
|
|
7453
|
-
---
|
|
7454
|
-
##### Interface: ValidateGenerateChangeSdkParamsResult
|
|
7455
|
-
|
|
7456
|
-
```ts
|
|
7457
|
-
export interface ValidateGenerateChangeSdkParamsResult {
|
|
7458
|
-
hasMaxPossibleOutput?: number;
|
|
7459
|
-
}
|
|
7460
|
-
```
|
|
7461
|
-
|
|
7462
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7463
|
-
|
|
7464
|
-
---
|
|
7465
|
-
##### Interface: VerifyAndRepairBeefResult
|
|
7466
|
-
|
|
7467
|
-
```ts
|
|
7468
|
-
export interface VerifyAndRepairBeefResult {
|
|
7469
|
-
isStructurallyValid: boolean;
|
|
7470
|
-
originalRoots: Record<number, string>;
|
|
7471
|
-
invalidRoots: Record<number, {
|
|
7472
|
-
root: string;
|
|
7473
|
-
reproveResults: sdk.ReproveHeaderResult;
|
|
7474
|
-
}>;
|
|
7475
|
-
}
|
|
7476
|
-
```
|
|
7477
|
-
|
|
7478
|
-
See also: [ReproveHeaderResult](./client.md#interface-reproveheaderresult)
|
|
7479
|
-
|
|
7480
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7481
|
-
|
|
7482
|
-
---
|
|
7483
|
-
##### Interface: WalletArgs
|
|
7484
|
-
|
|
7485
|
-
```ts
|
|
7486
|
-
export interface WalletArgs {
|
|
7487
|
-
chain: Chain;
|
|
7488
|
-
keyDeriver: KeyDeriverApi;
|
|
7489
|
-
storage: WalletStorageManager;
|
|
7490
|
-
services?: WalletServices;
|
|
7491
|
-
monitor?: Monitor;
|
|
7492
|
-
privilegedKeyManager?: PrivilegedKeyManager;
|
|
7493
|
-
settingsManager?: WalletSettingsManager;
|
|
7494
|
-
lookupResolver?: LookupResolver;
|
|
7495
|
-
}
|
|
7496
|
-
```
|
|
7497
|
-
|
|
7498
|
-
See also: [Chain](./client.md#type-chain), [Monitor](./monitor.md#class-monitor), [PrivilegedKeyManager](./client.md#class-privilegedkeymanager), [WalletServices](./client.md#interface-walletservices), [WalletSettingsManager](./client.md#class-walletsettingsmanager), [WalletStorageManager](./storage.md#class-walletstoragemanager)
|
|
7499
|
-
|
|
7500
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7501
|
-
|
|
7502
|
-
---
|
|
7503
|
-
##### Interface: WalletBalance
|
|
7504
|
-
|
|
7505
|
-
```ts
|
|
7506
|
-
export interface WalletBalance {
|
|
7507
|
-
total: number;
|
|
7508
|
-
utxos: {
|
|
7509
|
-
satoshis: number;
|
|
7510
|
-
outpoint: string;
|
|
7511
|
-
}[];
|
|
7512
|
-
}
|
|
7513
|
-
```
|
|
7514
|
-
|
|
7515
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7516
|
-
|
|
7517
|
-
---
|
|
7518
|
-
##### Interface: WalletPermissionsManagerCallbacks
|
|
7519
|
-
|
|
7520
|
-
The set of callbacks that external code can bind to, e.g. to display UI prompts or logs
|
|
7521
|
-
when a permission is requested.
|
|
7522
|
-
|
|
7523
|
-
```ts
|
|
7524
|
-
export interface WalletPermissionsManagerCallbacks {
|
|
7525
|
-
onProtocolPermissionRequested?: PermissionEventHandler[];
|
|
7526
|
-
onBasketAccessRequested?: PermissionEventHandler[];
|
|
7527
|
-
onCertificateAccessRequested?: PermissionEventHandler[];
|
|
7528
|
-
onSpendingAuthorizationRequested?: PermissionEventHandler[];
|
|
7529
|
-
onGroupedPermissionRequested?: GroupedPermissionEventHandler[];
|
|
7530
|
-
}
|
|
7531
|
-
```
|
|
7532
|
-
|
|
7533
|
-
See also: [GroupedPermissionEventHandler](./client.md#type-groupedpermissioneventhandler), [PermissionEventHandler](./client.md#type-permissioneventhandler)
|
|
7534
|
-
|
|
7535
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7536
|
-
|
|
7537
|
-
---
|
|
7538
|
-
##### Interface: WalletServices
|
|
7539
|
-
|
|
7540
|
-
Defines standard interfaces to access functionality implemented by external transaction processing services.
|
|
7541
|
-
|
|
7542
|
-
```ts
|
|
7543
|
-
export interface WalletServices {
|
|
7544
|
-
chain: Chain;
|
|
7545
|
-
getChainTracker(): Promise<ChainTracker>;
|
|
7546
|
-
getHeaderForHeight(height: number): Promise<number[]>;
|
|
7547
|
-
getHeight(): Promise<number>;
|
|
7548
|
-
getBsvExchangeRate(): Promise<number>;
|
|
7549
|
-
getFiatExchangeRate(currency: "USD" | "GBP" | "EUR", base?: "USD" | "GBP" | "EUR"): Promise<number>;
|
|
7550
|
-
getRawTx(txid: string, useNext?: boolean): Promise<GetRawTxResult>;
|
|
7551
|
-
getMerklePath(txid: string, useNext?: boolean): Promise<GetMerklePathResult>;
|
|
7552
|
-
postBeef(beef: Beef, txids: string[]): Promise<PostBeefResult[]>;
|
|
7553
|
-
hashOutputScript(script: string): string;
|
|
7554
|
-
getStatusForTxids(txids: string[], useNext?: boolean): Promise<GetStatusForTxidsResult>;
|
|
7555
|
-
isUtxo(output: TableOutput): Promise<boolean>;
|
|
7556
|
-
getUtxoStatus(output: string, outputFormat?: GetUtxoStatusOutputFormat, outpoint?: string, useNext?: boolean): Promise<GetUtxoStatusResult>;
|
|
7557
|
-
getScriptHashHistory(hash: string, useNext?: boolean): Promise<GetScriptHashHistoryResult>;
|
|
7558
|
-
hashToHeader(hash: string): Promise<BlockHeader>;
|
|
7559
|
-
nLockTimeIsFinal(txOrLockTime: string | number[] | BsvTransaction | number): Promise<boolean>;
|
|
7560
|
-
getBeefForTxid(txid: string): Promise<Beef>;
|
|
7561
|
-
getServicesCallHistory(reset?: boolean): ServicesCallHistory;
|
|
7562
|
-
}
|
|
7563
|
-
```
|
|
7564
|
-
|
|
7565
|
-
See also: [BlockHeader](./client.md#interface-blockheader), [Chain](./client.md#type-chain), [GetMerklePathResult](./client.md#interface-getmerklepathresult), [GetRawTxResult](./client.md#interface-getrawtxresult), [GetScriptHashHistoryResult](./client.md#interface-getscripthashhistoryresult), [GetStatusForTxidsResult](./client.md#interface-getstatusfortxidsresult), [GetUtxoStatusOutputFormat](./client.md#type-getutxostatusoutputformat), [GetUtxoStatusResult](./client.md#interface-getutxostatusresult), [PostBeefResult](./client.md#interface-postbeefresult), [ServicesCallHistory](./client.md#type-servicescallhistory), [TableOutput](./storage.md#interface-tableoutput), [getBeefForTxid](./services.md#function-getbeeffortxid)
|
|
7566
|
-
|
|
7567
|
-
###### Property chain
|
|
7568
|
-
|
|
7569
|
-
The chain being serviced.
|
|
7570
|
-
|
|
7571
|
-
```ts
|
|
7572
|
-
chain: Chain
|
|
7573
|
-
```
|
|
7574
|
-
See also: [Chain](./client.md#type-chain)
|
|
7575
|
-
|
|
7576
|
-
###### Method getBeefForTxid
|
|
7577
|
-
|
|
7578
|
-
Constructs a `Beef` for the given `txid` using only external data retrieval services.
|
|
7579
|
-
|
|
7580
|
-
In most cases, the `getBeefForTransaction` method of the `StorageProvider` class should be
|
|
7581
|
-
used instead to avoid redundantly retrieving data.
|
|
7582
|
-
|
|
7583
|
-
```ts
|
|
7584
|
-
getBeefForTxid(txid: string): Promise<Beef>
|
|
7585
|
-
```
|
|
7586
|
-
|
|
7587
|
-
Throws
|
|
7588
|
-
|
|
7589
|
-
errors if txid does not correspond to a valid transaction as determined by the
|
|
7590
|
-
configured services.
|
|
7591
|
-
|
|
7592
|
-
###### Method getBsvExchangeRate
|
|
7593
|
-
|
|
7594
|
-
Approximate exchange rate US Dollar / BSV, USD / BSV
|
|
7595
|
-
|
|
7596
|
-
This is the US Dollar price of one BSV
|
|
7597
|
-
|
|
7598
|
-
```ts
|
|
7599
|
-
getBsvExchangeRate(): Promise<number>
|
|
7600
|
-
```
|
|
7601
|
-
|
|
7602
|
-
###### Method getChainTracker
|
|
7603
|
-
|
|
7604
|
-
```ts
|
|
7605
|
-
getChainTracker(): Promise<ChainTracker>
|
|
7606
|
-
```
|
|
7607
|
-
|
|
7608
|
-
Returns
|
|
7609
|
-
|
|
7610
|
-
standard `ChainTracker` service which requires `options.chaintracks` be valid.
|
|
7611
|
-
|
|
7612
|
-
###### Method getFiatExchangeRate
|
|
7613
|
-
|
|
7614
|
-
Approximate exchange rate currency per base.
|
|
7615
|
-
|
|
7616
|
-
```ts
|
|
7617
|
-
getFiatExchangeRate(currency: "USD" | "GBP" | "EUR", base?: "USD" | "GBP" | "EUR"): Promise<number>
|
|
7618
|
-
```
|
|
7619
|
-
|
|
7620
|
-
###### Method getHeaderForHeight
|
|
7621
|
-
|
|
7622
|
-
```ts
|
|
7623
|
-
getHeaderForHeight(height: number): Promise<number[]>
|
|
7624
|
-
```
|
|
7625
|
-
|
|
7626
|
-
Returns
|
|
7627
|
-
|
|
7628
|
-
serialized block header for height on active chain
|
|
7629
|
-
|
|
7630
|
-
###### Method getHeight
|
|
7631
|
-
|
|
7632
|
-
```ts
|
|
7633
|
-
getHeight(): Promise<number>
|
|
7634
|
-
```
|
|
7635
|
-
|
|
7636
|
-
Returns
|
|
7637
|
-
|
|
7638
|
-
the height of the active chain
|
|
7639
|
-
|
|
7640
|
-
###### Method getMerklePath
|
|
7641
|
-
|
|
7642
|
-
Attempts to obtain the merkle proof associated with a 32 byte transaction hash (txid).
|
|
7643
|
-
|
|
7644
|
-
Cycles through configured transaction processing services attempting to get a valid response.
|
|
7645
|
-
|
|
7646
|
-
On success:
|
|
7647
|
-
Result txid is the requested transaction hash
|
|
7648
|
-
Result proof will be the merkle proof.
|
|
7649
|
-
Result name will be the responding service's identifying name.
|
|
7650
|
-
Returns result without incrementing active service.
|
|
7651
|
-
|
|
7652
|
-
On failure:
|
|
7653
|
-
Result txid is the requested transaction hash
|
|
7654
|
-
Result mapi will be the first mapi response obtained (service name and response), or null
|
|
7655
|
-
Result error will be the first error thrown (service name and CwiError), or null
|
|
7656
|
-
Increments to next configured service and tries again until all services have been tried.
|
|
7657
|
-
|
|
7658
|
-
```ts
|
|
7659
|
-
getMerklePath(txid: string, useNext?: boolean): Promise<GetMerklePathResult>
|
|
7660
|
-
```
|
|
7661
|
-
See also: [GetMerklePathResult](./client.md#interface-getmerklepathresult)
|
|
7662
|
-
|
|
7663
|
-
Argument Details
|
|
7664
|
-
|
|
7665
|
-
+ **txid**
|
|
7666
|
-
+ transaction hash for which proof is requested
|
|
7667
|
-
+ **useNext**
|
|
7668
|
-
+ optional, forces skip to next service before starting service requests cycle.
|
|
7669
|
-
|
|
7670
|
-
###### Method getRawTx
|
|
7671
|
-
|
|
7672
|
-
Attempts to obtain the raw transaction bytes associated with a 32 byte transaction hash (txid).
|
|
7673
|
-
|
|
7674
|
-
Cycles through configured transaction processing services attempting to get a valid response.
|
|
7675
|
-
|
|
7676
|
-
On success:
|
|
7677
|
-
Result txid is the requested transaction hash
|
|
7678
|
-
Result rawTx will be an array containing raw transaction bytes.
|
|
7679
|
-
Result name will be the responding service's identifying name.
|
|
7680
|
-
Returns result without incrementing active service.
|
|
7681
|
-
|
|
7682
|
-
On failure:
|
|
7683
|
-
Result txid is the requested transaction hash
|
|
7684
|
-
Result mapi will be the first mapi response obtained (service name and response), or null
|
|
7685
|
-
Result error will be the first error thrown (service name and CwiError), or null
|
|
7686
|
-
Increments to next configured service and tries again until all services have been tried.
|
|
7687
|
-
|
|
7688
|
-
```ts
|
|
7689
|
-
getRawTx(txid: string, useNext?: boolean): Promise<GetRawTxResult>
|
|
7690
|
-
```
|
|
7691
|
-
See also: [GetRawTxResult](./client.md#interface-getrawtxresult)
|
|
7692
|
-
|
|
7693
|
-
Argument Details
|
|
7694
|
-
|
|
7695
|
-
+ **txid**
|
|
7696
|
-
+ transaction hash for which raw transaction bytes are requested
|
|
7697
|
-
+ **useNext**
|
|
7698
|
-
+ optional, forces skip to next service before starting service requests cycle.
|
|
7699
|
-
|
|
7700
|
-
###### Method getServicesCallHistory
|
|
7701
|
-
|
|
7702
|
-
```ts
|
|
7703
|
-
getServicesCallHistory(reset?: boolean): ServicesCallHistory
|
|
7704
|
-
```
|
|
7705
|
-
See also: [ServicesCallHistory](./client.md#type-servicescallhistory)
|
|
7706
|
-
|
|
7707
|
-
Returns
|
|
7708
|
-
|
|
7709
|
-
a history of service calls made to the configured services.
|
|
7710
|
-
|
|
7711
|
-
Argument Details
|
|
7712
|
-
|
|
7713
|
-
+ **reset**
|
|
7714
|
-
+ if true, ends current interval and starts a new one.
|
|
7715
|
-
|
|
7716
|
-
###### Method getStatusForTxids
|
|
7717
|
-
|
|
7718
|
-
For an array of one or more txids, returns for each wether it is a 'known', 'mined', or 'unknown' transaction.
|
|
7719
|
-
|
|
7720
|
-
Primarily useful for determining if a recently broadcast transaction is known to the processing network.
|
|
7721
|
-
|
|
7722
|
-
Also returns the current depth from chain tip if 'mined'.
|
|
7723
|
-
|
|
7724
|
-
```ts
|
|
7725
|
-
getStatusForTxids(txids: string[], useNext?: boolean): Promise<GetStatusForTxidsResult>
|
|
7726
|
-
```
|
|
7727
|
-
See also: [GetStatusForTxidsResult](./client.md#interface-getstatusfortxidsresult)
|
|
7728
|
-
|
|
7729
|
-
###### Method getUtxoStatus
|
|
7730
|
-
|
|
7731
|
-
Attempts to determine the UTXO status of a transaction output.
|
|
7280
|
+
Attempts to determine the UTXO status of a transaction output.
|
|
7732
7281
|
|
|
7733
7282
|
Cycles through configured transaction processing services attempting to get a valid response.
|
|
7734
7283
|
|
|
@@ -8085,7 +7634,7 @@ export interface WalletStorage {
|
|
|
8085
7634
|
isNew: boolean;
|
|
8086
7635
|
}>;
|
|
8087
7636
|
abortAction(args: AbortActionArgs): Promise<AbortActionResult>;
|
|
8088
|
-
createAction(args: ValidCreateActionArgs): Promise<StorageCreateActionResult>;
|
|
7637
|
+
createAction(args: Validation.ValidCreateActionArgs): Promise<StorageCreateActionResult>;
|
|
8089
7638
|
processAction(args: StorageProcessActionArgs): Promise<StorageProcessActionResults>;
|
|
8090
7639
|
internalizeAction(args: InternalizeActionArgs): Promise<InternalizeActionResult>;
|
|
8091
7640
|
findCertificates(args: FindCertificatesArgs): Promise<TableCertificateX[]>;
|
|
@@ -8093,7 +7642,7 @@ export interface WalletStorage {
|
|
|
8093
7642
|
findOutputs(args: FindOutputsArgs): Promise<TableOutput[]>;
|
|
8094
7643
|
findProvenTxReqs(args: FindProvenTxReqsArgs): Promise<TableProvenTxReq[]>;
|
|
8095
7644
|
listActions(args: ListActionsArgs): Promise<ListActionsResult>;
|
|
8096
|
-
listCertificates(args: ValidListCertificatesArgs): Promise<ListCertificatesResult>;
|
|
7645
|
+
listCertificates(args: Validation.ValidListCertificatesArgs): Promise<ListCertificatesResult>;
|
|
8097
7646
|
listOutputs(args: ListOutputsArgs): Promise<ListOutputsResult>;
|
|
8098
7647
|
insertCertificate(certificate: TableCertificateX): Promise<number>;
|
|
8099
7648
|
relinquishCertificate(args: RelinquishCertificateArgs): Promise<number>;
|
|
@@ -8102,7 +7651,7 @@ export interface WalletStorage {
|
|
|
8102
7651
|
}
|
|
8103
7652
|
```
|
|
8104
7653
|
|
|
8105
|
-
See also: [AuthId](./client.md#interface-authid), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageProcessActionArgs](./client.md#interface-storageprocessactionargs), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableUser](./storage.md#interface-tableuser), [
|
|
7654
|
+
See also: [AuthId](./client.md#interface-authid), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageProcessActionArgs](./client.md#interface-storageprocessactionargs), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableUser](./storage.md#interface-tableuser), [WalletServices](./client.md#interface-walletservices), [WalletStorageInfo](./client.md#interface-walletstorageinfo), [createAction](./storage.md#function-createaction), [internalizeAction](./storage.md#function-internalizeaction), [listActions](./storage.md#function-listactions), [listCertificates](./storage.md#function-listcertificates), [listOutputs](./storage.md#function-listoutputs), [processAction](./storage.md#function-processaction)
|
|
8106
7655
|
|
|
8107
7656
|
###### Method isStorageProvider
|
|
8108
7657
|
|
|
@@ -8176,13 +7725,13 @@ export interface WalletStorageReader {
|
|
|
8176
7725
|
findOutputBasketsAuth(auth: AuthId, args: FindOutputBasketsArgs): Promise<TableOutputBasket[]>;
|
|
8177
7726
|
findOutputsAuth(auth: AuthId, args: FindOutputsArgs): Promise<TableOutput[]>;
|
|
8178
7727
|
findProvenTxReqs(args: FindProvenTxReqsArgs): Promise<TableProvenTxReq[]>;
|
|
8179
|
-
listActions(auth: AuthId, vargs: ValidListActionsArgs): Promise<ListActionsResult>;
|
|
8180
|
-
listCertificates(auth: AuthId, vargs: ValidListCertificatesArgs): Promise<ListCertificatesResult>;
|
|
8181
|
-
listOutputs(auth: AuthId, vargs: ValidListOutputsArgs): Promise<ListOutputsResult>;
|
|
7728
|
+
listActions(auth: AuthId, vargs: Validation.ValidListActionsArgs): Promise<ListActionsResult>;
|
|
7729
|
+
listCertificates(auth: AuthId, vargs: Validation.ValidListCertificatesArgs): Promise<ListCertificatesResult>;
|
|
7730
|
+
listOutputs(auth: AuthId, vargs: Validation.ValidListOutputsArgs): Promise<ListOutputsResult>;
|
|
8182
7731
|
}
|
|
8183
7732
|
```
|
|
8184
7733
|
|
|
8185
|
-
See also: [AuthId](./client.md#interface-authid), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [
|
|
7734
|
+
See also: [AuthId](./client.md#interface-authid), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [WalletServices](./client.md#interface-walletservices), [listActions](./storage.md#function-listactions), [listCertificates](./storage.md#function-listcertificates), [listOutputs](./storage.md#function-listoutputs)
|
|
8186
7735
|
|
|
8187
7736
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
8188
7737
|
|
|
@@ -8243,7 +7792,7 @@ export interface WalletStorageWriter extends WalletStorageReader {
|
|
|
8243
7792
|
isNew: boolean;
|
|
8244
7793
|
}>;
|
|
8245
7794
|
abortAction(auth: AuthId, args: AbortActionArgs): Promise<AbortActionResult>;
|
|
8246
|
-
createAction(auth: AuthId, args: ValidCreateActionArgs): Promise<StorageCreateActionResult>;
|
|
7795
|
+
createAction(auth: AuthId, args: Validation.ValidCreateActionArgs): Promise<StorageCreateActionResult>;
|
|
8247
7796
|
processAction(auth: AuthId, args: StorageProcessActionArgs): Promise<StorageProcessActionResults>;
|
|
8248
7797
|
internalizeAction(auth: AuthId, args: InternalizeActionArgs): Promise<StorageInternalizeActionResult>;
|
|
8249
7798
|
insertCertificateAuth(auth: AuthId, certificate: TableCertificateX): Promise<number>;
|
|
@@ -8252,7 +7801,7 @@ export interface WalletStorageWriter extends WalletStorageReader {
|
|
|
8252
7801
|
}
|
|
8253
7802
|
```
|
|
8254
7803
|
|
|
8255
|
-
See also: [AuthId](./client.md#interface-authid), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageInternalizeActionResult](./client.md#interface-storageinternalizeactionresult), [StorageProcessActionArgs](./client.md#interface-storageprocessactionargs), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableSettings](./storage.md#interface-tablesettings), [TableUser](./storage.md#interface-tableuser), [
|
|
7804
|
+
See also: [AuthId](./client.md#interface-authid), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageInternalizeActionResult](./client.md#interface-storageinternalizeactionresult), [StorageProcessActionArgs](./client.md#interface-storageprocessactionargs), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableSettings](./storage.md#interface-tablesettings), [TableUser](./storage.md#interface-tableuser), [WalletStorageReader](./client.md#interface-walletstoragereader), [createAction](./storage.md#function-createaction), [internalizeAction](./storage.md#function-internalizeaction), [processAction](./storage.md#function-processaction)
|
|
8256
7805
|
|
|
8257
7806
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
8258
7807
|
|
|
@@ -8424,7 +7973,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
8424
7973
|
##### Interface: XValidCreateActionOutput
|
|
8425
7974
|
|
|
8426
7975
|
```ts
|
|
8427
|
-
export interface XValidCreateActionOutput extends ValidCreateActionOutput {
|
|
7976
|
+
export interface XValidCreateActionOutput extends Validation.ValidCreateActionOutput {
|
|
8428
7977
|
vout: number;
|
|
8429
7978
|
providedBy: StorageProvidedBy;
|
|
8430
7979
|
purpose?: string;
|
|
@@ -8433,7 +7982,7 @@ export interface XValidCreateActionOutput extends ValidCreateActionOutput {
|
|
|
8433
7982
|
}
|
|
8434
7983
|
```
|
|
8435
7984
|
|
|
8436
|
-
See also: [StorageProvidedBy](./client.md#type-storageprovidedby)
|
|
7985
|
+
See also: [StorageProvidedBy](./client.md#type-storageprovidedby)
|
|
8437
7986
|
|
|
8438
7987
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
8439
7988
|
|
|
@@ -8467,15 +8016,15 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
8467
8016
|
| [ChaintracksServiceClient](#class-chaintracksserviceclient) | [SingleWriterMultiReaderLock](#class-singlewritermultireaderlock) | [Wallet](#class-wallet) |
|
|
8468
8017
|
| [ChaintracksStorageBase](#class-chaintracksstoragebase) | [StorageClient](#class-storageclient) | [WalletAuthenticationManager](#class-walletauthenticationmanager) |
|
|
8469
8018
|
| [ChaintracksStorageIdb](#class-chaintracksstorageidb) | [StorageIdb](#class-storageidb) | [WalletError](#class-walleterror) |
|
|
8470
|
-
| [ChaintracksStorageNoDb](#class-chaintracksstoragenodb) | [StorageProvider](#class-storageprovider) | [
|
|
8471
|
-
| [DevConsoleInteractor](#class-devconsoleinteractor) | [StorageReader](#class-storagereader) | [
|
|
8472
|
-
| [EntityBase](#class-entitybase) | [StorageReaderWriter](#class-storagereaderwriter) | [
|
|
8473
|
-
| [EntityCertificate](#class-entitycertificate) | [StorageSyncReader](#class-storagesyncreader) | [
|
|
8474
|
-
| [EntityCertificateField](#class-entitycertificatefield) | [TaskCheckForProofs](#class-taskcheckforproofs) | [
|
|
8475
|
-
| [EntityCommission](#class-entitycommission) | [TaskCheckNoSends](#class-taskchecknosends) | [
|
|
8476
|
-
| [EntityOutput](#class-entityoutput) | [TaskClock](#class-taskclock) | [
|
|
8477
|
-
| [EntityOutputBasket](#class-entityoutputbasket) | [TaskFailAbandoned](#class-taskfailabandoned) | [
|
|
8478
|
-
| [EntityOutputTag](#class-entityoutputtag) | [TaskMonitorCallHistory](#class-taskmonitorcallhistory) |
|
|
8019
|
+
| [ChaintracksStorageNoDb](#class-chaintracksstoragenodb) | [StorageProvider](#class-storageprovider) | [WalletLogger](#class-walletlogger) |
|
|
8020
|
+
| [DevConsoleInteractor](#class-devconsoleinteractor) | [StorageReader](#class-storagereader) | [WalletMonitorTask](#class-walletmonitortask) |
|
|
8021
|
+
| [EntityBase](#class-entitybase) | [StorageReaderWriter](#class-storagereaderwriter) | [WalletPermissionsManager](#class-walletpermissionsmanager) |
|
|
8022
|
+
| [EntityCertificate](#class-entitycertificate) | [StorageSyncReader](#class-storagesyncreader) | [WalletSettingsManager](#class-walletsettingsmanager) |
|
|
8023
|
+
| [EntityCertificateField](#class-entitycertificatefield) | [TaskCheckForProofs](#class-taskcheckforproofs) | [WalletSigner](#class-walletsigner) |
|
|
8024
|
+
| [EntityCommission](#class-entitycommission) | [TaskCheckNoSends](#class-taskchecknosends) | [WalletStorageManager](#class-walletstoragemanager) |
|
|
8025
|
+
| [EntityOutput](#class-entityoutput) | [TaskClock](#class-taskclock) | [WhatsOnChain](#class-whatsonchain) |
|
|
8026
|
+
| [EntityOutputBasket](#class-entityoutputbasket) | [TaskFailAbandoned](#class-taskfailabandoned) | [WhatsOnChainNoServices](#class-whatsonchainnoservices) |
|
|
8027
|
+
| [EntityOutputTag](#class-entityoutputtag) | [TaskMonitorCallHistory](#class-taskmonitorcallhistory) | [WhatsOnChainServices](#class-whatsonchainservices) |
|
|
8479
8028
|
| [EntityOutputTagMap](#class-entityoutputtagmap) | [TaskNewHeader](#class-tasknewheader) | |
|
|
8480
8029
|
|
|
8481
8030
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
@@ -12002,16 +11551,16 @@ export class Services implements WalletServices {
|
|
|
12002
11551
|
async getStatusForTxids(txids: string[], useNext?: boolean): Promise<GetStatusForTxidsResult>
|
|
12003
11552
|
hashOutputScript(script: string): string
|
|
12004
11553
|
async isUtxo(output: TableOutput): Promise<boolean>
|
|
12005
|
-
async getUtxoStatus(output: string, outputFormat?: GetUtxoStatusOutputFormat, outpoint?: string, useNext?: boolean): Promise<GetUtxoStatusResult>
|
|
12006
|
-
async getScriptHashHistory(hash: string, useNext?: boolean): Promise<GetScriptHashHistoryResult>
|
|
11554
|
+
async getUtxoStatus(output: string, outputFormat?: GetUtxoStatusOutputFormat, outpoint?: string, useNext?: boolean, logger?: WalletLoggerInterface): Promise<GetUtxoStatusResult>
|
|
11555
|
+
async getScriptHashHistory(hash: string, useNext?: boolean, logger?: WalletLoggerInterface): Promise<GetScriptHashHistoryResult>
|
|
12007
11556
|
postBeefMode: "PromiseAll" | "UntilSuccess" = "UntilSuccess";
|
|
12008
|
-
async postBeef(beef: Beef, txids: string[]): Promise<PostBeefResult[]>
|
|
11557
|
+
async postBeef(beef: Beef, txids: string[], logger?: WalletLoggerInterface): Promise<PostBeefResult[]>
|
|
12009
11558
|
async getRawTx(txid: string, useNext?: boolean): Promise<GetRawTxResult>
|
|
12010
11559
|
async invokeChaintracksWithRetry<R>(method: () => Promise<R>): Promise<R>
|
|
12011
11560
|
async getHeaderForHeight(height: number): Promise<number[]>
|
|
12012
11561
|
async getHeight(): Promise<number>
|
|
12013
11562
|
async hashToHeader(hash: string): Promise<BlockHeader>
|
|
12014
|
-
async getMerklePath(txid: string, useNext?: boolean): Promise<GetMerklePathResult>
|
|
11563
|
+
async getMerklePath(txid: string, useNext?: boolean, logger?: WalletLoggerInterface): Promise<GetMerklePathResult>
|
|
12015
11564
|
targetCurrencies = ["USD", "GBP", "EUR"];
|
|
12016
11565
|
async updateFiatExchangeRates(rates?: FiatExchangeRates, updateMsecs?: number): Promise<FiatExchangeRates>
|
|
12017
11566
|
async nLockTimeIsFinal(tx: string | number[] | BsvTransaction | number): Promise<boolean>
|
|
@@ -12019,7 +11568,7 @@ export class Services implements WalletServices {
|
|
|
12019
11568
|
}
|
|
12020
11569
|
```
|
|
12021
11570
|
|
|
12022
|
-
See also: [ARC](./services.md#class-arc), [Bitails](./services.md#class-bitails), [BlockHeader](./client.md#interface-blockheader), [Chain](./client.md#type-chain), [FiatExchangeRates](./client.md#interface-fiatexchangerates), [GetMerklePathResult](./client.md#interface-getmerklepathresult), [GetMerklePathService](./client.md#type-getmerklepathservice), [GetRawTxResult](./client.md#interface-getrawtxresult), [GetRawTxService](./client.md#type-getrawtxservice), [GetScriptHashHistoryResult](./client.md#interface-getscripthashhistoryresult), [GetScriptHashHistoryService](./client.md#type-getscripthashhistoryservice), [GetStatusForTxidsResult](./client.md#interface-getstatusfortxidsresult), [GetStatusForTxidsService](./client.md#type-getstatusfortxidsservice), [GetUtxoStatusOutputFormat](./client.md#type-getutxostatusoutputformat), [GetUtxoStatusResult](./client.md#interface-getutxostatusresult), [GetUtxoStatusService](./client.md#type-getutxostatusservice), [PostBeefResult](./client.md#interface-postbeefresult), [PostBeefService](./client.md#type-postbeefservice), [ServiceCollection](./services.md#class-servicecollection), [ServicesCallHistory](./client.md#type-servicescallhistory), [TableOutput](./storage.md#interface-tableoutput), [UpdateFiatExchangeRateService](./client.md#type-updatefiatexchangerateservice), [WalletServices](./client.md#interface-walletservices), [WalletServicesOptions](./client.md#interface-walletservicesoptions), [WhatsOnChain](./services.md#class-whatsonchain), [getBeefForTxid](./services.md#function-getbeeffortxid)
|
|
11571
|
+
See also: [ARC](./services.md#class-arc), [Bitails](./services.md#class-bitails), [BlockHeader](./client.md#interface-blockheader), [Chain](./client.md#type-chain), [FiatExchangeRates](./client.md#interface-fiatexchangerates), [GetMerklePathResult](./client.md#interface-getmerklepathresult), [GetMerklePathService](./client.md#type-getmerklepathservice), [GetRawTxResult](./client.md#interface-getrawtxresult), [GetRawTxService](./client.md#type-getrawtxservice), [GetScriptHashHistoryResult](./client.md#interface-getscripthashhistoryresult), [GetScriptHashHistoryService](./client.md#type-getscripthashhistoryservice), [GetStatusForTxidsResult](./client.md#interface-getstatusfortxidsresult), [GetStatusForTxidsService](./client.md#type-getstatusfortxidsservice), [GetUtxoStatusOutputFormat](./client.md#type-getutxostatusoutputformat), [GetUtxoStatusResult](./client.md#interface-getutxostatusresult), [GetUtxoStatusService](./client.md#type-getutxostatusservice), [PostBeefResult](./client.md#interface-postbeefresult), [PostBeefService](./client.md#type-postbeefservice), [ServiceCollection](./services.md#class-servicecollection), [ServicesCallHistory](./client.md#type-servicescallhistory), [TableOutput](./storage.md#interface-tableoutput), [UpdateFiatExchangeRateService](./client.md#type-updatefiatexchangerateservice), [WalletServices](./client.md#interface-walletservices), [WalletServicesOptions](./client.md#interface-walletservicesoptions), [WhatsOnChain](./services.md#class-whatsonchain), [getBeefForTxid](./services.md#function-getbeeffortxid), [logger](./client.md#variable-logger)
|
|
12023
11572
|
|
|
12024
11573
|
###### Method hashOutputScript
|
|
12025
11574
|
|
|
@@ -12571,7 +12120,7 @@ export class StorageClient implements WalletStorageProvider {
|
|
|
12571
12120
|
getServices(): WalletServices
|
|
12572
12121
|
setServices(v: WalletServices): void
|
|
12573
12122
|
async internalizeAction(auth: AuthId, args: InternalizeActionArgs): Promise<StorageInternalizeActionResult>
|
|
12574
|
-
async createAction(auth: AuthId, args: ValidCreateActionArgs): Promise<StorageCreateActionResult>
|
|
12123
|
+
async createAction(auth: AuthId, args: Validation.ValidCreateActionArgs): Promise<StorageCreateActionResult>
|
|
12575
12124
|
async processAction(auth: AuthId, args: StorageProcessActionArgs): Promise<StorageProcessActionResults>
|
|
12576
12125
|
async abortAction(auth: AuthId, args: AbortActionArgs): Promise<AbortActionResult>
|
|
12577
12126
|
async findOrInsertUser(identityKey): Promise<{
|
|
@@ -12583,9 +12132,9 @@ export class StorageClient implements WalletStorageProvider {
|
|
|
12583
12132
|
isNew: boolean;
|
|
12584
12133
|
}>
|
|
12585
12134
|
async insertCertificateAuth(auth: AuthId, certificate: TableCertificateX): Promise<number>
|
|
12586
|
-
async listActions(auth: AuthId, vargs: ValidListActionsArgs): Promise<ListActionsResult>
|
|
12587
|
-
async listOutputs(auth: AuthId, vargs: ValidListOutputsArgs): Promise<ListOutputsResult>
|
|
12588
|
-
async listCertificates(auth: AuthId, vargs: ValidListCertificatesArgs): Promise<ListCertificatesResult>
|
|
12135
|
+
async listActions(auth: AuthId, vargs: Validation.ValidListActionsArgs): Promise<ListActionsResult>
|
|
12136
|
+
async listOutputs(auth: AuthId, vargs: Validation.ValidListOutputsArgs): Promise<ListOutputsResult>
|
|
12137
|
+
async listCertificates(auth: AuthId, vargs: Validation.ValidListCertificatesArgs): Promise<ListCertificatesResult>
|
|
12589
12138
|
async findCertificatesAuth(auth: AuthId, args: FindCertificatesArgs): Promise<TableCertificateX[]>
|
|
12590
12139
|
async findOutputBasketsAuth(auth: AuthId, args: FindOutputBasketsArgs): Promise<TableOutputBasket[]>
|
|
12591
12140
|
async findOutputsAuth(auth: AuthId, args: FindOutputsArgs): Promise<TableOutput[]>
|
|
@@ -12602,7 +12151,7 @@ export class StorageClient implements WalletStorageProvider {
|
|
|
12602
12151
|
}
|
|
12603
12152
|
```
|
|
12604
12153
|
|
|
12605
|
-
See also: [AuthId](./client.md#interface-authid), [EntityTimeStamp](./client.md#interface-entitytimestamp), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [ProcessSyncChunkResult](./client.md#interface-processsyncchunkresult), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageInternalizeActionResult](./client.md#interface-storageinternalizeactionresult), [StorageProcessActionArgs](./client.md#interface-storageprocessactionargs), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [SyncChunk](./client.md#interface-syncchunk), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableSyncState](./storage.md#interface-tablesyncstate), [TableUser](./storage.md#interface-tableuser), [UpdateProvenTxReqWithNewProvenTxArgs](./client.md#interface-updateproventxreqwithnewproventxargs), [UpdateProvenTxReqWithNewProvenTxResult](./client.md#interface-updateproventxreqwithnewproventxresult), [
|
|
12154
|
+
See also: [AuthId](./client.md#interface-authid), [EntityTimeStamp](./client.md#interface-entitytimestamp), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [ProcessSyncChunkResult](./client.md#interface-processsyncchunkresult), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageInternalizeActionResult](./client.md#interface-storageinternalizeactionresult), [StorageProcessActionArgs](./client.md#interface-storageprocessactionargs), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [SyncChunk](./client.md#interface-syncchunk), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableSyncState](./storage.md#interface-tablesyncstate), [TableUser](./storage.md#interface-tableuser), [UpdateProvenTxReqWithNewProvenTxArgs](./client.md#interface-updateproventxreqwithnewproventxargs), [UpdateProvenTxReqWithNewProvenTxResult](./client.md#interface-updateproventxreqwithnewproventxresult), [WalletServices](./client.md#interface-walletservices), [WalletStorageProvider](./client.md#interface-walletstorageprovider), [createAction](./storage.md#function-createaction), [getSyncChunk](./storage.md#function-getsyncchunk), [internalizeAction](./storage.md#function-internalizeaction), [listActions](./storage.md#function-listactions), [listCertificates](./storage.md#function-listcertificates), [listOutputs](./storage.md#function-listoutputs), [processAction](./storage.md#function-processaction)
|
|
12606
12155
|
|
|
12607
12156
|
###### Method abortAction
|
|
12608
12157
|
|
|
@@ -12630,9 +12179,9 @@ This must match the `AuthFetch` identity securing the remote conneciton.
|
|
|
12630
12179
|
Storage level processing for wallet `createAction`.
|
|
12631
12180
|
|
|
12632
12181
|
```ts
|
|
12633
|
-
async createAction(auth: AuthId, args: ValidCreateActionArgs): Promise<StorageCreateActionResult>
|
|
12182
|
+
async createAction(auth: AuthId, args: Validation.ValidCreateActionArgs): Promise<StorageCreateActionResult>
|
|
12634
12183
|
```
|
|
12635
|
-
See also: [AuthId](./client.md#interface-authid), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult)
|
|
12184
|
+
See also: [AuthId](./client.md#interface-authid), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult)
|
|
12636
12185
|
|
|
12637
12186
|
Returns
|
|
12638
12187
|
|
|
@@ -12916,9 +12465,9 @@ false
|
|
|
12916
12465
|
Storage level processing for wallet `listActions`.
|
|
12917
12466
|
|
|
12918
12467
|
```ts
|
|
12919
|
-
async listActions(auth: AuthId, vargs: ValidListActionsArgs): Promise<ListActionsResult>
|
|
12468
|
+
async listActions(auth: AuthId, vargs: Validation.ValidListActionsArgs): Promise<ListActionsResult>
|
|
12920
12469
|
```
|
|
12921
|
-
See also: [AuthId](./client.md#interface-authid)
|
|
12470
|
+
See also: [AuthId](./client.md#interface-authid)
|
|
12922
12471
|
|
|
12923
12472
|
Returns
|
|
12924
12473
|
|
|
@@ -12937,9 +12486,9 @@ This must match the `AuthFetch` identity securing the remote conneciton.
|
|
|
12937
12486
|
Storage level processing for wallet `listCertificates`.
|
|
12938
12487
|
|
|
12939
12488
|
```ts
|
|
12940
|
-
async listCertificates(auth: AuthId, vargs: ValidListCertificatesArgs): Promise<ListCertificatesResult>
|
|
12489
|
+
async listCertificates(auth: AuthId, vargs: Validation.ValidListCertificatesArgs): Promise<ListCertificatesResult>
|
|
12941
12490
|
```
|
|
12942
|
-
See also: [AuthId](./client.md#interface-authid)
|
|
12491
|
+
See also: [AuthId](./client.md#interface-authid)
|
|
12943
12492
|
|
|
12944
12493
|
Returns
|
|
12945
12494
|
|
|
@@ -12958,9 +12507,9 @@ This must match the `AuthFetch` identity securing the remote conneciton.
|
|
|
12958
12507
|
Storage level processing for wallet `listOutputs`.
|
|
12959
12508
|
|
|
12960
12509
|
```ts
|
|
12961
|
-
async listOutputs(auth: AuthId, vargs: ValidListOutputsArgs): Promise<ListOutputsResult>
|
|
12510
|
+
async listOutputs(auth: AuthId, vargs: Validation.ValidListOutputsArgs): Promise<ListOutputsResult>
|
|
12962
12511
|
```
|
|
12963
|
-
See also: [AuthId](./client.md#interface-authid)
|
|
12512
|
+
See also: [AuthId](./client.md#interface-authid)
|
|
12964
12513
|
|
|
12965
12514
|
Returns
|
|
12966
12515
|
|
|
@@ -13196,8 +12745,8 @@ export class StorageIdb extends StorageProvider implements WalletStorageProvider
|
|
|
13196
12745
|
async getRawTxOfKnownValidTransaction(txid?: string, offset?: number, length?: number, trx?: TrxToken): Promise<number[] | undefined>
|
|
13197
12746
|
async getLabelsForTransactionId(transactionId?: number, trx?: TrxToken): Promise<TableTxLabel[]>
|
|
13198
12747
|
async getTagsForOutputId(outputId: number, trx?: TrxToken): Promise<TableOutputTag[]>
|
|
13199
|
-
async listActions(auth: AuthId, vargs: ValidListActionsArgs): Promise<ListActionsResult>
|
|
13200
|
-
async listOutputs(auth: AuthId, vargs: ValidListOutputsArgs): Promise<ListOutputsResult>
|
|
12748
|
+
async listActions(auth: AuthId, vargs: Validation.ValidListActionsArgs): Promise<ListActionsResult>
|
|
12749
|
+
async listOutputs(auth: AuthId, vargs: Validation.ValidListOutputsArgs): Promise<ListOutputsResult>
|
|
13201
12750
|
async countChangeInputs(userId: number, basketId: number, excludeSending: boolean): Promise<number>
|
|
13202
12751
|
async findCertificatesAuth(auth: AuthId, args: FindCertificatesArgs): Promise<TableCertificateX[]>
|
|
13203
12752
|
async findOutputBasketsAuth(auth: AuthId, args: FindOutputBasketsArgs): Promise<TableOutputBasket[]>
|
|
@@ -13314,7 +12863,7 @@ export class StorageIdb extends StorageProvider implements WalletStorageProvider
|
|
|
13314
12863
|
}
|
|
13315
12864
|
```
|
|
13316
12865
|
|
|
13317
|
-
See also: [AuthId](./client.md#interface-authid), [DBType](./storage.md#type-dbtype), [EntityTimeStamp](./client.md#interface-entitytimestamp), [FindCertificateFieldsArgs](./client.md#interface-findcertificatefieldsargs), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindCommissionsArgs](./client.md#interface-findcommissionsargs), [FindForUserSincePagedArgs](./client.md#interface-findforusersincepagedargs), [FindMonitorEventsArgs](./client.md#interface-findmonitoreventsargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputTagMapsArgs](./client.md#interface-findoutputtagmapsargs), [FindOutputTagsArgs](./client.md#interface-findoutputtagsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [FindProvenTxsArgs](./client.md#interface-findproventxsargs), [FindSyncStatesArgs](./client.md#interface-findsyncstatesargs), [FindTransactionsArgs](./client.md#interface-findtransactionsargs), [FindTxLabelMapsArgs](./client.md#interface-findtxlabelmapsargs), [FindTxLabelsArgs](./client.md#interface-findtxlabelsargs), [FindUsersArgs](./client.md#interface-findusersargs), [ProvenOrRawTx](./client.md#interface-provenorrawtx), [PurgeParams](./client.md#interface-purgeparams), [PurgeResults](./client.md#interface-purgeresults), [StorageAdminStats](./storage.md#interface-storageadminstats), [StorageIdbOptions](./storage.md#interface-storageidboptions), [StorageIdbSchema](./storage.md#interface-storageidbschema), [StorageProvider](./storage.md#class-storageprovider), [TableCertificate](./storage.md#interface-tablecertificate), [TableCertificateField](./storage.md#interface-tablecertificatefield), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableCommission](./storage.md#interface-tablecommission), [TableMonitorEvent](./storage.md#interface-tablemonitorevent), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableOutputTag](./storage.md#interface-tableoutputtag), [TableOutputTagMap](./storage.md#interface-tableoutputtagmap), [TableProvenTx](./storage.md#interface-tableproventx), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableSyncState](./storage.md#interface-tablesyncstate), [TableTransaction](./storage.md#interface-tabletransaction), [TableTxLabel](./storage.md#interface-tabletxlabel), [TableTxLabelMap](./storage.md#interface-tabletxlabelmap), [TableUser](./storage.md#interface-tableuser), [TrxToken](./client.md#interface-trxtoken), [
|
|
12866
|
+
See also: [AuthId](./client.md#interface-authid), [DBType](./storage.md#type-dbtype), [EntityTimeStamp](./client.md#interface-entitytimestamp), [FindCertificateFieldsArgs](./client.md#interface-findcertificatefieldsargs), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindCommissionsArgs](./client.md#interface-findcommissionsargs), [FindForUserSincePagedArgs](./client.md#interface-findforusersincepagedargs), [FindMonitorEventsArgs](./client.md#interface-findmonitoreventsargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputTagMapsArgs](./client.md#interface-findoutputtagmapsargs), [FindOutputTagsArgs](./client.md#interface-findoutputtagsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [FindProvenTxsArgs](./client.md#interface-findproventxsargs), [FindSyncStatesArgs](./client.md#interface-findsyncstatesargs), [FindTransactionsArgs](./client.md#interface-findtransactionsargs), [FindTxLabelMapsArgs](./client.md#interface-findtxlabelmapsargs), [FindTxLabelsArgs](./client.md#interface-findtxlabelsargs), [FindUsersArgs](./client.md#interface-findusersargs), [ProvenOrRawTx](./client.md#interface-provenorrawtx), [PurgeParams](./client.md#interface-purgeparams), [PurgeResults](./client.md#interface-purgeresults), [StorageAdminStats](./storage.md#interface-storageadminstats), [StorageIdbOptions](./storage.md#interface-storageidboptions), [StorageIdbSchema](./storage.md#interface-storageidbschema), [StorageProvider](./storage.md#class-storageprovider), [TableCertificate](./storage.md#interface-tablecertificate), [TableCertificateField](./storage.md#interface-tablecertificatefield), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableCommission](./storage.md#interface-tablecommission), [TableMonitorEvent](./storage.md#interface-tablemonitorevent), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableOutputTag](./storage.md#interface-tableoutputtag), [TableOutputTagMap](./storage.md#interface-tableoutputtagmap), [TableProvenTx](./storage.md#interface-tableproventx), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableSyncState](./storage.md#interface-tablesyncstate), [TableTransaction](./storage.md#interface-tabletransaction), [TableTxLabel](./storage.md#interface-tabletxlabel), [TableTxLabelMap](./storage.md#interface-tabletxlabelmap), [TableUser](./storage.md#interface-tableuser), [TrxToken](./client.md#interface-trxtoken), [WalletStorageProvider](./client.md#interface-walletstorageprovider), [listActions](./storage.md#function-listactions), [listOutputs](./storage.md#function-listoutputs), [purgeData](./storage.md#function-purgedata), [reviewStatus](./storage.md#function-reviewstatus)
|
|
13318
12867
|
|
|
13319
12868
|
###### Method allocateChangeInput
|
|
13320
12869
|
|
|
@@ -13456,8 +13005,8 @@ export abstract class StorageProvider extends StorageReaderWriter implements Wal
|
|
|
13456
13005
|
abstract getRawTxOfKnownValidTransaction(txid?: string, offset?: number, length?: number, trx?: TrxToken): Promise<number[] | undefined>;
|
|
13457
13006
|
abstract getLabelsForTransactionId(transactionId?: number, trx?: TrxToken): Promise<TableTxLabel[]>;
|
|
13458
13007
|
abstract getTagsForOutputId(outputId: number, trx?: TrxToken): Promise<TableOutputTag[]>;
|
|
13459
|
-
abstract listActions(auth: AuthId, args: ValidListActionsArgs): Promise<ListActionsResult>;
|
|
13460
|
-
abstract listOutputs(auth: AuthId, args: ValidListOutputsArgs): Promise<ListOutputsResult>;
|
|
13008
|
+
abstract listActions(auth: AuthId, args: Validation.ValidListActionsArgs): Promise<ListActionsResult>;
|
|
13009
|
+
abstract listOutputs(auth: AuthId, args: Validation.ValidListOutputsArgs): Promise<ListOutputsResult>;
|
|
13461
13010
|
abstract countChangeInputs(userId: number, basketId: number, excludeSending: boolean): Promise<number>;
|
|
13462
13011
|
abstract findCertificatesAuth(auth: AuthId, args: FindCertificatesArgs): Promise<TableCertificateX[]>;
|
|
13463
13012
|
abstract findOutputBasketsAuth(auth: AuthId, args: FindOutputBasketsArgs): Promise<TableOutputBasket[]>;
|
|
@@ -13474,10 +13023,10 @@ export abstract class StorageProvider extends StorageReaderWriter implements Wal
|
|
|
13474
13023
|
async getProvenOrReq(txid: string, newReq?: TableProvenTxReq, trx?: TrxToken): Promise<StorageProvenOrReq>
|
|
13475
13024
|
async updateTransactionsStatus(transactionIds: number[], status: TransactionStatus, trx?: TrxToken): Promise<void>
|
|
13476
13025
|
async updateTransactionStatus(status: TransactionStatus, transactionId?: number, userId?: number, reference?: string, trx?: TrxToken): Promise<void>
|
|
13477
|
-
async createAction(auth: AuthId, args: ValidCreateActionArgs): Promise<StorageCreateActionResult>
|
|
13026
|
+
async createAction(auth: AuthId, args: Validation.ValidCreateActionArgs): Promise<StorageCreateActionResult>
|
|
13478
13027
|
async processAction(auth: AuthId, args: StorageProcessActionArgs): Promise<StorageProcessActionResults>
|
|
13479
|
-
async attemptToPostReqsToNetwork(reqs: EntityProvenTxReq[], trx?: TrxToken): Promise<PostReqsToNetworkResult>
|
|
13480
|
-
async listCertificates(auth: AuthId, args: ValidListCertificatesArgs): Promise<ListCertificatesResult>
|
|
13028
|
+
async attemptToPostReqsToNetwork(reqs: EntityProvenTxReq[], trx?: TrxToken, logger?: WalletLoggerInterface): Promise<PostReqsToNetworkResult>
|
|
13029
|
+
async listCertificates(auth: AuthId, args: Validation.ValidListCertificatesArgs): Promise<ListCertificatesResult>
|
|
13481
13030
|
async verifyKnownValidTransaction(txid: string, trx?: TrxToken): Promise<boolean>
|
|
13482
13031
|
async getValidBeefForKnownTxid(txid: string, mergeToBeef?: Beef, trustSelf?: TrustSelf, knownTxids?: string[], trx?: TrxToken, requiredLevels?: number): Promise<Beef>
|
|
13483
13032
|
async getValidBeefForTxid(txid: string, mergeToBeef?: Beef, trustSelf?: TrustSelf, knownTxids?: string[], trx?: TrxToken, requiredLevels?: number): Promise<Beef | undefined>
|
|
@@ -13496,7 +13045,7 @@ export abstract class StorageProvider extends StorageReaderWriter implements Wal
|
|
|
13496
13045
|
}
|
|
13497
13046
|
```
|
|
13498
13047
|
|
|
13499
|
-
See also: [AdminStatsResult](./storage.md#interface-adminstatsresult), [AuthId](./client.md#interface-authid), [Chain](./client.md#type-chain), [EntityProvenTxReq](./storage.md#class-entityproventxreq), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [GetReqsAndBeefResult](./storage.md#interface-getreqsandbeefresult), [PostReqsToNetworkResult](./storage.md#interface-postreqstonetworkresult), [ProcessSyncChunkResult](./client.md#interface-processsyncchunkresult), [ProvenOrRawTx](./client.md#interface-provenorrawtx), [PurgeParams](./client.md#interface-purgeparams), [PurgeResults](./client.md#interface-purgeresults), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageFeeModel](./client.md#interface-storagefeemodel), [StorageGetBeefOptions](./client.md#interface-storagegetbeefoptions), [StorageInternalizeActionResult](./client.md#interface-storageinternalizeactionresult), [StorageProcessActionArgs](./client.md#interface-storageprocessactionargs), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [StorageProvenOrReq](./client.md#interface-storageprovenorreq), [StorageProviderOptions](./storage.md#interface-storageprovideroptions), [StorageReaderWriter](./storage.md#class-storagereaderwriter), [SyncChunk](./client.md#interface-syncchunk), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableMonitorEvent](./storage.md#interface-tablemonitorevent), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableOutputTag](./storage.md#interface-tableoutputtag), [TableOutputX](./storage.md#interface-tableoutputx), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableProvenTxReqDynamics](./storage.md#interface-tableproventxreqdynamics), [TableTxLabel](./storage.md#interface-tabletxlabel), [TransactionStatus](./client.md#type-transactionstatus), [TrxToken](./client.md#interface-trxtoken), [UpdateProvenTxReqWithNewProvenTxArgs](./client.md#interface-updateproventxreqwithnewproventxargs), [UpdateProvenTxReqWithNewProvenTxResult](./client.md#interface-updateproventxreqwithnewproventxresult), [
|
|
13048
|
+
See also: [AdminStatsResult](./storage.md#interface-adminstatsresult), [AuthId](./client.md#interface-authid), [Chain](./client.md#type-chain), [EntityProvenTxReq](./storage.md#class-entityproventxreq), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [GetReqsAndBeefResult](./storage.md#interface-getreqsandbeefresult), [PostReqsToNetworkResult](./storage.md#interface-postreqstonetworkresult), [ProcessSyncChunkResult](./client.md#interface-processsyncchunkresult), [ProvenOrRawTx](./client.md#interface-provenorrawtx), [PurgeParams](./client.md#interface-purgeparams), [PurgeResults](./client.md#interface-purgeresults), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageFeeModel](./client.md#interface-storagefeemodel), [StorageGetBeefOptions](./client.md#interface-storagegetbeefoptions), [StorageInternalizeActionResult](./client.md#interface-storageinternalizeactionresult), [StorageProcessActionArgs](./client.md#interface-storageprocessactionargs), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [StorageProvenOrReq](./client.md#interface-storageprovenorreq), [StorageProviderOptions](./storage.md#interface-storageprovideroptions), [StorageReaderWriter](./storage.md#class-storagereaderwriter), [SyncChunk](./client.md#interface-syncchunk), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableMonitorEvent](./storage.md#interface-tablemonitorevent), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableOutputTag](./storage.md#interface-tableoutputtag), [TableOutputX](./storage.md#interface-tableoutputx), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableProvenTxReqDynamics](./storage.md#interface-tableproventxreqdynamics), [TableTxLabel](./storage.md#interface-tabletxlabel), [TransactionStatus](./client.md#type-transactionstatus), [TrxToken](./client.md#interface-trxtoken), [UpdateProvenTxReqWithNewProvenTxArgs](./client.md#interface-updateproventxreqwithnewproventxargs), [UpdateProvenTxReqWithNewProvenTxResult](./client.md#interface-updateproventxreqwithnewproventxresult), [WalletServices](./client.md#interface-walletservices), [WalletStorageProvider](./client.md#interface-walletstorageprovider), [attemptToPostReqsToNetwork](./storage.md#function-attempttopostreqstonetwork), [createAction](./storage.md#function-createaction), [getBeefForTransaction](./storage.md#function-getbeeffortransaction), [internalizeAction](./storage.md#function-internalizeaction), [listActions](./storage.md#function-listactions), [listCertificates](./storage.md#function-listcertificates), [listOutputs](./storage.md#function-listoutputs), [logger](./client.md#variable-logger), [processAction](./storage.md#function-processaction), [purgeData](./storage.md#function-purgedata), [reviewStatus](./storage.md#function-reviewstatus)
|
|
13500
13049
|
|
|
13501
13050
|
###### Method confirmSpendableOutputs
|
|
13502
13051
|
|
|
@@ -14679,9 +14228,10 @@ export class Wallet implements WalletInterface, ProtoWallet {
|
|
|
14679
14228
|
userParty: string;
|
|
14680
14229
|
proto: ProtoWallet;
|
|
14681
14230
|
privilegedKeyManager?: PrivilegedKeyManager;
|
|
14231
|
+
makeLogger?: MakeWalletLogger;
|
|
14682
14232
|
pendingSignActions: Record<string, PendingSignAction>;
|
|
14683
14233
|
randomVals?: number[] = undefined;
|
|
14684
|
-
constructor(argsOrSigner: WalletArgs | WalletSigner, services?: WalletServices, monitor?: Monitor, privilegedKeyManager?: PrivilegedKeyManager)
|
|
14234
|
+
constructor(argsOrSigner: WalletArgs | WalletSigner, services?: WalletServices, monitor?: Monitor, privilegedKeyManager?: PrivilegedKeyManager, makeLogger?: MakeWalletLogger)
|
|
14685
14235
|
async destroy(): Promise<void>
|
|
14686
14236
|
getClientChangeKeyPair(): KeyPair
|
|
14687
14237
|
async getIdentityKey(): Promise<PubKeyHex>
|
|
@@ -14709,6 +14259,10 @@ export class Wallet implements WalletInterface, ProtoWallet {
|
|
|
14709
14259
|
verifyReturnedTxidOnly(beef: Beef, knownTxids?: string[]): Beef
|
|
14710
14260
|
verifyReturnedTxidOnlyAtomicBEEF(beef: AtomicBEEF, knownTxids?: string[]): AtomicBEEF
|
|
14711
14261
|
verifyReturnedTxidOnlyBEEF(beef: BEEF): BEEF
|
|
14262
|
+
logMakeLogger(method: string, args: any): WalletLoggerInterface | undefined
|
|
14263
|
+
logMethodStart(method: string, logger?: WalletLoggerInterface): void
|
|
14264
|
+
logResult(r: any, logger?: WalletLoggerInterface): void
|
|
14265
|
+
logWalletError(eu: unknown, logger?: WalletLoggerInterface): void
|
|
14712
14266
|
async createAction(args: CreateActionArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<CreateActionResult>
|
|
14713
14267
|
async signAction(args: SignActionArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<SignActionResult>
|
|
14714
14268
|
async internalizeAction(args: InternalizeActionArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<InternalizeActionResult>
|
|
@@ -14730,7 +14284,7 @@ export class Wallet implements WalletInterface, ProtoWallet {
|
|
|
14730
14284
|
}
|
|
14731
14285
|
```
|
|
14732
14286
|
|
|
14733
|
-
See also: [Chain](./client.md#type-chain), [KeyPair](./client.md#interface-keypair), [Monitor](./monitor.md#class-monitor), [PendingSignAction](./client.md#interface-pendingsignaction), [PrivilegedKeyManager](./client.md#class-privilegedkeymanager), [StorageIdentity](./client.md#interface-storageidentity), [WalletArgs](./client.md#interface-walletargs), [WalletBalance](./client.md#interface-walletbalance), [WalletServices](./client.md#interface-walletservices), [WalletSettingsManager](./client.md#class-walletsettingsmanager), [WalletSigner](./client.md#class-walletsigner), [WalletStorageManager](./storage.md#class-walletstoragemanager), [createAction](./storage.md#function-createaction), [getIdentityKey](./client.md#function-getidentitykey), [internalizeAction](./storage.md#function-internalizeaction), [listActions](./storage.md#function-listactions), [listCertificates](./storage.md#function-listcertificates), [listOutputs](./storage.md#function-listoutputs), [proveCertificate](./client.md#function-provecertificate), [signAction](./client.md#function-signaction)
|
|
14287
|
+
See also: [Chain](./client.md#type-chain), [KeyPair](./client.md#interface-keypair), [Monitor](./monitor.md#class-monitor), [PendingSignAction](./client.md#interface-pendingsignaction), [PrivilegedKeyManager](./client.md#class-privilegedkeymanager), [StorageIdentity](./client.md#interface-storageidentity), [WalletArgs](./client.md#interface-walletargs), [WalletBalance](./client.md#interface-walletbalance), [WalletServices](./client.md#interface-walletservices), [WalletSettingsManager](./client.md#class-walletsettingsmanager), [WalletSigner](./client.md#class-walletsigner), [WalletStorageManager](./storage.md#class-walletstoragemanager), [createAction](./storage.md#function-createaction), [getIdentityKey](./client.md#function-getidentitykey), [internalizeAction](./storage.md#function-internalizeaction), [listActions](./storage.md#function-listactions), [listCertificates](./storage.md#function-listcertificates), [listOutputs](./storage.md#function-listoutputs), [logWalletError](./client.md#function-logwalleterror), [logger](./client.md#variable-logger), [proveCertificate](./client.md#function-provecertificate), [signAction](./client.md#function-signaction)
|
|
14734
14288
|
|
|
14735
14289
|
###### Property autoKnownTxids
|
|
14736
14290
|
|
|
@@ -15057,6 +14611,32 @@ stringified JSON representation of the error such that it can be desirialized to
|
|
|
15057
14611
|
|
|
15058
14612
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
15059
14613
|
|
|
14614
|
+
---
|
|
14615
|
+
##### Class: WalletLogger
|
|
14616
|
+
|
|
14617
|
+
```ts
|
|
14618
|
+
export class WalletLogger implements WalletLoggerInterface {
|
|
14619
|
+
indent: number = 0;
|
|
14620
|
+
logs: WalletLoggerLog[] = [];
|
|
14621
|
+
isOrigin: boolean = true;
|
|
14622
|
+
isError: boolean = false;
|
|
14623
|
+
level?: WalletLoggerLevel;
|
|
14624
|
+
constructor(log?: string | WalletLoggerInterface)
|
|
14625
|
+
group(...label: any[]): void
|
|
14626
|
+
groupEnd(): void
|
|
14627
|
+
log(message?: any, ...optionalParams: any[]): void
|
|
14628
|
+
error(message?: any, ...optionalParams: any[]): void
|
|
14629
|
+
toWalletLoggerJson(): object
|
|
14630
|
+
toLogString(): string
|
|
14631
|
+
flush(): object | undefined
|
|
14632
|
+
merge(log: WalletLoggerInterface): void
|
|
14633
|
+
}
|
|
14634
|
+
```
|
|
14635
|
+
|
|
14636
|
+
See also: [WalletLoggerLevel](./client.md#type-walletloggerlevel)
|
|
14637
|
+
|
|
14638
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
14639
|
+
|
|
15060
14640
|
---
|
|
15061
14641
|
##### Class: WalletMonitorTask
|
|
15062
14642
|
|
|
@@ -15773,15 +15353,15 @@ export class WalletStorageManager implements sdk.WalletStorage {
|
|
|
15773
15353
|
isNew: boolean;
|
|
15774
15354
|
}>
|
|
15775
15355
|
async abortAction(args: AbortActionArgs): Promise<AbortActionResult>
|
|
15776
|
-
async createAction(vargs:
|
|
15356
|
+
async createAction(vargs: Validation.ValidCreateActionArgs): Promise<sdk.StorageCreateActionResult>
|
|
15777
15357
|
async internalizeAction(args: InternalizeActionArgs): Promise<sdk.StorageInternalizeActionResult>
|
|
15778
15358
|
async relinquishCertificate(args: RelinquishCertificateArgs): Promise<number>
|
|
15779
15359
|
async relinquishOutput(args: RelinquishOutputArgs): Promise<number>
|
|
15780
15360
|
async processAction(args: sdk.StorageProcessActionArgs): Promise<sdk.StorageProcessActionResults>
|
|
15781
15361
|
async insertCertificate(certificate: TableCertificate): Promise<number>
|
|
15782
|
-
async listActions(vargs:
|
|
15783
|
-
async listCertificates(args:
|
|
15784
|
-
async listOutputs(vargs:
|
|
15362
|
+
async listActions(vargs: Validation.ValidListActionsArgs): Promise<ListActionsResult>
|
|
15363
|
+
async listCertificates(args: Validation.ValidListCertificatesArgs): Promise<ListCertificatesResult>
|
|
15364
|
+
async listOutputs(vargs: Validation.ValidListOutputsArgs): Promise<ListOutputsResult>
|
|
15785
15365
|
async findCertificates(args: sdk.FindCertificatesArgs): Promise<TableCertificateX[]>
|
|
15786
15366
|
async findOutputBaskets(args: sdk.FindOutputBasketsArgs): Promise<TableOutputBasket[]>
|
|
15787
15367
|
async findOutputs(args: sdk.FindOutputsArgs): Promise<TableOutput[]>
|
|
@@ -15806,7 +15386,7 @@ export class WalletStorageManager implements sdk.WalletStorage {
|
|
|
15806
15386
|
}
|
|
15807
15387
|
```
|
|
15808
15388
|
|
|
15809
|
-
See also: [AuthId](./client.md#interface-authid), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [ReproveHeaderResult](./client.md#interface-reproveheaderresult), [ReproveProvenResult](./client.md#interface-reproveprovenresult), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageInternalizeActionResult](./client.md#interface-storageinternalizeactionresult), [StorageProcessActionArgs](./client.md#interface-storageprocessactionargs), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [StorageProvider](./storage.md#class-storageprovider), [TableCertificate](./storage.md#interface-tablecertificate), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableProvenTx](./storage.md#interface-tableproventx), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableUser](./storage.md#interface-tableuser), [
|
|
15389
|
+
See also: [AuthId](./client.md#interface-authid), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [ReproveHeaderResult](./client.md#interface-reproveheaderresult), [ReproveProvenResult](./client.md#interface-reproveprovenresult), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageInternalizeActionResult](./client.md#interface-storageinternalizeactionresult), [StorageProcessActionArgs](./client.md#interface-storageprocessactionargs), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [StorageProvider](./storage.md#class-storageprovider), [TableCertificate](./storage.md#interface-tablecertificate), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableProvenTx](./storage.md#interface-tableproventx), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableUser](./storage.md#interface-tableuser), [VerifyAndRepairBeefResult](./storage.md#interface-verifyandrepairbeefresult), [WalletServices](./client.md#interface-walletservices), [WalletStorage](./client.md#interface-walletstorage), [WalletStorageInfo](./client.md#interface-walletstorageinfo), [WalletStorageProvider](./client.md#interface-walletstorageprovider), [WalletStorageReader](./client.md#interface-walletstoragereader), [WalletStorageSync](./client.md#interface-walletstoragesync), [WalletStorageSyncReader](./client.md#interface-walletstoragesyncreader), [WalletStorageWriter](./client.md#interface-walletstoragewriter), [createAction](./storage.md#function-createaction), [internalizeAction](./storage.md#function-internalizeaction), [listActions](./storage.md#function-listactions), [listCertificates](./storage.md#function-listcertificates), [listOutputs](./storage.md#function-listoutputs), [processAction](./storage.md#function-processaction)
|
|
15810
15390
|
|
|
15811
15391
|
###### Constructor
|
|
15812
15392
|
|
|
@@ -16191,62 +15771,52 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
16191
15771
|
|
|
16192
15772
|
| | | |
|
|
16193
15773
|
| --- | --- | --- |
|
|
16194
|
-
| [WalletErrorFromJson](#function-walleterrorfromjson) | [
|
|
16195
|
-
| [WocHeadersBulkListener](#function-wocheadersbulklistener) | [
|
|
16196
|
-
| [WocHeadersBulkListener_test](#function-wocheadersbulklistener_test) | [
|
|
16197
|
-
| [WocHeadersLiveListener](#function-wocheaderslivelistener) | [
|
|
16198
|
-
| [WocHeadersLiveListener_test](#function-wocheaderslivelistener_test) | [
|
|
16199
|
-
| [acquireDirectCertificate](#function-acquiredirectcertificate) | [
|
|
16200
|
-
| [addWork](#function-addwork) | [
|
|
16201
|
-
| [arcDefaultUrl](#function-arcdefaulturl) | [
|
|
16202
|
-
| [arcGorillaPoolUrl](#function-arcgorillapoolurl) | [
|
|
16203
|
-
| [arraysEqual](#function-arraysequal) | [
|
|
16204
|
-
| [asArray](#function-asarray) | [
|
|
16205
|
-
| [asBsvSdkPrivateKey](#function-asbsvsdkprivatekey) | [
|
|
16206
|
-
| [asBsvSdkPublickKey](#function-asbsvsdkpublickkey) | [
|
|
16207
|
-
| [asBsvSdkScript](#function-asbsvsdkscript) | [
|
|
16208
|
-
| [asBsvSdkTx](#function-asbsvsdktx) | [
|
|
16209
|
-
| [asString](#function-asstring) | [
|
|
16210
|
-
| [asUint8Array](#function-asuint8array) | [
|
|
16211
|
-
| [attemptToPostReqsToNetwork](#function-attempttopostreqstonetwork) | [
|
|
16212
|
-
| [blockHash](#function-blockhash) | [
|
|
16213
|
-
| [buildSignableTransaction](#function-buildsignabletransaction) | [
|
|
16214
|
-
| [completeSignedTransaction](#function-completesignedtransaction) | [
|
|
16215
|
-
| [convertBitsToTarget](#function-convertbitstotarget) | [
|
|
16216
|
-
| [convertBitsToWork](#function-convertbitstowork) | [
|
|
16217
|
-
| [convertBufferToUint32](#function-convertbuffertouint32) | [
|
|
16218
|
-
| [convertProofToMerklePath](#function-convertprooftomerklepath) | [
|
|
16219
|
-
| [convertUint32ToBuffer](#function-convertuint32tobuffer) | [
|
|
16220
|
-
| [convertWocToBlockHeaderHex](#function-convertwoctoblockheaderhex) | [
|
|
16221
|
-
| [createAction](#function-createaction) | [
|
|
16222
|
-
| [createAction](#function-createaction) | [
|
|
16223
|
-
| [createDefaultIdbChaintracksOptions](#function-createdefaultidbchaintracksoptions) | [
|
|
16224
|
-
| [createDefaultNoDbChaintracksOptions](#function-createdefaultnodbchaintracksoptions) | [
|
|
16225
|
-
| [createDefaultWalletServicesOptions](#function-createdefaultwalletservicesoptions) | [
|
|
16226
|
-
| [createIdbChaintracks](#function-createidbchaintracks) | [
|
|
16227
|
-
| [createNoDbChaintracks](#function-createnodbchaintracks) | [
|
|
16228
|
-
| [createStorageServiceChargeScript](#function-createstorageservicechargescript) | [
|
|
16229
|
-
| [createSyncMap](#function-createsyncmap) | [
|
|
16230
|
-
| [deserializeBaseBlockHeader](#function-deserializebaseblockheader) | [
|
|
16231
|
-
| [deserializeBaseBlockHeaders](#function-deserializebaseblockheaders) | [
|
|
16232
|
-
| [deserializeBlockHeader](#function-deserializeblockheader) | [
|
|
16233
|
-
| [deserializeBlockHeaders](#function-deserializeblockheaders) | [
|
|
16234
|
-
| [doubleSha256BE](#function-doublesha256be) | [
|
|
16235
|
-
| [doubleSha256LE](#function-doublesha256le) | [
|
|
16236
|
-
| [generateChangeSdk](#function-generatechangesdk) | [
|
|
16237
|
-
| [generateChangeSdkMakeStorage](#function-generatechangesdkmakestorage) | [
|
|
16238
|
-
| [genesisBuffer](#function-genesisbuffer) | [
|
|
16239
|
-
| [genesisHeader](#function-genesisheader) | [
|
|
16240
|
-
| [getBeefForTransaction](#function-getbeeffortransaction) | [toBinaryBaseBlockHeader](#function-tobinarybaseblockheader) | [verifyOneOrNone](#function-verifyoneornone) |
|
|
16241
|
-
| [getBeefForTxid](#function-getbeeffortxid) | [toWalletNetwork](#function-towalletnetwork) | [verifyOptionalHexString](#function-verifyoptionalhexstring) |
|
|
16242
|
-
| [getExchangeRatesIo](#function-getexchangeratesio) | [transactionInputSize](#function-transactioninputsize) | [verifyTruthy](#function-verifytruthy) |
|
|
16243
|
-
| [getIdentityKey](#function-getidentitykey) | [transactionOutputSize](#function-transactionoutputsize) | [verifyUnlockScripts](#function-verifyunlockscripts) |
|
|
16244
|
-
| [getProofs](#function-getproofs) | [transactionSize](#function-transactionsize) | [wait](#function-wait) |
|
|
16245
|
-
| [getSyncChunk](#function-getsyncchunk) | [updateChaintracksFiatExchangeRates](#function-updatechaintracksfiatexchangerates) | [wocGetHeadersHeaderToBlockHeader](#function-wocgetheadersheadertoblockheader) |
|
|
16246
|
-
| [getWhatsOnChainBlockHeaderByHash](#function-getwhatsonchainblockheaderbyhash) | [updateExchangeratesapi](#function-updateexchangeratesapi) | [workBNtoBuffer](#function-workbntobuffer) |
|
|
16247
|
-
| [internalizeAction](#function-internalizeaction) | [validBulkHeaderFilesByFileHash](#function-validbulkheaderfilesbyfilehash) | [writeUInt32BE](#function-writeuint32be) |
|
|
16248
|
-
| [internalizeAction](#function-internalizeaction) | [validateAbortActionArgs](#function-validateabortactionargs) | [writeUInt32LE](#function-writeuint32le) |
|
|
16249
|
-
| [isBaseBlockHeader](#function-isbaseblockheader) | [validateAcquireCertificateArgs](#function-validateacquirecertificateargs) | |
|
|
15774
|
+
| [WalletErrorFromJson](#function-walleterrorfromjson) | [getBeefForTransaction](#function-getbeeffortransaction) | [setDisableDoubleSpendCheckForTest](#function-setdisabledoublespendcheckfortest) |
|
|
15775
|
+
| [WocHeadersBulkListener](#function-wocheadersbulklistener) | [getBeefForTxid](#function-getbeeffortxid) | [sha256Hash](#function-sha256hash) |
|
|
15776
|
+
| [WocHeadersBulkListener_test](#function-wocheadersbulklistener_test) | [getExchangeRatesIo](#function-getexchangeratesio) | [sha256HashOfBinaryFile](#function-sha256hashofbinaryfile) |
|
|
15777
|
+
| [WocHeadersLiveListener](#function-wocheaderslivelistener) | [getIdentityKey](#function-getidentitykey) | [shareReqsWithWorld](#function-sharereqswithworld) |
|
|
15778
|
+
| [WocHeadersLiveListener_test](#function-wocheaderslivelistener_test) | [getProofs](#function-getproofs) | [signAction](#function-signaction) |
|
|
15779
|
+
| [acquireDirectCertificate](#function-acquiredirectcertificate) | [getSyncChunk](#function-getsyncchunk) | [stampLog](#function-stamplog) |
|
|
15780
|
+
| [addWork](#function-addwork) | [getWhatsOnChainBlockHeaderByHash](#function-getwhatsonchainblockheaderbyhash) | [stampLogFormat](#function-stamplogformat) |
|
|
15781
|
+
| [arcDefaultUrl](#function-arcdefaulturl) | [internalizeAction](#function-internalizeaction) | [subWork](#function-subwork) |
|
|
15782
|
+
| [arcGorillaPoolUrl](#function-arcgorillapoolurl) | [internalizeAction](#function-internalizeaction) | [swapByteOrder](#function-swapbyteorder) |
|
|
15783
|
+
| [arraysEqual](#function-arraysequal) | [isBaseBlockHeader](#function-isbaseblockheader) | [throwDummyReviewActions](#function-throwdummyreviewactions) |
|
|
15784
|
+
| [asArray](#function-asarray) | [isBlockHeader](#function-isblockheader) | [toBinaryBaseBlockHeader](#function-tobinarybaseblockheader) |
|
|
15785
|
+
| [asBsvSdkPrivateKey](#function-asbsvsdkprivatekey) | [isCreateActionSpecOp](#function-iscreateactionspecop) | [toWalletNetwork](#function-towalletnetwork) |
|
|
15786
|
+
| [asBsvSdkPublickKey](#function-asbsvsdkpublickkey) | [isKnownValidBulkHeaderFile](#function-isknownvalidbulkheaderfile) | [transactionInputSize](#function-transactioninputsize) |
|
|
15787
|
+
| [asBsvSdkScript](#function-asbsvsdkscript) | [isListActionsSpecOp](#function-islistactionsspecop) | [transactionOutputSize](#function-transactionoutputsize) |
|
|
15788
|
+
| [asBsvSdkTx](#function-asbsvsdktx) | [isListOutputsSpecOp](#function-islistoutputsspecop) | [transactionSize](#function-transactionsize) |
|
|
15789
|
+
| [asString](#function-asstring) | [isLive](#function-islive) | [updateChaintracksFiatExchangeRates](#function-updatechaintracksfiatexchangerates) |
|
|
15790
|
+
| [asUint8Array](#function-asuint8array) | [isLiveBlockHeader](#function-isliveblockheader) | [updateExchangeratesapi](#function-updateexchangeratesapi) |
|
|
15791
|
+
| [attemptToPostReqsToNetwork](#function-attempttopostreqstonetwork) | [isMoreWork](#function-ismorework) | [validBulkHeaderFilesByFileHash](#function-validbulkheaderfilesbyfilehash) |
|
|
15792
|
+
| [blockHash](#function-blockhash) | [keyOffsetToHashedSecret](#function-keyoffsettohashedsecret) | [validateAgainstDirtyHashes](#function-validateagainstdirtyhashes) |
|
|
15793
|
+
| [buildSignableTransaction](#function-buildsignabletransaction) | [listActionsIdb](#function-listactionsidb) | [validateBufferOfHeaders](#function-validatebufferofheaders) |
|
|
15794
|
+
| [completeSignedTransaction](#function-completesignedtransaction) | [listCertificates](#function-listcertificates) | [validateBulkFileData](#function-validatebulkfiledata) |
|
|
15795
|
+
| [convertBitsToTarget](#function-convertbitstotarget) | [listOutputsIdb](#function-listoutputsidb) | [validateGenerateChangeSdkParams](#function-validategeneratechangesdkparams) |
|
|
15796
|
+
| [convertBitsToWork](#function-convertbitstowork) | [lockScriptWithKeyOffsetFromPubKey](#function-lockscriptwithkeyoffsetfrompubkey) | [validateGenerateChangeSdkResult](#function-validategeneratechangesdkresult) |
|
|
15797
|
+
| [convertBufferToUint32](#function-convertbuffertouint32) | [logCreateActionArgs](#function-logcreateactionargs) | [validateGenesisHeader](#function-validategenesisheader) |
|
|
15798
|
+
| [convertProofToMerklePath](#function-convertprooftomerklepath) | [logWalletError](#function-logwalleterror) | [validateHeaderDifficulty](#function-validateheaderdifficulty) |
|
|
15799
|
+
| [convertUint32ToBuffer](#function-convertuint32tobuffer) | [makeAtomicBeef](#function-makeatomicbeef) | [validateHeaderFormat](#function-validateheaderformat) |
|
|
15800
|
+
| [convertWocToBlockHeaderHex](#function-convertwoctoblockheaderhex) | [makeChangeLock](#function-makechangelock) | [validateScriptHash](#function-validatescripthash) |
|
|
15801
|
+
| [createAction](#function-createaction) | [maxDate](#function-maxdate) | [validateSecondsSinceEpoch](#function-validatesecondssinceepoch) |
|
|
15802
|
+
| [createAction](#function-createaction) | [offsetPrivKey](#function-offsetprivkey) | [validateStorageFeeModel](#function-validatestoragefeemodel) |
|
|
15803
|
+
| [createDefaultIdbChaintracksOptions](#function-createdefaultidbchaintracksoptions) | [offsetPubKey](#function-offsetpubkey) | [varUintSize](#function-varuintsize) |
|
|
15804
|
+
| [createDefaultNoDbChaintracksOptions](#function-createdefaultnodbchaintracksoptions) | [optionalArraysEqual](#function-optionalarraysequal) | [verifyHexString](#function-verifyhexstring) |
|
|
15805
|
+
| [createDefaultWalletServicesOptions](#function-createdefaultwalletservicesoptions) | [parseTxScriptOffsets](#function-parsetxscriptoffsets) | [verifyId](#function-verifyid) |
|
|
15806
|
+
| [createIdbChaintracks](#function-createidbchaintracks) | [processAction](#function-processaction) | [verifyInteger](#function-verifyinteger) |
|
|
15807
|
+
| [createNoDbChaintracks](#function-createnodbchaintracks) | [processAction](#function-processaction) | [verifyNumber](#function-verifynumber) |
|
|
15808
|
+
| [createStorageServiceChargeScript](#function-createstorageservicechargescript) | [proveCertificate](#function-provecertificate) | [verifyOne](#function-verifyone) |
|
|
15809
|
+
| [createSyncMap](#function-createsyncmap) | [purgeDataIdb](#function-purgedataidb) | [verifyOneOrNone](#function-verifyoneornone) |
|
|
15810
|
+
| [deserializeBaseBlockHeader](#function-deserializebaseblockheader) | [randomBytes](#function-randombytes) | [verifyOptionalHexString](#function-verifyoptionalhexstring) |
|
|
15811
|
+
| [deserializeBaseBlockHeaders](#function-deserializebaseblockheaders) | [randomBytesBase64](#function-randombytesbase64) | [verifyTruthy](#function-verifytruthy) |
|
|
15812
|
+
| [deserializeBlockHeader](#function-deserializeblockheader) | [randomBytesHex](#function-randombyteshex) | [verifyUnlockScripts](#function-verifyunlockscripts) |
|
|
15813
|
+
| [deserializeBlockHeaders](#function-deserializeblockheaders) | [readUInt32BE](#function-readuint32be) | [wait](#function-wait) |
|
|
15814
|
+
| [doubleSha256BE](#function-doublesha256be) | [readUInt32LE](#function-readuint32le) | [wocGetHeadersHeaderToBlockHeader](#function-wocgetheadersheadertoblockheader) |
|
|
15815
|
+
| [doubleSha256LE](#function-doublesha256le) | [redeemServiceCharges](#function-redeemservicecharges) | [workBNtoBuffer](#function-workbntobuffer) |
|
|
15816
|
+
| [generateChangeSdk](#function-generatechangesdk) | [reviewStatusIdb](#function-reviewstatusidb) | [writeUInt32BE](#function-writeuint32be) |
|
|
15817
|
+
| [generateChangeSdkMakeStorage](#function-generatechangesdkmakestorage) | [selectBulkHeaderFiles](#function-selectbulkheaderfiles) | [writeUInt32LE](#function-writeuint32le) |
|
|
15818
|
+
| [genesisBuffer](#function-genesisbuffer) | [serializeBaseBlockHeader](#function-serializebaseblockheader) | |
|
|
15819
|
+
| [genesisHeader](#function-genesisheader) | [serializeBaseBlockHeaders](#function-serializebaseblockheaders) | |
|
|
16250
15820
|
|
|
16251
15821
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
16252
15822
|
|
|
@@ -16369,10 +15939,10 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
16369
15939
|
##### Function: acquireDirectCertificate
|
|
16370
15940
|
|
|
16371
15941
|
```ts
|
|
16372
|
-
export async function acquireDirectCertificate(wallet: Wallet, auth: AuthId, vargs: ValidAcquireDirectCertificateArgs): Promise<AcquireCertificateResult>
|
|
15942
|
+
export async function acquireDirectCertificate(wallet: Wallet, auth: AuthId, vargs: Validation.ValidAcquireDirectCertificateArgs): Promise<AcquireCertificateResult>
|
|
16373
15943
|
```
|
|
16374
15944
|
|
|
16375
|
-
See also: [AuthId](./client.md#interface-authid), [
|
|
15945
|
+
See also: [AuthId](./client.md#interface-authid), [Wallet](./client.md#class-wallet)
|
|
16376
15946
|
|
|
16377
15947
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
16378
15948
|
|
|
@@ -16601,10 +16171,10 @@ Attempt to post one or more `ProvenTxReq` with status 'unsent'
|
|
|
16601
16171
|
to the bitcoin network.
|
|
16602
16172
|
|
|
16603
16173
|
```ts
|
|
16604
|
-
export async function attemptToPostReqsToNetwork(storage: StorageProvider, reqs: EntityProvenTxReq[], trx?: sdk.TrxToken): Promise<PostReqsToNetworkResult>
|
|
16174
|
+
export async function attemptToPostReqsToNetwork(storage: StorageProvider, reqs: EntityProvenTxReq[], trx?: sdk.TrxToken, logger?: WalletLoggerInterface): Promise<PostReqsToNetworkResult>
|
|
16605
16175
|
```
|
|
16606
16176
|
|
|
16607
|
-
See also: [EntityProvenTxReq](./storage.md#class-entityproventxreq), [PostReqsToNetworkResult](./storage.md#interface-postreqstonetworkresult), [StorageProvider](./storage.md#class-storageprovider), [TrxToken](./client.md#interface-trxtoken)
|
|
16177
|
+
See also: [EntityProvenTxReq](./storage.md#class-entityproventxreq), [PostReqsToNetworkResult](./storage.md#interface-postreqstonetworkresult), [StorageProvider](./storage.md#class-storageprovider), [TrxToken](./client.md#interface-trxtoken), [logger](./client.md#variable-logger)
|
|
16608
16178
|
|
|
16609
16179
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
16610
16180
|
|
|
@@ -16638,7 +16208,7 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
16638
16208
|
##### Function: buildSignableTransaction
|
|
16639
16209
|
|
|
16640
16210
|
```ts
|
|
16641
|
-
export function buildSignableTransaction(dctr: StorageCreateActionResult, args: ValidCreateActionArgs, wallet: Wallet): {
|
|
16211
|
+
export function buildSignableTransaction(dctr: StorageCreateActionResult, args: Validation.ValidCreateActionArgs, wallet: Wallet): {
|
|
16642
16212
|
tx: Transaction;
|
|
16643
16213
|
amount: number;
|
|
16644
16214
|
pdi: PendingStorageInput[];
|
|
@@ -16646,7 +16216,7 @@ export function buildSignableTransaction(dctr: StorageCreateActionResult, args:
|
|
|
16646
16216
|
}
|
|
16647
16217
|
```
|
|
16648
16218
|
|
|
16649
|
-
See also: [PendingStorageInput](./client.md#interface-pendingstorageinput), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [
|
|
16219
|
+
See also: [PendingStorageInput](./client.md#interface-pendingstorageinput), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [Wallet](./client.md#class-wallet)
|
|
16650
16220
|
|
|
16651
16221
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
16652
16222
|
|
|
@@ -16779,10 +16349,10 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
16779
16349
|
##### Function: createAction
|
|
16780
16350
|
|
|
16781
16351
|
```ts
|
|
16782
|
-
export async function createAction(wallet: Wallet, auth: AuthId, vargs: ValidCreateActionArgs): Promise<CreateActionResultX>
|
|
16352
|
+
export async function createAction(wallet: Wallet, auth: AuthId, vargs: Validation.ValidCreateActionArgs): Promise<CreateActionResultX>
|
|
16783
16353
|
```
|
|
16784
16354
|
|
|
16785
|
-
See also: [AuthId](./client.md#interface-authid), [CreateActionResultX](./client.md#interface-createactionresultx), [
|
|
16355
|
+
See also: [AuthId](./client.md#interface-authid), [CreateActionResultX](./client.md#interface-createactionresultx), [Wallet](./client.md#class-wallet)
|
|
16786
16356
|
|
|
16787
16357
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
16788
16358
|
|
|
@@ -16790,10 +16360,10 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
16790
16360
|
##### Function: createAction
|
|
16791
16361
|
|
|
16792
16362
|
```ts
|
|
16793
|
-
export async function createAction(storage: StorageProvider, auth: AuthId, vargs: ValidCreateActionArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<StorageCreateActionResult>
|
|
16363
|
+
export async function createAction(storage: StorageProvider, auth: AuthId, vargs: Validation.ValidCreateActionArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<StorageCreateActionResult>
|
|
16794
16364
|
```
|
|
16795
16365
|
|
|
16796
|
-
See also: [AuthId](./client.md#interface-authid), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageProvider](./storage.md#class-storageprovider)
|
|
16366
|
+
See also: [AuthId](./client.md#interface-authid), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageProvider](./storage.md#class-storageprovider)
|
|
16797
16367
|
|
|
16798
16368
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
16799
16369
|
|
|
@@ -17319,15 +16889,6 @@ Argument Details
|
|
|
17319
16889
|
|
|
17320
16890
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
17321
16891
|
|
|
17322
|
-
---
|
|
17323
|
-
##### Function: isHexString
|
|
17324
|
-
|
|
17325
|
-
```ts
|
|
17326
|
-
export function isHexString(s: string): boolean
|
|
17327
|
-
```
|
|
17328
|
-
|
|
17329
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
17330
|
-
|
|
17331
16892
|
---
|
|
17332
16893
|
##### Function: isKnownValidBulkHeaderFile
|
|
17333
16894
|
|
|
@@ -17469,10 +17030,10 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
17469
17030
|
##### Function: listActionsIdb
|
|
17470
17031
|
|
|
17471
17032
|
```ts
|
|
17472
|
-
export async function listActionsIdb(storage: StorageIdb, auth: AuthId, vargs: ValidListActionsArgs): Promise<ListActionsResult>
|
|
17033
|
+
export async function listActionsIdb(storage: StorageIdb, auth: AuthId, vargs: Validation.ValidListActionsArgs): Promise<ListActionsResult>
|
|
17473
17034
|
```
|
|
17474
17035
|
|
|
17475
|
-
See also: [AuthId](./client.md#interface-authid), [StorageIdb](./storage.md#class-storageidb)
|
|
17036
|
+
See also: [AuthId](./client.md#interface-authid), [StorageIdb](./storage.md#class-storageidb)
|
|
17476
17037
|
|
|
17477
17038
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
17478
17039
|
|
|
@@ -17480,10 +17041,10 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
17480
17041
|
##### Function: listCertificates
|
|
17481
17042
|
|
|
17482
17043
|
```ts
|
|
17483
|
-
export async function listCertificates(storage: StorageProvider, auth:
|
|
17044
|
+
export async function listCertificates(storage: StorageProvider, auth: AuthId, vargs: Validation.ValidListCertificatesArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<ListCertificatesResult>
|
|
17484
17045
|
```
|
|
17485
17046
|
|
|
17486
|
-
See also: [AuthId](./client.md#interface-authid), [StorageProvider](./storage.md#class-storageprovider)
|
|
17047
|
+
See also: [AuthId](./client.md#interface-authid), [StorageProvider](./storage.md#class-storageprovider)
|
|
17487
17048
|
|
|
17488
17049
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
17489
17050
|
|
|
@@ -17491,10 +17052,10 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
17491
17052
|
##### Function: listOutputsIdb
|
|
17492
17053
|
|
|
17493
17054
|
```ts
|
|
17494
|
-
export async function listOutputsIdb(storage: StorageIdb, auth: AuthId, vargs: ValidListOutputsArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<ListOutputsResult>
|
|
17055
|
+
export async function listOutputsIdb(storage: StorageIdb, auth: AuthId, vargs: Validation.ValidListOutputsArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<ListOutputsResult>
|
|
17495
17056
|
```
|
|
17496
17057
|
|
|
17497
|
-
See also: [AuthId](./client.md#interface-authid), [StorageIdb](./storage.md#class-storageidb)
|
|
17058
|
+
See also: [AuthId](./client.md#interface-authid), [StorageIdb](./storage.md#class-storageidb)
|
|
17498
17059
|
|
|
17499
17060
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
17500
17061
|
|
|
@@ -17510,6 +17071,26 @@ export function lockScriptWithKeyOffsetFromPubKey(pubKey: string, keyOffset?: st
|
|
|
17510
17071
|
|
|
17511
17072
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
17512
17073
|
|
|
17074
|
+
---
|
|
17075
|
+
##### Function: logCreateActionArgs
|
|
17076
|
+
|
|
17077
|
+
```ts
|
|
17078
|
+
export function logCreateActionArgs(args: CreateActionArgs): object
|
|
17079
|
+
```
|
|
17080
|
+
|
|
17081
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
17082
|
+
|
|
17083
|
+
---
|
|
17084
|
+
##### Function: logWalletError
|
|
17085
|
+
|
|
17086
|
+
```ts
|
|
17087
|
+
export function logWalletError(eu: unknown, logger?: WalletLoggerInterface, label?: string): void
|
|
17088
|
+
```
|
|
17089
|
+
|
|
17090
|
+
See also: [logger](./client.md#variable-logger)
|
|
17091
|
+
|
|
17092
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
17093
|
+
|
|
17513
17094
|
---
|
|
17514
17095
|
##### Function: makeAtomicBeef
|
|
17515
17096
|
|
|
@@ -17525,10 +17106,10 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
17525
17106
|
Derive a change output locking script
|
|
17526
17107
|
|
|
17527
17108
|
```ts
|
|
17528
|
-
export function makeChangeLock(out: StorageCreateTransactionSdkOutput, dctr: StorageCreateActionResult, args: ValidCreateActionArgs, changeKeys: KeyPair, wallet: Wallet): Script
|
|
17109
|
+
export function makeChangeLock(out: StorageCreateTransactionSdkOutput, dctr: StorageCreateActionResult, args: Validation.ValidCreateActionArgs, changeKeys: KeyPair, wallet: Wallet): Script
|
|
17529
17110
|
```
|
|
17530
17111
|
|
|
17531
|
-
See also: [KeyPair](./client.md#interface-keypair), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageCreateTransactionSdkOutput](./client.md#interface-storagecreatetransactionsdkoutput), [
|
|
17112
|
+
See also: [KeyPair](./client.md#interface-keypair), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageCreateTransactionSdkOutput](./client.md#interface-storagecreatetransactionsdkoutput), [Wallet](./client.md#class-wallet)
|
|
17532
17113
|
|
|
17533
17114
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
17534
17115
|
|
|
@@ -17585,18 +17166,6 @@ See also: [TxScriptOffsets](./client.md#interface-txscriptoffsets)
|
|
|
17585
17166
|
|
|
17586
17167
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
17587
17168
|
|
|
17588
|
-
---
|
|
17589
|
-
##### Function: parseWalletOutpoint
|
|
17590
|
-
|
|
17591
|
-
```ts
|
|
17592
|
-
export function parseWalletOutpoint(outpoint: string): {
|
|
17593
|
-
txid: string;
|
|
17594
|
-
vout: number;
|
|
17595
|
-
}
|
|
17596
|
-
```
|
|
17597
|
-
|
|
17598
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
17599
|
-
|
|
17600
17169
|
---
|
|
17601
17170
|
##### Function: processAction
|
|
17602
17171
|
|
|
@@ -17612,10 +17181,10 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
17612
17181
|
##### Function: processAction
|
|
17613
17182
|
|
|
17614
17183
|
```ts
|
|
17615
|
-
export async function processAction(prior: PendingSignAction | undefined, wallet: Wallet, auth: AuthId, vargs: ValidProcessActionArgs): Promise<StorageProcessActionResults>
|
|
17184
|
+
export async function processAction(prior: PendingSignAction | undefined, wallet: Wallet, auth: AuthId, vargs: Validation.ValidProcessActionArgs): Promise<StorageProcessActionResults>
|
|
17616
17185
|
```
|
|
17617
17186
|
|
|
17618
|
-
See also: [AuthId](./client.md#interface-authid), [PendingSignAction](./client.md#interface-pendingsignaction), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [
|
|
17187
|
+
See also: [AuthId](./client.md#interface-authid), [PendingSignAction](./client.md#interface-pendingsignaction), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [Wallet](./client.md#class-wallet)
|
|
17619
17188
|
|
|
17620
17189
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
17621
17190
|
|
|
@@ -17623,10 +17192,10 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
17623
17192
|
##### Function: proveCertificate
|
|
17624
17193
|
|
|
17625
17194
|
```ts
|
|
17626
|
-
export async function proveCertificate(wallet: Wallet, auth: AuthId, vargs: ValidProveCertificateArgs): Promise<ProveCertificateResult>
|
|
17195
|
+
export async function proveCertificate(wallet: Wallet, auth: AuthId, vargs: Validation.ValidProveCertificateArgs): Promise<ProveCertificateResult>
|
|
17627
17196
|
```
|
|
17628
17197
|
|
|
17629
|
-
See also: [AuthId](./client.md#interface-authid), [
|
|
17198
|
+
See also: [AuthId](./client.md#interface-authid), [Wallet](./client.md#class-wallet)
|
|
17630
17199
|
|
|
17631
17200
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
17632
17201
|
|
|
@@ -17859,13 +17428,13 @@ Assigns a batch identifier and updates all the provenTxReqs.
|
|
|
17859
17428
|
If not isDelayed, triggers an initial attempt to broadcast the batch and returns the results.
|
|
17860
17429
|
|
|
17861
17430
|
```ts
|
|
17862
|
-
export async function shareReqsWithWorld(storage: StorageProvider, userId: number, txids: string[], isDelayed: boolean, r?: GetReqsAndBeefResult): Promise<{
|
|
17431
|
+
export async function shareReqsWithWorld(storage: StorageProvider, userId: number, txids: string[], isDelayed: boolean, r?: GetReqsAndBeefResult, logger?: WalletLoggerInterface): Promise<{
|
|
17863
17432
|
swr: SendWithResult[];
|
|
17864
17433
|
ndr: ReviewActionResult[] | undefined;
|
|
17865
17434
|
}>
|
|
17866
17435
|
```
|
|
17867
17436
|
|
|
17868
|
-
See also: [GetReqsAndBeefResult](./storage.md#interface-getreqsandbeefresult), [ReviewActionResult](./client.md#interface-reviewactionresult), [StorageProvider](./storage.md#class-storageprovider)
|
|
17437
|
+
See also: [GetReqsAndBeefResult](./storage.md#interface-getreqsandbeefresult), [ReviewActionResult](./client.md#interface-reviewactionresult), [StorageProvider](./storage.md#class-storageprovider), [logger](./client.md#variable-logger)
|
|
17869
17438
|
|
|
17870
17439
|
Argument Details
|
|
17871
17440
|
|
|
@@ -18068,152 +17637,62 @@ total transaction size in bytes
|
|
|
18068
17637
|
|
|
18069
17638
|
Argument Details
|
|
18070
17639
|
|
|
18071
|
-
+ **inputs**
|
|
18072
|
-
+ array of input script lengths, in bytes
|
|
18073
|
-
+ **outputs**
|
|
18074
|
-
+ array of output script lengths, in bytes
|
|
18075
|
-
|
|
18076
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18077
|
-
|
|
18078
|
-
---
|
|
18079
|
-
##### Function: updateChaintracksFiatExchangeRates
|
|
18080
|
-
|
|
18081
|
-
```ts
|
|
18082
|
-
export async function updateChaintracksFiatExchangeRates(targetCurrencies: string[], options: WalletServicesOptions): Promise<FiatExchangeRates>
|
|
18083
|
-
```
|
|
18084
|
-
|
|
18085
|
-
See also: [FiatExchangeRates](./client.md#interface-fiatexchangerates), [WalletServicesOptions](./client.md#interface-walletservicesoptions)
|
|
18086
|
-
|
|
18087
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18088
|
-
|
|
18089
|
-
---
|
|
18090
|
-
##### Function: updateExchangeratesapi
|
|
18091
|
-
|
|
18092
|
-
```ts
|
|
18093
|
-
export async function updateExchangeratesapi(targetCurrencies: string[], options: WalletServicesOptions): Promise<FiatExchangeRates>
|
|
18094
|
-
```
|
|
18095
|
-
|
|
18096
|
-
See also: [FiatExchangeRates](./client.md#interface-fiatexchangerates), [WalletServicesOptions](./client.md#interface-walletservicesoptions)
|
|
18097
|
-
|
|
18098
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18099
|
-
|
|
18100
|
-
---
|
|
18101
|
-
##### Function: validBulkHeaderFilesByFileHash
|
|
18102
|
-
|
|
18103
|
-
Hash map of known valid bulk header files by their `fileHash`.
|
|
18104
|
-
|
|
18105
|
-
```ts
|
|
18106
|
-
export function validBulkHeaderFilesByFileHash(): Record<string, BulkHeaderFileInfo>
|
|
18107
|
-
```
|
|
18108
|
-
|
|
18109
|
-
See also: [BulkHeaderFileInfo](./services.md#interface-bulkheaderfileinfo)
|
|
18110
|
-
|
|
18111
|
-
Returns
|
|
18112
|
-
|
|
18113
|
-
object where keys are file hashes of known bulk header files.
|
|
18114
|
-
|
|
18115
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18116
|
-
|
|
18117
|
-
---
|
|
18118
|
-
##### Function: validateAbortActionArgs
|
|
18119
|
-
|
|
18120
|
-
```ts
|
|
18121
|
-
export function validateAbortActionArgs(args: AbortActionArgs): ValidAbortActionArgs
|
|
18122
|
-
```
|
|
18123
|
-
|
|
18124
|
-
See also: [ValidAbortActionArgs](./client.md#interface-validabortactionargs)
|
|
18125
|
-
|
|
18126
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18127
|
-
|
|
18128
|
-
---
|
|
18129
|
-
##### Function: validateAcquireCertificateArgs
|
|
18130
|
-
|
|
18131
|
-
```ts
|
|
18132
|
-
export async function validateAcquireCertificateArgs(args: AcquireCertificateArgs): Promise<ValidAcquireCertificateArgs>
|
|
18133
|
-
```
|
|
18134
|
-
|
|
18135
|
-
See also: [ValidAcquireCertificateArgs](./client.md#interface-validacquirecertificateargs)
|
|
18136
|
-
|
|
18137
|
-
Argument Details
|
|
18138
|
-
|
|
18139
|
-
+ **subject**
|
|
18140
|
-
+ Must be valid for "direct" `acquisitionProtocol`. public key of the certificate subject.
|
|
18141
|
-
|
|
18142
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18143
|
-
|
|
18144
|
-
---
|
|
18145
|
-
##### Function: validateAcquireDirectCertificateArgs
|
|
18146
|
-
|
|
18147
|
-
```ts
|
|
18148
|
-
export function validateAcquireDirectCertificateArgs(args: AcquireCertificateArgs): ValidAcquireDirectCertificateArgs
|
|
18149
|
-
```
|
|
18150
|
-
|
|
18151
|
-
See also: [ValidAcquireDirectCertificateArgs](./client.md#interface-validacquiredirectcertificateargs)
|
|
17640
|
+
+ **inputs**
|
|
17641
|
+
+ array of input script lengths, in bytes
|
|
17642
|
+
+ **outputs**
|
|
17643
|
+
+ array of output script lengths, in bytes
|
|
18152
17644
|
|
|
18153
17645
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18154
17646
|
|
|
18155
17647
|
---
|
|
18156
|
-
##### Function:
|
|
17648
|
+
##### Function: updateChaintracksFiatExchangeRates
|
|
18157
17649
|
|
|
18158
17650
|
```ts
|
|
18159
|
-
export function
|
|
17651
|
+
export async function updateChaintracksFiatExchangeRates(targetCurrencies: string[], options: WalletServicesOptions): Promise<FiatExchangeRates>
|
|
18160
17652
|
```
|
|
18161
17653
|
|
|
18162
|
-
See also: [
|
|
17654
|
+
See also: [FiatExchangeRates](./client.md#interface-fiatexchangerates), [WalletServicesOptions](./client.md#interface-walletservicesoptions)
|
|
18163
17655
|
|
|
18164
17656
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18165
17657
|
|
|
18166
17658
|
---
|
|
18167
|
-
##### Function:
|
|
18168
|
-
|
|
18169
|
-
Throws Error if blockHash is in the dirtyHashes list.
|
|
17659
|
+
##### Function: updateExchangeratesapi
|
|
18170
17660
|
|
|
18171
17661
|
```ts
|
|
18172
|
-
export function
|
|
17662
|
+
export async function updateExchangeratesapi(targetCurrencies: string[], options: WalletServicesOptions): Promise<FiatExchangeRates>
|
|
18173
17663
|
```
|
|
18174
17664
|
|
|
18175
|
-
See also: [
|
|
17665
|
+
See also: [FiatExchangeRates](./client.md#interface-fiatexchangerates), [WalletServicesOptions](./client.md#interface-walletservicesoptions)
|
|
18176
17666
|
|
|
18177
17667
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18178
17668
|
|
|
18179
17669
|
---
|
|
18180
|
-
##### Function:
|
|
17670
|
+
##### Function: validBulkHeaderFilesByFileHash
|
|
18181
17671
|
|
|
18182
|
-
|
|
17672
|
+
Hash map of known valid bulk header files by their `fileHash`.
|
|
18183
17673
|
|
|
18184
17674
|
```ts
|
|
18185
|
-
export function
|
|
17675
|
+
export function validBulkHeaderFilesByFileHash(): Record<string, BulkHeaderFileInfo>
|
|
18186
17676
|
```
|
|
18187
17677
|
|
|
18188
|
-
|
|
18189
|
-
|
|
18190
|
-
validated base64 string
|
|
18191
|
-
|
|
18192
|
-
Argument Details
|
|
18193
|
-
|
|
18194
|
-
+ **s**
|
|
18195
|
-
+ base64 string
|
|
18196
|
-
+ **name**
|
|
18197
|
-
+ parameter name used in error messages
|
|
18198
|
-
+ **min**
|
|
18199
|
-
+ optional minimum decoded byte length
|
|
18200
|
-
+ **max**
|
|
18201
|
-
+ optional maximum decoded byte length
|
|
17678
|
+
See also: [BulkHeaderFileInfo](./services.md#interface-bulkheaderfileinfo)
|
|
18202
17679
|
|
|
18203
|
-
|
|
17680
|
+
Returns
|
|
18204
17681
|
|
|
18205
|
-
|
|
17682
|
+
object where keys are file hashes of known bulk header files.
|
|
18206
17683
|
|
|
18207
17684
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18208
17685
|
|
|
18209
17686
|
---
|
|
18210
|
-
##### Function:
|
|
17687
|
+
##### Function: validateAgainstDirtyHashes
|
|
17688
|
+
|
|
17689
|
+
Throws Error if blockHash is in the dirtyHashes list.
|
|
18211
17690
|
|
|
18212
17691
|
```ts
|
|
18213
|
-
export function
|
|
17692
|
+
export function validateAgainstDirtyHashes(blockHash: string): void
|
|
18214
17693
|
```
|
|
18215
17694
|
|
|
18216
|
-
See also: [
|
|
17695
|
+
See also: [blockHash](./services.md#function-blockhash)
|
|
18217
17696
|
|
|
18218
17697
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18219
17698
|
|
|
@@ -18275,87 +17754,6 @@ Argument Details
|
|
|
18275
17754
|
|
|
18276
17755
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18277
17756
|
|
|
18278
|
-
---
|
|
18279
|
-
##### Function: validateCreateActionArgs
|
|
18280
|
-
|
|
18281
|
-
Validate the arguments for creating a new action.
|
|
18282
|
-
|
|
18283
|
-
```ts
|
|
18284
|
-
export function validateCreateActionArgs(args: CreateActionArgs): ValidCreateActionArgs
|
|
18285
|
-
```
|
|
18286
|
-
|
|
18287
|
-
See also: [ValidCreateActionArgs](./client.md#interface-validcreateactionargs)
|
|
18288
|
-
|
|
18289
|
-
Returns
|
|
18290
|
-
|
|
18291
|
-
validated arguments
|
|
18292
|
-
|
|
18293
|
-
Throws
|
|
18294
|
-
|
|
18295
|
-
primarily WERR_INVALID_PARAMETER if args are invalid.
|
|
18296
|
-
|
|
18297
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18298
|
-
|
|
18299
|
-
---
|
|
18300
|
-
##### Function: validateCreateActionInput
|
|
18301
|
-
|
|
18302
|
-
```ts
|
|
18303
|
-
export function validateCreateActionInput(i: CreateActionInput): ValidCreateActionInput
|
|
18304
|
-
```
|
|
18305
|
-
|
|
18306
|
-
See also: [ValidCreateActionInput](./client.md#interface-validcreateactioninput)
|
|
18307
|
-
|
|
18308
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18309
|
-
|
|
18310
|
-
---
|
|
18311
|
-
##### Function: validateCreateActionOptions
|
|
18312
|
-
|
|
18313
|
-
Set all default true/false booleans to true or false if undefined.
|
|
18314
|
-
Set all possibly undefined numbers to their default values.
|
|
18315
|
-
Set all possibly undefined arrays to empty arrays.
|
|
18316
|
-
Convert string outpoints to `{ txid: string, vout: number }`
|
|
18317
|
-
|
|
18318
|
-
```ts
|
|
18319
|
-
export function validateCreateActionOptions(options?: CreateActionOptions): ValidCreateActionOptions
|
|
18320
|
-
```
|
|
18321
|
-
|
|
18322
|
-
See also: [ValidCreateActionOptions](./client.md#interface-validcreateactionoptions)
|
|
18323
|
-
|
|
18324
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18325
|
-
|
|
18326
|
-
---
|
|
18327
|
-
##### Function: validateCreateActionOutput
|
|
18328
|
-
|
|
18329
|
-
```ts
|
|
18330
|
-
export function validateCreateActionOutput(o: CreateActionOutput): ValidCreateActionOutput
|
|
18331
|
-
```
|
|
18332
|
-
|
|
18333
|
-
See also: [ValidCreateActionOutput](./client.md#interface-validcreateactionoutput)
|
|
18334
|
-
|
|
18335
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18336
|
-
|
|
18337
|
-
---
|
|
18338
|
-
##### Function: validateDiscoverByAttributesArgs
|
|
18339
|
-
|
|
18340
|
-
```ts
|
|
18341
|
-
export function validateDiscoverByAttributesArgs(args: DiscoverByAttributesArgs): ValidDiscoverByAttributesArgs
|
|
18342
|
-
```
|
|
18343
|
-
|
|
18344
|
-
See also: [ValidDiscoverByAttributesArgs](./client.md#interface-validdiscoverbyattributesargs)
|
|
18345
|
-
|
|
18346
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18347
|
-
|
|
18348
|
-
---
|
|
18349
|
-
##### Function: validateDiscoverByIdentityKeyArgs
|
|
18350
|
-
|
|
18351
|
-
```ts
|
|
18352
|
-
export function validateDiscoverByIdentityKeyArgs(args: DiscoverByIdentityKeyArgs): ValidDiscoverByIdentityKeyArgs
|
|
18353
|
-
```
|
|
18354
|
-
|
|
18355
|
-
See also: [ValidDiscoverByIdentityKeyArgs](./client.md#interface-validdiscoverbyidentitykeyargs)
|
|
18356
|
-
|
|
18357
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18358
|
-
|
|
18359
17757
|
---
|
|
18360
17758
|
##### Function: validateGenerateChangeSdkParams
|
|
18361
17759
|
|
|
@@ -18440,210 +17838,6 @@ Argument Details
|
|
|
18440
17838
|
|
|
18441
17839
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18442
17840
|
|
|
18443
|
-
---
|
|
18444
|
-
##### Function: validateInteger
|
|
18445
|
-
|
|
18446
|
-
```ts
|
|
18447
|
-
export function validateInteger(v: number | undefined, name: string, defaultValue?: number, min?: number, max?: number): number
|
|
18448
|
-
```
|
|
18449
|
-
|
|
18450
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18451
|
-
|
|
18452
|
-
---
|
|
18453
|
-
##### Function: validateInternalizeActionArgs
|
|
18454
|
-
|
|
18455
|
-
```ts
|
|
18456
|
-
export function validateInternalizeActionArgs(args: InternalizeActionArgs): ValidInternalizeActionArgs
|
|
18457
|
-
```
|
|
18458
|
-
|
|
18459
|
-
See also: [ValidInternalizeActionArgs](./client.md#interface-validinternalizeactionargs)
|
|
18460
|
-
|
|
18461
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18462
|
-
|
|
18463
|
-
---
|
|
18464
|
-
##### Function: validateInternalizeOutput
|
|
18465
|
-
|
|
18466
|
-
```ts
|
|
18467
|
-
export function validateInternalizeOutput(args: InternalizeOutput): ValidInternalizeOutput
|
|
18468
|
-
```
|
|
18469
|
-
|
|
18470
|
-
See also: [ValidInternalizeOutput](./client.md#interface-validinternalizeoutput)
|
|
18471
|
-
|
|
18472
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18473
|
-
|
|
18474
|
-
---
|
|
18475
|
-
##### Function: validateListActionsArgs
|
|
18476
|
-
|
|
18477
|
-
```ts
|
|
18478
|
-
export function validateListActionsArgs(args: ListActionsArgs): ValidListActionsArgs
|
|
18479
|
-
```
|
|
18480
|
-
|
|
18481
|
-
See also: [ValidListActionsArgs](./client.md#interface-validlistactionsargs)
|
|
18482
|
-
|
|
18483
|
-
Argument Details
|
|
18484
|
-
|
|
18485
|
-
+ **args.labels**
|
|
18486
|
-
+ An array of labels used to filter actions.
|
|
18487
|
-
+ **args.labelQueryMode**
|
|
18488
|
-
+ Optional. Specifies how to match labels (default is any which matches any of the labels).
|
|
18489
|
-
+ **args.includeLabels**
|
|
18490
|
-
+ Optional. Whether to include transaction labels in the result set.
|
|
18491
|
-
+ **args.includeInputs**
|
|
18492
|
-
+ Optional. Whether to include input details in the result set.
|
|
18493
|
-
+ **args.includeInputSourceLockingScripts**
|
|
18494
|
-
+ Optional. Whether to include input source locking scripts in the result set.
|
|
18495
|
-
+ **args.includeInputUnlockingScripts**
|
|
18496
|
-
+ Optional. Whether to include input unlocking scripts in the result set.
|
|
18497
|
-
+ **args.includeOutputs**
|
|
18498
|
-
+ Optional. Whether to include output details in the result set.
|
|
18499
|
-
+ **args.includeOutputLockingScripts**
|
|
18500
|
-
+ Optional. Whether to include output locking scripts in the result set.
|
|
18501
|
-
+ **args.limit**
|
|
18502
|
-
+ Optional. The maximum number of transactions to retrieve.
|
|
18503
|
-
+ **args.offset**
|
|
18504
|
-
+ Optional. Number of transactions to skip before starting to return the results.
|
|
18505
|
-
+ **args.seekPermission**
|
|
18506
|
-
+ — Optional. Whether to seek permission from the user for this operation if required. Default true, will return an error rather than proceed if set to false.
|
|
18507
|
-
|
|
18508
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18509
|
-
|
|
18510
|
-
---
|
|
18511
|
-
##### Function: validateListCertificatesArgs
|
|
18512
|
-
|
|
18513
|
-
```ts
|
|
18514
|
-
export function validateListCertificatesArgs(args: ListCertificatesArgs): ValidListCertificatesArgs
|
|
18515
|
-
```
|
|
18516
|
-
|
|
18517
|
-
See also: [ValidListCertificatesArgs](./client.md#interface-validlistcertificatesargs)
|
|
18518
|
-
|
|
18519
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18520
|
-
|
|
18521
|
-
---
|
|
18522
|
-
##### Function: validateListOutputsArgs
|
|
18523
|
-
|
|
18524
|
-
```ts
|
|
18525
|
-
export function validateListOutputsArgs(args: ListOutputsArgs): ValidListOutputsArgs
|
|
18526
|
-
```
|
|
18527
|
-
|
|
18528
|
-
See also: [ValidListOutputsArgs](./client.md#interface-validlistoutputsargs)
|
|
18529
|
-
|
|
18530
|
-
Argument Details
|
|
18531
|
-
|
|
18532
|
-
+ **args.basket**
|
|
18533
|
-
+ Required. The associated basket name whose outputs should be listed.
|
|
18534
|
-
+ **args.tags**
|
|
18535
|
-
+ Optional. Filter outputs based on these tags.
|
|
18536
|
-
+ **args.tagQueryMode**
|
|
18537
|
-
+ Optional. Filter mode, defining whether all or any of the tags must match. By default, any tag can match.
|
|
18538
|
-
+ **args.include**
|
|
18539
|
-
+ Optional. Whether to include locking scripts (with each output) or entire transactions (as aggregated BEEF, at the top level) in the result. By default, unless specified, neither are returned.
|
|
18540
|
-
+ **args.includeEntireTransactions**
|
|
18541
|
-
+ Optional. Whether to include the entire transaction(s) in the result.
|
|
18542
|
-
+ **args.includeCustomInstructions**
|
|
18543
|
-
+ Optional. Whether custom instructions should be returned in the result.
|
|
18544
|
-
+ **args.includeTags**
|
|
18545
|
-
+ Optional. Whether the tags associated with the output should be returned.
|
|
18546
|
-
+ **args.includeLabels**
|
|
18547
|
-
+ Optional. Whether the labels associated with the transaction containing the output should be returned.
|
|
18548
|
-
+ **args.limit**
|
|
18549
|
-
+ Optional limit on the number of outputs to return.
|
|
18550
|
-
+ **args.offset**
|
|
18551
|
-
+ If positive or zero: Number of outputs to skip before starting to return results, oldest first.
|
|
18552
|
-
If negative: Outputs are returned newest first and offset of -1 is the newest output.
|
|
18553
|
-
When using negative offsets, caution is required as new outputs may be added between calls,
|
|
18554
|
-
potentially causing outputs to be duplicated across calls.
|
|
18555
|
-
+ **args.seekPermission**
|
|
18556
|
-
+ — Optional. Whether to seek permission from the user for this operation if required. Default true, will return an error rather than proceed if set to false.
|
|
18557
|
-
|
|
18558
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18559
|
-
|
|
18560
|
-
---
|
|
18561
|
-
##### Function: validateOptionalInteger
|
|
18562
|
-
|
|
18563
|
-
```ts
|
|
18564
|
-
export function validateOptionalInteger(v: number | undefined, name: string, min?: number, max?: number): number | undefined
|
|
18565
|
-
```
|
|
18566
|
-
|
|
18567
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18568
|
-
|
|
18569
|
-
---
|
|
18570
|
-
##### Function: validateOptionalOutpointString
|
|
18571
|
-
|
|
18572
|
-
```ts
|
|
18573
|
-
export function validateOptionalOutpointString(outpoint: string | undefined, name: string): string | undefined
|
|
18574
|
-
```
|
|
18575
|
-
|
|
18576
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18577
|
-
|
|
18578
|
-
---
|
|
18579
|
-
##### Function: validateOriginator
|
|
18580
|
-
|
|
18581
|
-
```ts
|
|
18582
|
-
export function validateOriginator(s?: string): string | undefined
|
|
18583
|
-
```
|
|
18584
|
-
|
|
18585
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18586
|
-
|
|
18587
|
-
---
|
|
18588
|
-
##### Function: validateOutpointString
|
|
18589
|
-
|
|
18590
|
-
```ts
|
|
18591
|
-
export function validateOutpointString(outpoint: string, name: string): string
|
|
18592
|
-
```
|
|
18593
|
-
|
|
18594
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18595
|
-
|
|
18596
|
-
---
|
|
18597
|
-
##### Function: validatePositiveIntegerOrZero
|
|
18598
|
-
|
|
18599
|
-
```ts
|
|
18600
|
-
export function validatePositiveIntegerOrZero(v: number, name: string): number
|
|
18601
|
-
```
|
|
18602
|
-
|
|
18603
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18604
|
-
|
|
18605
|
-
---
|
|
18606
|
-
##### Function: validateProveCertificateArgs
|
|
18607
|
-
|
|
18608
|
-
```ts
|
|
18609
|
-
export function validateProveCertificateArgs(args: ProveCertificateArgs): ValidProveCertificateArgs
|
|
18610
|
-
```
|
|
18611
|
-
|
|
18612
|
-
See also: [ValidProveCertificateArgs](./client.md#interface-validprovecertificateargs)
|
|
18613
|
-
|
|
18614
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18615
|
-
|
|
18616
|
-
---
|
|
18617
|
-
##### Function: validateRelinquishCertificateArgs
|
|
18618
|
-
|
|
18619
|
-
```ts
|
|
18620
|
-
export function validateRelinquishCertificateArgs(args: RelinquishCertificateArgs): ValidRelinquishCertificateArgs
|
|
18621
|
-
```
|
|
18622
|
-
|
|
18623
|
-
See also: [ValidRelinquishCertificateArgs](./client.md#interface-validrelinquishcertificateargs)
|
|
18624
|
-
|
|
18625
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18626
|
-
|
|
18627
|
-
---
|
|
18628
|
-
##### Function: validateRelinquishOutputArgs
|
|
18629
|
-
|
|
18630
|
-
```ts
|
|
18631
|
-
export function validateRelinquishOutputArgs(args: RelinquishOutputArgs): ValidRelinquishOutputArgs
|
|
18632
|
-
```
|
|
18633
|
-
|
|
18634
|
-
See also: [ValidRelinquishOutputArgs](./client.md#interface-validrelinquishoutputargs)
|
|
18635
|
-
|
|
18636
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18637
|
-
|
|
18638
|
-
---
|
|
18639
|
-
##### Function: validateSatoshis
|
|
18640
|
-
|
|
18641
|
-
```ts
|
|
18642
|
-
export function validateSatoshis(v: number | undefined, name: string, min?: number): number
|
|
18643
|
-
```
|
|
18644
|
-
|
|
18645
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18646
|
-
|
|
18647
17841
|
---
|
|
18648
17842
|
##### Function: validateScriptHash
|
|
18649
17843
|
|
|
@@ -18664,33 +17858,6 @@ export function validateSecondsSinceEpoch(time: number): Date
|
|
|
18664
17858
|
|
|
18665
17859
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18666
17860
|
|
|
18667
|
-
---
|
|
18668
|
-
##### Function: validateSignActionArgs
|
|
18669
|
-
|
|
18670
|
-
```ts
|
|
18671
|
-
export function validateSignActionArgs(args: SignActionArgs): ValidSignActionArgs
|
|
18672
|
-
```
|
|
18673
|
-
|
|
18674
|
-
See also: [ValidSignActionArgs](./client.md#interface-validsignactionargs)
|
|
18675
|
-
|
|
18676
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18677
|
-
|
|
18678
|
-
---
|
|
18679
|
-
##### Function: validateSignActionOptions
|
|
18680
|
-
|
|
18681
|
-
Set all default true/false booleans to true or false if undefined.
|
|
18682
|
-
Set all possibly undefined numbers to their default values.
|
|
18683
|
-
Set all possibly undefined arrays to empty arrays.
|
|
18684
|
-
Convert string outpoints to `{ txid: string, vout: number }`
|
|
18685
|
-
|
|
18686
|
-
```ts
|
|
18687
|
-
export function validateSignActionOptions(options?: SignActionOptions): ValidSignActionOptions
|
|
18688
|
-
```
|
|
18689
|
-
|
|
18690
|
-
See also: [ValidSignActionOptions](./client.md#interface-validsignactionoptions)
|
|
18691
|
-
|
|
18692
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18693
|
-
|
|
18694
17861
|
---
|
|
18695
17862
|
##### Function: validateStorageFeeModel
|
|
18696
17863
|
|
|
@@ -18702,26 +17869,6 @@ See also: [StorageFeeModel](./client.md#interface-storagefeemodel)
|
|
|
18702
17869
|
|
|
18703
17870
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18704
17871
|
|
|
18705
|
-
---
|
|
18706
|
-
##### Function: validateStringLength
|
|
18707
|
-
|
|
18708
|
-
```ts
|
|
18709
|
-
export function validateStringLength(s: string, name: string, min?: number, max?: number): string
|
|
18710
|
-
```
|
|
18711
|
-
|
|
18712
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18713
|
-
|
|
18714
|
-
---
|
|
18715
|
-
##### Function: validateWalletPayment
|
|
18716
|
-
|
|
18717
|
-
```ts
|
|
18718
|
-
export function validateWalletPayment(args?: WalletPayment): ValidWalletPayment | undefined
|
|
18719
|
-
```
|
|
18720
|
-
|
|
18721
|
-
See also: [ValidWalletPayment](./client.md#interface-validwalletpayment)
|
|
18722
|
-
|
|
18723
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18724
|
-
|
|
18725
17872
|
---
|
|
18726
17873
|
##### Function: varUintSize
|
|
18727
17874
|
|
|
@@ -18953,9 +18100,8 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
18953
18100
|
|
|
18954
18101
|
| | | |
|
|
18955
18102
|
| --- | --- | --- |
|
|
18956
|
-
| [Chain](#type-chain) | [
|
|
18957
|
-
| [DBType](#type-dbtype) | [
|
|
18958
|
-
| [DescriptionString5to2000Bytes](#type-descriptionstring5to2000bytes) | [HeaderListener](#type-headerlistener) | [ScriptHashFormat](#type-scripthashformat) |
|
|
18103
|
+
| [Chain](#type-chain) | [GroupedPermissionEventHandler](#type-groupedpermissioneventhandler) | [ReviewActionResultStatus](#type-reviewactionresultstatus) |
|
|
18104
|
+
| [DBType](#type-dbtype) | [HeaderListener](#type-headerlistener) | [ScriptHashFormat](#type-scripthashformat) |
|
|
18959
18105
|
| [EnqueueHandler](#type-enqueuehandler) | [InsertHeaderResult](#type-insertheaderresult) | [ServicesCallHistory](#type-servicescallhistory) |
|
|
18960
18106
|
| [EntityStorage](#type-entitystorage) | [MonitorStorage](#type-monitorstorage) | [StopListenerToken](#type-stoplistenertoken) |
|
|
18961
18107
|
| [ErrorHandler](#type-errorhandler) | [PermissionEventHandler](#type-permissioneventhandler) | [StorageProvidedBy](#type-storageprovidedby) |
|
|
@@ -18963,7 +18109,8 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
18963
18109
|
| [GetRawTxService](#type-getrawtxservice) | [PostReqsToNetworkDetailsStatus](#type-postreqstonetworkdetailsstatus) | [SyncStatus](#type-syncstatus) |
|
|
18964
18110
|
| [GetScriptHashHistoryService](#type-getscripthashhistoryservice) | [PostTxsService](#type-posttxsservice) | [TransactionStatus](#type-transactionstatus) |
|
|
18965
18111
|
| [GetStatusForTxidsService](#type-getstatusfortxidsservice) | [ProvenTxReqStatus](#type-proventxreqstatus) | [UpdateFiatExchangeRateService](#type-updatefiatexchangerateservice) |
|
|
18966
|
-
| [GetUtxoStatusOutputFormat](#type-getutxostatusoutputformat) | [ReorgListener](#type-reorglistener) |
|
|
18112
|
+
| [GetUtxoStatusOutputFormat](#type-getutxostatusoutputformat) | [ReorgListener](#type-reorglistener) | [WalletLoggerLevel](#type-walletloggerlevel) |
|
|
18113
|
+
| [GetUtxoStatusService](#type-getutxostatusservice) | [ReqHistoryNote](#type-reqhistorynote) | |
|
|
18967
18114
|
|
|
18968
18115
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18969
18116
|
|
|
@@ -18986,15 +18133,6 @@ export type DBType = "SQLite" | "MySQL" | "IndexedDB"
|
|
|
18986
18133
|
|
|
18987
18134
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18988
18135
|
|
|
18989
|
-
---
|
|
18990
|
-
##### Type: DescriptionString5to2000Bytes
|
|
18991
|
-
|
|
18992
|
-
```ts
|
|
18993
|
-
export type DescriptionString5to2000Bytes = string
|
|
18994
|
-
```
|
|
18995
|
-
|
|
18996
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18997
|
-
|
|
18998
18136
|
---
|
|
18999
18137
|
##### Type: EnqueueHandler
|
|
19000
18138
|
|
|
@@ -19387,6 +18525,23 @@ See also: [FiatExchangeRates](./client.md#interface-fiatexchangerates), [WalletS
|
|
|
19387
18525
|
|
|
19388
18526
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
19389
18527
|
|
|
18528
|
+
---
|
|
18529
|
+
##### Type: WalletLoggerLevel
|
|
18530
|
+
|
|
18531
|
+
Optional. Logging levels that may influence what is logged.
|
|
18532
|
+
|
|
18533
|
+
'error' Only requests resulting in an exception should be logged.
|
|
18534
|
+
'warn' Also log requests that succeed but with an abnormal condition.
|
|
18535
|
+
'info' Also log normal successful requests.
|
|
18536
|
+
'debug' Add input parm and result details where possible.
|
|
18537
|
+
'trace' Instead of adding debug details, focus on execution path and timing.
|
|
18538
|
+
|
|
18539
|
+
```ts
|
|
18540
|
+
export type WalletLoggerLevel = "error" | "warn" | "info" | "debug" | "trace"
|
|
18541
|
+
```
|
|
18542
|
+
|
|
18543
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
18544
|
+
|
|
19390
18545
|
---
|
|
19391
18546
|
#### Variables
|
|
19392
18547
|
|
|
@@ -19589,7 +18744,7 @@ getBasketToSpecOp: () => Record<string, ListOutputsSpecOp> = () => {
|
|
|
19589
18744
|
name: "totalOutputsIsWalletBalance",
|
|
19590
18745
|
useBasket: "default",
|
|
19591
18746
|
ignoreLimit: true,
|
|
19592
|
-
resultFromOutputs: async (s: StorageProvider, auth: AuthId, vargs: ValidListOutputsArgs, specOpTags: string[], outputs: TableOutput[]): Promise<ListOutputsResult> => {
|
|
18747
|
+
resultFromOutputs: async (s: StorageProvider, auth: AuthId, vargs: Validation.ValidListOutputsArgs, specOpTags: string[], outputs: TableOutput[]): Promise<ListOutputsResult> => {
|
|
19593
18748
|
let totalOutputs = 0;
|
|
19594
18749
|
for (const o of outputs)
|
|
19595
18750
|
totalOutputs += o.satoshis;
|
|
@@ -19603,7 +18758,7 @@ getBasketToSpecOp: () => Record<string, ListOutputsSpecOp> = () => {
|
|
|
19603
18758
|
includeOutputScripts: true,
|
|
19604
18759
|
includeSpent: false,
|
|
19605
18760
|
tagsToIntercept: ["release", "all"],
|
|
19606
|
-
filterOutputs: async (s: StorageProvider, auth: AuthId, vargs: ValidListOutputsArgs, specOpTags: string[], outputs: TableOutput[]): Promise<TableOutput[]> => {
|
|
18761
|
+
filterOutputs: async (s: StorageProvider, auth: AuthId, vargs: Validation.ValidListOutputsArgs, specOpTags: string[], outputs: TableOutput[]): Promise<TableOutput[]> => {
|
|
19607
18762
|
const filteredOutputs: TableOutput[] = [];
|
|
19608
18763
|
const services = s.getServices();
|
|
19609
18764
|
for (const o of outputs) {
|
|
@@ -19631,7 +18786,7 @@ getBasketToSpecOp: () => Record<string, ListOutputsSpecOp> = () => {
|
|
|
19631
18786
|
[specOpSetWalletChangeParams]: {
|
|
19632
18787
|
name: "setWalletChangeParams",
|
|
19633
18788
|
tagsParamsCount: 2,
|
|
19634
|
-
resultFromTags: async (s: StorageProvider, auth: AuthId, vargs: ValidListOutputsArgs, specOpTags: string[]): Promise<ListOutputsResult> => {
|
|
18789
|
+
resultFromTags: async (s: StorageProvider, auth: AuthId, vargs: Validation.ValidListOutputsArgs, specOpTags: string[]): Promise<ListOutputsResult> => {
|
|
19635
18790
|
if (specOpTags.length !== 2)
|
|
19636
18791
|
throw new WERR_INVALID_PARAMETER("numberOfDesiredUTXOs and minimumDesiredUTXOValue", "valid");
|
|
19637
18792
|
const numberOfDesiredUTXOs: number = verifyInteger(Number(specOpTags[0]));
|
|
@@ -19650,7 +18805,7 @@ getBasketToSpecOp: () => Record<string, ListOutputsSpecOp> = () => {
|
|
|
19650
18805
|
}
|
|
19651
18806
|
```
|
|
19652
18807
|
|
|
19653
|
-
See also: [AuthId](./client.md#interface-authid), [ListOutputsSpecOp](./storage.md#interface-listoutputsspecop), [StorageProvider](./storage.md#class-storageprovider), [TableOutput](./storage.md#interface-tableoutput), [
|
|
18808
|
+
See also: [AuthId](./client.md#interface-authid), [ListOutputsSpecOp](./storage.md#interface-listoutputsspecop), [StorageProvider](./storage.md#class-storageprovider), [TableOutput](./storage.md#interface-tableoutput), [WERR_INVALID_PARAMETER](./client.md#class-werr_invalid_parameter), [specOpInvalidChange](./client.md#variable-specopinvalidchange), [specOpSetWalletChangeParams](./client.md#variable-specopsetwalletchangeparams), [specOpWalletBalance](./client.md#variable-specopwalletbalance), [verifyId](./client.md#function-verifyid), [verifyInteger](./client.md#function-verifyinteger), [verifyOne](./client.md#function-verifyone)
|
|
19654
18809
|
|
|
19655
18810
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
19656
18811
|
|
|
@@ -19664,7 +18819,7 @@ getLabelToSpecOp: () => Record<string, ListActionsSpecOp> = () => {
|
|
|
19664
18819
|
name: "noSendActions",
|
|
19665
18820
|
labelsToIntercept: ["abort"],
|
|
19666
18821
|
setStatusFilter: () => ["nosend"],
|
|
19667
|
-
postProcess: async (s: StorageProvider, auth: AuthId, vargs: ValidListActionsArgs, specOpLabels: string[], txs: Partial<TableTransaction>[]): Promise<void> => {
|
|
18822
|
+
postProcess: async (s: StorageProvider, auth: AuthId, vargs: Validation.ValidListActionsArgs, specOpLabels: string[], txs: Partial<TableTransaction>[]): Promise<void> => {
|
|
19668
18823
|
if (specOpLabels.indexOf("abort") >= 0) {
|
|
19669
18824
|
for (const tx of txs) {
|
|
19670
18825
|
if (tx.status === "nosend") {
|
|
@@ -19679,7 +18834,7 @@ getLabelToSpecOp: () => Record<string, ListActionsSpecOp> = () => {
|
|
|
19679
18834
|
name: "failedActions",
|
|
19680
18835
|
labelsToIntercept: ["unfail"],
|
|
19681
18836
|
setStatusFilter: () => ["failed"],
|
|
19682
|
-
postProcess: async (s: StorageProvider, auth: AuthId, vargs: ValidListActionsArgs, specOpLabels: string[], txs: Partial<TableTransaction>[]): Promise<void> => {
|
|
18837
|
+
postProcess: async (s: StorageProvider, auth: AuthId, vargs: Validation.ValidListActionsArgs, specOpLabels: string[], txs: Partial<TableTransaction>[]): Promise<void> => {
|
|
19683
18838
|
if (specOpLabels.indexOf("unfail") >= 0) {
|
|
19684
18839
|
for (const tx of txs) {
|
|
19685
18840
|
if (tx.status === "failed") {
|
|
@@ -19693,7 +18848,7 @@ getLabelToSpecOp: () => Record<string, ListActionsSpecOp> = () => {
|
|
|
19693
18848
|
}
|
|
19694
18849
|
```
|
|
19695
18850
|
|
|
19696
|
-
See also: [AuthId](./client.md#interface-authid), [ListActionsSpecOp](./storage.md#interface-listactionsspecop), [StorageProvider](./storage.md#class-storageprovider), [TableTransaction](./storage.md#interface-tabletransaction), [
|
|
18851
|
+
See also: [AuthId](./client.md#interface-authid), [ListActionsSpecOp](./storage.md#interface-listactionsspecop), [StorageProvider](./storage.md#class-storageprovider), [TableTransaction](./storage.md#interface-tabletransaction), [specOpFailedActions](./client.md#variable-specopfailedactions), [specOpNoSendActions](./client.md#variable-specopnosendactions)
|
|
19697
18852
|
|
|
19698
18853
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
19699
18854
|
|