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