@bsv/wallet-toolbox 2.4.2 → 2.4.4
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 +38 -1
- package/docs/README.md +3 -1
- package/docs/action-batch-planning.md +117 -0
- package/docs/authentication-observability.md +94 -0
- package/docs/client.md +1566 -627
- package/docs/monitor.md +26 -5
- package/docs/storage.md +514 -334
- package/docs/wallet.md +1109 -932
- package/out/src/CWIStyleWalletManager.d.ts +52 -5
- package/out/src/CWIStyleWalletManager.d.ts.map +1 -1
- package/out/src/CWIStyleWalletManager.js +500 -128
- package/out/src/CWIStyleWalletManager.js.map +1 -1
- package/out/src/Wallet.d.ts +8 -0
- package/out/src/Wallet.d.ts.map +1 -1
- package/out/src/Wallet.js +23 -9
- package/out/src/Wallet.js.map +1 -1
- package/out/src/WalletAuthenticationManager.d.ts +20 -6
- package/out/src/WalletAuthenticationManager.d.ts.map +1 -1
- package/out/src/WalletAuthenticationManager.js +214 -34
- package/out/src/WalletAuthenticationManager.js.map +1 -1
- package/out/src/WalletPermissionsManager.d.ts +15 -0
- package/out/src/WalletPermissionsManager.d.ts.map +1 -1
- package/out/src/WalletPermissionsManager.js +76 -28
- package/out/src/WalletPermissionsManager.js.map +1 -1
- package/out/src/index.all.d.ts +1 -0
- package/out/src/index.all.d.ts.map +1 -1
- package/out/src/index.all.js +1 -0
- package/out/src/index.all.js.map +1 -1
- package/out/src/index.client.d.ts +2 -0
- package/out/src/index.client.d.ts.map +1 -1
- package/out/src/index.client.js +2 -0
- package/out/src/index.client.js.map +1 -1
- package/out/src/index.mobile.d.ts +1 -0
- package/out/src/index.mobile.d.ts.map +1 -1
- package/out/src/index.mobile.js +1 -0
- package/out/src/index.mobile.js.map +1 -1
- package/out/src/monitor/Monitor.d.ts.map +1 -1
- package/out/src/monitor/Monitor.js +4 -3
- package/out/src/monitor/Monitor.js.map +1 -1
- package/out/src/monitor/tasks/TaskCleanupActionBatches.d.ts +13 -0
- package/out/src/monitor/tasks/TaskCleanupActionBatches.d.ts.map +1 -0
- package/out/src/monitor/tasks/TaskCleanupActionBatches.js +24 -0
- package/out/src/monitor/tasks/TaskCleanupActionBatches.js.map +1 -0
- package/out/src/monitor/tasks/index.all.d.ts +1 -0
- package/out/src/monitor/tasks/index.all.d.ts.map +1 -1
- package/out/src/monitor/tasks/index.all.js +1 -0
- package/out/src/monitor/tasks/index.all.js.map +1 -1
- package/out/src/sdk/ActionBatch.interfaces.d.ts +105 -0
- package/out/src/sdk/ActionBatch.interfaces.d.ts.map +1 -0
- package/out/src/sdk/ActionBatch.interfaces.js +3 -0
- package/out/src/sdk/ActionBatch.interfaces.js.map +1 -0
- package/out/src/sdk/WalletStorage.interfaces.d.ts +18 -1
- package/out/src/sdk/WalletStorage.interfaces.d.ts.map +1 -1
- package/out/src/sdk/index.d.ts +1 -0
- package/out/src/sdk/index.d.ts.map +1 -1
- package/out/src/sdk/index.js +1 -0
- package/out/src/sdk/index.js.map +1 -1
- package/out/src/signer/actionBatch/ActionBatchPlanner.d.ts +28 -0
- package/out/src/signer/actionBatch/ActionBatchPlanner.d.ts.map +1 -0
- package/out/src/signer/actionBatch/ActionBatchPlanner.js +313 -0
- package/out/src/signer/actionBatch/ActionBatchPlanner.js.map +1 -0
- package/out/src/signer/actionBatch/ActionBatchWorkspace.d.ts +33 -0
- package/out/src/signer/actionBatch/ActionBatchWorkspace.d.ts.map +1 -0
- package/out/src/signer/actionBatch/ActionBatchWorkspace.js +693 -0
- package/out/src/signer/actionBatch/ActionBatchWorkspace.js.map +1 -0
- package/out/src/signer/methods/buildSignableTransaction.d.ts.map +1 -1
- package/out/src/signer/methods/buildSignableTransaction.js +2 -1
- package/out/src/signer/methods/buildSignableTransaction.js.map +1 -1
- package/out/src/signer/methods/createAction.d.ts.map +1 -1
- package/out/src/signer/methods/createAction.js +4 -1
- package/out/src/signer/methods/createAction.js.map +1 -1
- package/out/src/storage/StorageIdb.d.ts +14 -0
- package/out/src/storage/StorageIdb.d.ts.map +1 -1
- package/out/src/storage/StorageIdb.js +156 -30
- package/out/src/storage/StorageIdb.js.map +1 -1
- package/out/src/storage/StorageKnex.d.ts +19 -0
- package/out/src/storage/StorageKnex.d.ts.map +1 -1
- package/out/src/storage/StorageKnex.js +107 -1
- package/out/src/storage/StorageKnex.js.map +1 -1
- package/out/src/storage/StorageProvider.d.ts +28 -0
- package/out/src/storage/StorageProvider.d.ts.map +1 -1
- package/out/src/storage/StorageProvider.js +49 -0
- package/out/src/storage/StorageProvider.js.map +1 -1
- package/out/src/storage/WalletStorageManager.d.ts +8 -0
- package/out/src/storage/WalletStorageManager.d.ts.map +1 -1
- package/out/src/storage/WalletStorageManager.js +24 -0
- package/out/src/storage/WalletStorageManager.js.map +1 -1
- package/out/src/storage/idbHelpers.d.ts +2 -0
- package/out/src/storage/idbHelpers.d.ts.map +1 -1
- package/out/src/storage/idbHelpers.js +19 -0
- package/out/src/storage/idbHelpers.js.map +1 -1
- package/out/src/storage/methods/actionBatch.d.ts +14 -0
- package/out/src/storage/methods/actionBatch.d.ts.map +1 -0
- package/out/src/storage/methods/actionBatch.js +644 -0
- package/out/src/storage/methods/actionBatch.js.map +1 -0
- package/out/src/storage/methods/actionBatchBlobs.d.ts +12 -0
- package/out/src/storage/methods/actionBatchBlobs.d.ts.map +1 -0
- package/out/src/storage/methods/actionBatchBlobs.js +121 -0
- package/out/src/storage/methods/actionBatchBlobs.js.map +1 -0
- package/out/src/storage/methods/actionBatchValidation.d.ts +15 -0
- package/out/src/storage/methods/actionBatchValidation.d.ts.map +1 -0
- package/out/src/storage/methods/actionBatchValidation.js +310 -0
- package/out/src/storage/methods/actionBatchValidation.js.map +1 -0
- package/out/src/storage/methods/actionPlanning.d.ts +12 -0
- package/out/src/storage/methods/actionPlanning.d.ts.map +1 -0
- package/out/src/storage/methods/actionPlanning.js +48 -0
- package/out/src/storage/methods/actionPlanning.js.map +1 -0
- package/out/src/storage/methods/createAction.d.ts.map +1 -1
- package/out/src/storage/methods/createAction.js +9 -25
- package/out/src/storage/methods/createAction.js.map +1 -1
- package/out/src/storage/remoting/StorageClientBase.d.ts +9 -0
- package/out/src/storage/remoting/StorageClientBase.d.ts.map +1 -1
- package/out/src/storage/remoting/StorageClientBase.js +36 -1
- package/out/src/storage/remoting/StorageClientBase.js.map +1 -1
- package/out/src/storage/remoting/StorageServer.d.ts +10 -0
- package/out/src/storage/remoting/StorageServer.d.ts.map +1 -1
- package/out/src/storage/remoting/StorageServer.js +147 -7
- package/out/src/storage/remoting/StorageServer.js.map +1 -1
- package/out/src/storage/schema/KnexMigrations.d.ts.map +1 -1
- package/out/src/storage/schema/KnexMigrations.js +44 -0
- package/out/src/storage/schema/KnexMigrations.js.map +1 -1
- package/out/src/storage/schema/StorageIdbSchema.d.ts +24 -0
- package/out/src/storage/schema/StorageIdbSchema.d.ts.map +1 -1
- package/out/src/storage/schema/tables/TableActionBatch.d.ts +24 -0
- package/out/src/storage/schema/tables/TableActionBatch.d.ts.map +1 -0
- package/out/src/storage/schema/tables/TableActionBatch.js +3 -0
- package/out/src/storage/schema/tables/TableActionBatch.js.map +1 -0
- package/out/src/storage/schema/tables/index.d.ts +1 -0
- package/out/src/storage/schema/tables/index.d.ts.map +1 -1
- package/out/src/storage/schema/tables/index.js +1 -0
- package/out/src/storage/schema/tables/index.js.map +1 -1
- package/out/src/utility/actionBatchDigest.d.ts +9 -0
- package/out/src/utility/actionBatchDigest.d.ts.map +1 -0
- package/out/src/utility/actionBatchDigest.js +48 -0
- package/out/src/utility/actionBatchDigest.js.map +1 -0
- package/out/src/utility/beefForTxids.d.ts +9 -0
- package/out/src/utility/beefForTxids.d.ts.map +1 -0
- package/out/src/utility/beefForTxids.js +35 -0
- package/out/src/utility/beefForTxids.js.map +1 -0
- package/out/src/wab-client/WABClient.d.ts +36 -90
- package/out/src/wab-client/WABClient.d.ts.map +1 -1
- package/out/src/wab-client/WABClient.js +103 -151
- package/out/src/wab-client/WABClient.js.map +1 -1
- package/out/src/wab-client/WABTransport.d.ts +53 -0
- package/out/src/wab-client/WABTransport.d.ts.map +1 -0
- package/out/src/wab-client/WABTransport.js +300 -0
- package/out/src/wab-client/WABTransport.js.map +1 -0
- package/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.d.ts +10 -10
- package/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.d.ts.map +1 -1
- package/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.js +16 -21
- package/out/src/wab-client/auth-method-interactors/AuthMethodInteractor.js.map +1 -1
- package/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.d.ts +2 -1
- package/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.d.ts.map +1 -1
- package/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.js +14 -0
- package/out/src/wab-client/auth-method-interactors/TwilioPhoneInteractor.js.map +1 -1
- package/package.json +23 -23
package/docs/wallet.md
CHANGED
|
@@ -6,76 +6,223 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
6
6
|
|
|
7
7
|
| | | |
|
|
8
8
|
| --- | --- | --- |
|
|
9
|
-
| [
|
|
10
|
-
| [
|
|
11
|
-
| [
|
|
12
|
-
| [
|
|
13
|
-
| [
|
|
14
|
-
| [
|
|
15
|
-
| [
|
|
16
|
-
| [
|
|
17
|
-
| [
|
|
18
|
-
| [
|
|
19
|
-
| [
|
|
20
|
-
| [
|
|
21
|
-
| [
|
|
22
|
-
| [
|
|
23
|
-
| [
|
|
24
|
-
| [
|
|
25
|
-
| [
|
|
26
|
-
| [
|
|
27
|
-
| [
|
|
28
|
-
| [
|
|
29
|
-
| [
|
|
30
|
-
| [
|
|
31
|
-
| [
|
|
32
|
-
| [
|
|
33
|
-
| [
|
|
34
|
-
| [
|
|
35
|
-
| [
|
|
36
|
-
| [
|
|
37
|
-
| [
|
|
38
|
-
| [
|
|
39
|
-
| [
|
|
40
|
-
| [
|
|
41
|
-
| [
|
|
42
|
-
| [
|
|
43
|
-
| [
|
|
44
|
-
| [
|
|
45
|
-
| [
|
|
46
|
-
| [
|
|
47
|
-
| [
|
|
48
|
-
| [
|
|
49
|
-
| [
|
|
50
|
-
| [
|
|
51
|
-
| [
|
|
52
|
-
| [
|
|
53
|
-
| [
|
|
54
|
-
| [
|
|
55
|
-
| [
|
|
56
|
-
| [
|
|
57
|
-
| [
|
|
58
|
-
| [
|
|
59
|
-
| [
|
|
60
|
-
| [
|
|
61
|
-
| [
|
|
62
|
-
| [
|
|
63
|
-
| [
|
|
64
|
-
| [
|
|
65
|
-
| [
|
|
66
|
-
| [
|
|
67
|
-
| [
|
|
68
|
-
| [
|
|
69
|
-
| [
|
|
70
|
-
| [
|
|
71
|
-
| [
|
|
72
|
-
| [
|
|
73
|
-
| [
|
|
9
|
+
| [AbortActionBatchResult](#interface-abortactionbatchresult) | [FindTransactionsArgs](#interface-findtransactionsargs) | [StatusForTxidResult](#interface-statusfortxidresult) |
|
|
10
|
+
| [ActionBatchCommitAction](#interface-actionbatchcommitaction) | [FindTxLabelMapsArgs](#interface-findtxlabelmapsargs) | [StorageAdminStats](#interface-storageadminstats) |
|
|
11
|
+
| [ActionBatchCommitMetadata](#interface-actionbatchcommitmetadata) | [FindTxLabelsArgs](#interface-findtxlabelsargs) | [StorageCapabilities](#interface-storagecapabilities) |
|
|
12
|
+
| [ActionBatchFundingOutput](#interface-actionbatchfundingoutput) | [FindUsersArgs](#interface-findusersargs) | [StorageClientOptions](#interface-storageclientoptions) |
|
|
13
|
+
| [ActionBatchManifest](#interface-actionbatchmanifest) | [GenerateChangeSdkChangeInput](#interface-generatechangesdkchangeinput) | [StorageCreateActionResult](#interface-storagecreateactionresult) |
|
|
14
|
+
| [ActionBatchPlannedAction](#interface-actionbatchplannedaction) | [GenerateChangeSdkChangeOutput](#interface-generatechangesdkchangeoutput) | [StorageCreateTransactionSdkInput](#interface-storagecreatetransactionsdkinput) |
|
|
15
|
+
| [ActionBatchPlannerState](#interface-actionbatchplannerstate) | [GenerateChangeSdkInput](#interface-generatechangesdkinput) | [StorageCreateTransactionSdkOutput](#interface-storagecreatetransactionsdkoutput) |
|
|
16
|
+
| [AdminStatsResult](#interface-adminstatsresult) | [GenerateChangeSdkOutput](#interface-generatechangesdkoutput) | [StorageFeeModel](#interface-storagefeemodel) |
|
|
17
|
+
| [AggregatePostBeefTxResult](#interface-aggregatepostbeeftxresult) | [GenerateChangeSdkParams](#interface-generatechangesdkparams) | [StorageGetBeefOptions](#interface-storagegetbeefoptions) |
|
|
18
|
+
| [ArcConfig](#interface-arcconfig) | [GenerateChangeSdkResult](#interface-generatechangesdkresult) | [StorageIdentity](#interface-storageidentity) |
|
|
19
|
+
| [ArcMinerGetTxData](#interface-arcminergettxdata) | [GenerateChangeSdkStorageChange](#interface-generatechangesdkstoragechange) | [StorageInternalizeActionResult](#interface-storageinternalizeactionresult) |
|
|
20
|
+
| [ArcSSEClientOptions](#interface-arcsseclientoptions) | [GetMerklePathResult](#interface-getmerklepathresult) | [StorageProcessActionArgs](#interface-storageprocessactionargs) |
|
|
21
|
+
| [ArcSSEEvent](#interface-arcsseevent) | [GetRawTxResult](#interface-getrawtxresult) | [StorageProcessActionResults](#interface-storageprocessactionresults) |
|
|
22
|
+
| [AuthId](#interface-authid) | [GetReqsAndBeefDetail](#interface-getreqsandbeefdetail) | [StorageProvenOrReq](#interface-storageprovenorreq) |
|
|
23
|
+
| [BaseBlockHeader](#interface-baseblockheader) | [GetReqsAndBeefResult](#interface-getreqsandbeefresult) | [StorageProviderOptions](#interface-storageprovideroptions) |
|
|
24
|
+
| [BeginActionBatchArgs](#interface-beginactionbatchargs) | [GetScriptHashHistory](#interface-getscripthashhistory) | [StorageReaderOptions](#interface-storagereaderoptions) |
|
|
25
|
+
| [BeginActionBatchResult](#interface-beginactionbatchresult) | [GetScriptHashHistoryResult](#interface-getscripthashhistoryresult) | [StorageReaderWriterOptions](#interface-storagereaderwriteroptions) |
|
|
26
|
+
| [BitailsConfig](#interface-bitailsconfig) | [GetStatusForTxidsResult](#interface-getstatusfortxidsresult) | [StorageSyncReaderOptions](#interface-storagesyncreaderoptions) |
|
|
27
|
+
| [BitailsMerkleProof](#interface-bitailsmerkleproof) | [GetUtxoStatusDetails](#interface-getutxostatusdetails) | [SyncChunk](#interface-syncchunk) |
|
|
28
|
+
| [BlockHeader](#interface-blockheader) | [GetUtxoStatusResult](#interface-getutxostatusresult) | [SyncError](#interface-syncerror) |
|
|
29
|
+
| [BsvExchangeRate](#interface-bsvexchangerate) | [HeightRangeApi](#interface-heightrangeapi) | [SyncMap](#interface-syncmap) |
|
|
30
|
+
| [BulkFileDataManagerMergeResult](#interface-bulkfiledatamanagermergeresult) | [HeightRanges](#interface-heightranges) | [TableActionBatch](#interface-tableactionbatch) |
|
|
31
|
+
| [BulkFileDataManagerOptions](#interface-bulkfiledatamanageroptions) | [KeyPair](#interface-keypair) | [TableActionBatchBlob](#interface-tableactionbatchblob) |
|
|
32
|
+
| [BulkHeaderFileInfo](#interface-bulkheaderfileinfo) | [LiveBlockHeader](#interface-liveblockheader) | [TableActionBatchOutput](#interface-tableactionbatchoutput) |
|
|
33
|
+
| [BulkHeaderFilesInfo](#interface-bulkheaderfilesinfo) | [MerklePathNote](#interface-merklepathnote) | [TableCertificate](#interface-tablecertificate) |
|
|
34
|
+
| [CanonicalFundingCandidate](#interface-canonicalfundingcandidate) | [MockChainBlockHeaderRow](#interface-mockchainblockheaderrow) | [TableCertificateField](#interface-tablecertificatefield) |
|
|
35
|
+
| [CertOpsWallet](#interface-certopswallet) | [MockChainTransactionRow](#interface-mockchaintransactionrow) | [TableCertificateX](#interface-tablecertificatex) |
|
|
36
|
+
| [Certifier](#interface-certifier) | [MockChainUtxoRow](#interface-mockchainutxorow) | [TableCommission](#interface-tablecommission) |
|
|
37
|
+
| [ChaintracksApi](#interface-chaintracksapi) | [MonitorOptions](#interface-monitoroptions) | [TableMonitorEvent](#interface-tablemonitorevent) |
|
|
38
|
+
| [ChaintracksAppendableFileApi](#interface-chaintracksappendablefileapi) | [OutPoint](#interface-outpoint) | [TableOutput](#interface-tableoutput) |
|
|
39
|
+
| [ChaintracksChainTrackerOptions](#interface-chaintrackschaintrackeroptions) | [Paged](#interface-paged) | [TableOutputBasket](#interface-tableoutputbasket) |
|
|
40
|
+
| [ChaintracksClientApi](#interface-chaintracksclientapi) | [PendingSignAction](#interface-pendingsignaction) | [TableOutputTag](#interface-tableoutputtag) |
|
|
41
|
+
| [ChaintracksFetchApi](#interface-chaintracksfetchapi) | [PendingStorageInput](#interface-pendingstorageinput) | [TableOutputTagMap](#interface-tableoutputtagmap) |
|
|
42
|
+
| [ChaintracksFsApi](#interface-chaintracksfsapi) | [PlannerOutput](#interface-planneroutput) | [TableOutputX](#interface-tableoutputx) |
|
|
43
|
+
| [ChaintracksInfoApi](#interface-chaintracksinfoapi) | [PostBeefResult](#interface-postbeefresult) | [TableProvenTx](#interface-tableproventx) |
|
|
44
|
+
| [ChaintracksPackageInfoApi](#interface-chaintrackspackageinfoapi) | [PostBeefResultForTxidApi](#interface-postbeefresultfortxidapi) | [TableProvenTxReq](#interface-tableproventxreq) |
|
|
45
|
+
| [ChaintracksReadableFileApi](#interface-chaintracksreadablefileapi) | [PostReqsToNetworkDetails](#interface-postreqstonetworkdetails) | [TableProvenTxReqDynamics](#interface-tableproventxreqdynamics) |
|
|
46
|
+
| [ChaintracksServiceClientOptions](#interface-chaintracksserviceclientoptions) | [PostReqsToNetworkResult](#interface-postreqstonetworkresult) | [TableSettings](#interface-tablesettings) |
|
|
47
|
+
| [ChaintracksStorageApi](#interface-chaintracksstorageapi) | [PostTxResultForTxid](#interface-posttxresultfortxid) | [TableSyncState](#interface-tablesyncstate) |
|
|
48
|
+
| [ChaintracksStorageBaseOptions](#interface-chaintracksstoragebaseoptions) | [PostTxResultForTxidError](#interface-posttxresultfortxiderror) | [TableTransaction](#interface-tabletransaction) |
|
|
49
|
+
| [ChaintracksStorageBulkFileApi](#interface-chaintracksstoragebulkfileapi) | [PostTxsResult](#interface-posttxsresult) | [TableTxLabel](#interface-tabletxlabel) |
|
|
50
|
+
| [ChaintracksStorageIngestApi](#interface-chaintracksstorageingestapi) | [PrepareActionBatchCommitResult](#interface-prepareactionbatchcommitresult) | [TableTxLabelMap](#interface-tabletxlabelmap) |
|
|
51
|
+
| [ChaintracksStorageQueryApi](#interface-chaintracksstoragequeryapi) | [ProcessSyncChunkResult](#interface-processsyncchunkresult) | [TableUser](#interface-tableuser) |
|
|
52
|
+
| [ChaintracksWritableFileApi](#interface-chaintrackswritablefileapi) | [ProvenOrRawTx](#interface-provenorrawtx) | [TaskPurgeParams](#interface-taskpurgeparams) |
|
|
53
|
+
| [CommitActionBatchResult](#interface-commitactionbatchresult) | [ProvenTransactionStatus](#interface-proventransactionstatus) | [TrustSettings](#interface-trustsettings) |
|
|
54
|
+
| [CommitNewTxResults](#interface-commitnewtxresults) | [ProvenTxFromTxidResult](#interface-proventxfromtxidresult) | [TrxToken](#interface-trxtoken) |
|
|
55
|
+
| [ContactRecord](#interface-contactrecord) | [ProvenTxReqHistory](#interface-proventxreqhistory) | [TscMerkleProofApi](#interface-tscmerkleproofapi) |
|
|
56
|
+
| [ContactSource](#interface-contactsource) | [ProvenTxReqHistorySummaryApi](#interface-proventxreqhistorysummaryapi) | [TxScriptOffsets](#interface-txscriptoffsets) |
|
|
57
|
+
| [CreateActionResultX](#interface-createactionresultx) | [ProvenTxReqNotify](#interface-proventxreqnotify) | [UpdateProvenTxReqWithNewProvenTxArgs](#interface-updateproventxreqwithnewproventxargs) |
|
|
58
|
+
| [DeactivedHeader](#interface-deactivedheader) | [ProviderCallHistory](#interface-providercallhistory) | [UpdateProvenTxReqWithNewProvenTxResult](#interface-updateproventxreqwithnewproventxresult) |
|
|
59
|
+
| [EntitySyncMap](#interface-entitysyncmap) | [PurgeParams](#interface-purgeparams) | [ValidateGenerateChangeSdkParamsResult](#interface-validategeneratechangesdkparamsresult) |
|
|
60
|
+
| [EntityTimeStamp](#interface-entitytimestamp) | [PurgeResults](#interface-purgeresults) | [ValidatedBatchAction](#interface-validatedbatchaction) |
|
|
61
|
+
| [ExchangeRatesIoApi](#interface-exchangeratesioapi) | [PutActionBatchBlobArgs](#interface-putactionbatchblobargs) | [VerifyAndRepairBeefResult](#interface-verifyandrepairbeefresult) |
|
|
62
|
+
| [ExtendActionBatchArgs](#interface-extendactionbatchargs) | [RenewActionBatchResult](#interface-renewactionbatchresult) | [WalletArgs](#interface-walletargs) |
|
|
63
|
+
| [ExtendActionBatchResult](#interface-extendactionbatchresult) | [ReorgResult](#interface-reorgresult) | [WalletBalance](#interface-walletbalance) |
|
|
64
|
+
| [ExtendedVerifiableCertificate](#interface-extendedverifiablecertificate) | [ReproveHeaderResult](#interface-reproveheaderresult) | [WalletLoggerArgs](#interface-walletloggerargs) |
|
|
65
|
+
| [FiatExchangeRates](#interface-fiatexchangerates) | [ReproveProvenResult](#interface-reproveprovenresult) | [WalletServices](#interface-walletservices) |
|
|
66
|
+
| [FindCertificateFieldsArgs](#interface-findcertificatefieldsargs) | [ReqHistoryNote](#interface-reqhistorynote) | [WalletServicesOptions](#interface-walletservicesoptions) |
|
|
67
|
+
| [FindCertificatesArgs](#interface-findcertificatesargs) | [RequestSyncChunkArgs](#interface-requestsyncchunkargs) | [WalletSettings](#interface-walletsettings) |
|
|
68
|
+
| [FindCommissionsArgs](#interface-findcommissionsargs) | [ReviewActionResult](#interface-reviewactionresult) | [WalletSettingsManagerConfig](#interface-walletsettingsmanagerconfig) |
|
|
69
|
+
| [FindForUserSincePagedArgs](#interface-findforusersincepagedargs) | [ReviewHeightRangeResult](#interface-reviewheightrangeresult) | [WalletSigner](#interface-walletsigner) |
|
|
70
|
+
| [FindMonitorEventsArgs](#interface-findmonitoreventsargs) | [ScriptHashHistoryResponse](#interface-scripthashhistoryresponse) | [WalletStorage](#interface-walletstorage) |
|
|
71
|
+
| [FindOutputBasketsArgs](#interface-findoutputbasketsargs) | [ScriptTemplateParamsBRC29](#interface-scripttemplateparamsbrc29) | [WalletStorageInfo](#interface-walletstorageinfo) |
|
|
72
|
+
| [FindOutputTagMapsArgs](#interface-findoutputtagmapsargs) | [ScriptTemplateUnlock](#interface-scripttemplateunlock) | [WalletStorageProvider](#interface-walletstorageprovider) |
|
|
73
|
+
| [FindOutputTagsArgs](#interface-findoutputtagsargs) | [ServiceCall](#interface-servicecall) | [WalletStorageReader](#interface-walletstoragereader) |
|
|
74
|
+
| [FindOutputsArgs](#interface-findoutputsargs) | [ServiceCall](#interface-servicecall) | [WalletStorageSync](#interface-walletstoragesync) |
|
|
75
|
+
| [FindPartialSincePagedArgs](#interface-findpartialsincepagedargs) | [ServiceCallHistory](#interface-servicecallhistory) | [WalletStorageSyncReader](#interface-walletstoragesyncreader) |
|
|
76
|
+
| [FindProvenTxReqsArgs](#interface-findproventxreqsargs) | [ServiceCallHistoryCounts](#interface-servicecallhistorycounts) | [WalletStorageWriter](#interface-walletstoragewriter) |
|
|
77
|
+
| [FindProvenTxsArgs](#interface-findproventxsargs) | [ServiceToCall](#interface-servicetocall) | [WalletTheme](#interface-wallettheme) |
|
|
78
|
+
| [FindSincePagedArgs](#interface-findsincepagedargs) | [ServicesCallHistory](#interface-servicescallhistory) | [WocChainInfo](#interface-wocchaininfo) |
|
|
79
|
+
| [FindStaleMerkleRootsArgs](#interface-findstalemerklerootsargs) | [SignActionResultX](#interface-signactionresultx) | [WocHeader](#interface-wocheader) |
|
|
80
|
+
| [FindSyncStatesArgs](#interface-findsyncstatesargs) | [SpentInputTransition](#interface-spentinputtransition) | [XValidCreateActionOutput](#interface-xvalidcreateactionoutput) |
|
|
81
|
+
|
|
82
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
##### Interface: AbortActionBatchResult
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
export interface AbortActionBatchResult {
|
|
90
|
+
aborted: boolean;
|
|
91
|
+
}
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
##### Interface: ActionBatchCommitAction
|
|
98
|
+
|
|
99
|
+
```ts
|
|
100
|
+
export interface ActionBatchCommitAction {
|
|
101
|
+
reference: string;
|
|
102
|
+
txid: TXIDHexString;
|
|
103
|
+
rawTx?: number[] | Uint8Array;
|
|
104
|
+
rawTxDigest?: string;
|
|
105
|
+
lockingScriptDigests?: Array<string | undefined>;
|
|
106
|
+
plan: StorageCreateActionResult;
|
|
107
|
+
metadata: ActionBatchCommitMetadata;
|
|
108
|
+
commissionKeyOffset?: string;
|
|
109
|
+
}
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
See also: [ActionBatchCommitMetadata](./client.md#interface-actionbatchcommitmetadata), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult)
|
|
113
|
+
|
|
114
|
+
###### Property lockingScriptDigests
|
|
115
|
+
|
|
116
|
+
Content-addressed locking scripts aligned to plan.outputs for compact workspaces.
|
|
117
|
+
|
|
118
|
+
```ts
|
|
119
|
+
lockingScriptDigests?: Array<string | undefined>
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
##### Interface: ActionBatchCommitMetadata
|
|
126
|
+
|
|
127
|
+
```ts
|
|
128
|
+
export interface ActionBatchCommitMetadata {
|
|
129
|
+
description: string;
|
|
130
|
+
labels: string[];
|
|
131
|
+
isNoSend: boolean;
|
|
132
|
+
isDelayed: boolean;
|
|
133
|
+
inputs: Validation.ValidCreateActionInput[];
|
|
134
|
+
outputs: Validation.ValidCreateActionOutput[];
|
|
135
|
+
}
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
##### Interface: ActionBatchFundingOutput
|
|
142
|
+
|
|
143
|
+
```ts
|
|
144
|
+
export interface ActionBatchFundingOutput extends TableOutput {
|
|
145
|
+
sourceTransaction?: number[] | Uint8Array;
|
|
146
|
+
}
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
See also: [TableOutput](./storage.md#interface-tableoutput)
|
|
150
|
+
|
|
151
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
##### Interface: ActionBatchManifest
|
|
155
|
+
|
|
156
|
+
```ts
|
|
157
|
+
export interface ActionBatchManifest {
|
|
158
|
+
batchId: string;
|
|
159
|
+
digest: string;
|
|
160
|
+
actions: ActionBatchCommitAction[];
|
|
161
|
+
inlineBlobs?: Record<string, number[] | Uint8Array>;
|
|
162
|
+
blobChunks?: Record<string, string[]>;
|
|
163
|
+
dependencyBeef?: number[] | Uint8Array;
|
|
164
|
+
dependencyBeefDigest?: string;
|
|
165
|
+
sendWith: TXIDHexString[];
|
|
166
|
+
isDelayed: boolean;
|
|
167
|
+
}
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
See also: [ActionBatchCommitAction](./client.md#interface-actionbatchcommitaction)
|
|
171
|
+
|
|
172
|
+
###### Property blobChunks
|
|
173
|
+
|
|
174
|
+
Physical chunk digests for logical blobs larger than the provider's advertised blob limit.
|
|
175
|
+
|
|
176
|
+
```ts
|
|
177
|
+
blobChunks?: Record<string, string[]>
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
###### Property inlineBlobs
|
|
181
|
+
|
|
182
|
+
Content-addressed blobs carried in the commit request when the batch is below the inline limit.
|
|
183
|
+
|
|
184
|
+
```ts
|
|
185
|
+
inlineBlobs?: Record<string, number[] | Uint8Array>
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
##### Interface: ActionBatchPlannedAction
|
|
192
|
+
|
|
193
|
+
```ts
|
|
194
|
+
export interface ActionBatchPlannedAction {
|
|
195
|
+
dcr: StorageCreateActionResult;
|
|
196
|
+
consumedOutpoints: string[];
|
|
197
|
+
commissionKeyOffset?: string;
|
|
198
|
+
}
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
See also: [StorageCreateActionResult](./client.md#interface-storagecreateactionresult)
|
|
74
202
|
|
|
75
203
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
76
204
|
|
|
77
205
|
---
|
|
206
|
+
##### Interface: ActionBatchPlannerState
|
|
207
|
+
|
|
208
|
+
```ts
|
|
209
|
+
export interface ActionBatchPlannerState {
|
|
210
|
+
begin: BeginActionBatchResult;
|
|
211
|
+
sharedBeef: Beef;
|
|
212
|
+
reserved: Map<string, PlannerOutput>;
|
|
213
|
+
explicit: Map<string, PlannerOutput>;
|
|
214
|
+
staged: Map<string, PlannerOutput>;
|
|
215
|
+
discardedStagedTxids: Set<string>;
|
|
216
|
+
consumed: Set<string>;
|
|
217
|
+
estimatedChangeCount: number;
|
|
218
|
+
}
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
See also: [BeginActionBatchResult](./client.md#interface-beginactionbatchresult), [PlannerOutput](./client.md#interface-planneroutput)
|
|
78
222
|
|
|
223
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
224
|
+
|
|
225
|
+
---
|
|
79
226
|
##### Interface: AdminStatsResult
|
|
80
227
|
|
|
81
228
|
```ts
|
|
@@ -386,6 +533,41 @@ version: number
|
|
|
386
533
|
|
|
387
534
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
388
535
|
|
|
536
|
+
---
|
|
537
|
+
##### Interface: BeginActionBatchArgs
|
|
538
|
+
|
|
539
|
+
```ts
|
|
540
|
+
export interface BeginActionBatchArgs {
|
|
541
|
+
batchId: string;
|
|
542
|
+
firstAction: Validation.ValidCreateActionArgs;
|
|
543
|
+
}
|
|
544
|
+
```
|
|
545
|
+
|
|
546
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
547
|
+
|
|
548
|
+
---
|
|
549
|
+
##### Interface: BeginActionBatchResult
|
|
550
|
+
|
|
551
|
+
```ts
|
|
552
|
+
export interface BeginActionBatchResult {
|
|
553
|
+
batchId: string;
|
|
554
|
+
expiresAt: string;
|
|
555
|
+
hardExpiresAt: string;
|
|
556
|
+
changeBasket: TableOutputBasket;
|
|
557
|
+
feeModel: StorageFeeModel;
|
|
558
|
+
commissionSatoshis: number;
|
|
559
|
+
commissionPubKeyHex?: string;
|
|
560
|
+
availableChangeCount: number;
|
|
561
|
+
reservedOutputs: ActionBatchFundingOutput[];
|
|
562
|
+
explicitOutputs: ActionBatchFundingOutput[];
|
|
563
|
+
inputBeef?: number[] | Uint8Array;
|
|
564
|
+
}
|
|
565
|
+
```
|
|
566
|
+
|
|
567
|
+
See also: [ActionBatchFundingOutput](./client.md#interface-actionbatchfundingoutput), [StorageFeeModel](./client.md#interface-storagefeemodel), [TableOutputBasket](./storage.md#interface-tableoutputbasket)
|
|
568
|
+
|
|
569
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
570
|
+
|
|
389
571
|
---
|
|
390
572
|
##### Interface: BitailsConfig
|
|
391
573
|
|
|
@@ -681,6 +863,18 @@ rootFolder: string
|
|
|
681
863
|
|
|
682
864
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
683
865
|
|
|
866
|
+
---
|
|
867
|
+
##### Interface: CanonicalFundingCandidate
|
|
868
|
+
|
|
869
|
+
```ts
|
|
870
|
+
export interface CanonicalFundingCandidate {
|
|
871
|
+
outputId: number;
|
|
872
|
+
satoshis: number;
|
|
873
|
+
}
|
|
874
|
+
```
|
|
875
|
+
|
|
876
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
877
|
+
|
|
684
878
|
---
|
|
685
879
|
##### Interface: CertOpsWallet
|
|
686
880
|
|
|
@@ -1778,6 +1972,22 @@ Argument Details
|
|
|
1778
1972
|
|
|
1779
1973
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
1780
1974
|
|
|
1975
|
+
---
|
|
1976
|
+
##### Interface: CommitActionBatchResult
|
|
1977
|
+
|
|
1978
|
+
```ts
|
|
1979
|
+
export interface CommitActionBatchResult extends StorageProcessActionResults {
|
|
1980
|
+
batchId: string;
|
|
1981
|
+
manifestDigest: string;
|
|
1982
|
+
committedTxids: TXIDHexString[];
|
|
1983
|
+
alreadyCommitted: boolean;
|
|
1984
|
+
}
|
|
1985
|
+
```
|
|
1986
|
+
|
|
1987
|
+
See also: [StorageProcessActionResults](./client.md#interface-storageprocessactionresults)
|
|
1988
|
+
|
|
1989
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
1990
|
+
|
|
1781
1991
|
---
|
|
1782
1992
|
##### Interface: CommitNewTxResults
|
|
1783
1993
|
|
|
@@ -2010,6 +2220,40 @@ export interface ExchangeRatesIoApi {
|
|
|
2010
2220
|
|
|
2011
2221
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2012
2222
|
|
|
2223
|
+
---
|
|
2224
|
+
##### Interface: ExtendActionBatchArgs
|
|
2225
|
+
|
|
2226
|
+
```ts
|
|
2227
|
+
export interface ExtendActionBatchArgs {
|
|
2228
|
+
batchId: string;
|
|
2229
|
+
targetSatoshis: number;
|
|
2230
|
+
requestedOutputs: number;
|
|
2231
|
+
explicitOutpoints: Array<{
|
|
2232
|
+
txid: string;
|
|
2233
|
+
vout: number;
|
|
2234
|
+
}>;
|
|
2235
|
+
includeSourceTransactions: boolean;
|
|
2236
|
+
}
|
|
2237
|
+
```
|
|
2238
|
+
|
|
2239
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2240
|
+
|
|
2241
|
+
---
|
|
2242
|
+
##### Interface: ExtendActionBatchResult
|
|
2243
|
+
|
|
2244
|
+
```ts
|
|
2245
|
+
export interface ExtendActionBatchResult {
|
|
2246
|
+
expiresAt: string;
|
|
2247
|
+
reservedOutputs: ActionBatchFundingOutput[];
|
|
2248
|
+
explicitOutputs: ActionBatchFundingOutput[];
|
|
2249
|
+
inputBeef?: number[] | Uint8Array;
|
|
2250
|
+
}
|
|
2251
|
+
```
|
|
2252
|
+
|
|
2253
|
+
See also: [ActionBatchFundingOutput](./client.md#interface-actionbatchfundingoutput)
|
|
2254
|
+
|
|
2255
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2256
|
+
|
|
2013
2257
|
---
|
|
2014
2258
|
##### Interface: ExtendedVerifiableCertificate
|
|
2015
2259
|
|
|
@@ -3179,6 +3423,20 @@ export interface PendingStorageInput {
|
|
|
3179
3423
|
|
|
3180
3424
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
3181
3425
|
|
|
3426
|
+
---
|
|
3427
|
+
##### Interface: PlannerOutput
|
|
3428
|
+
|
|
3429
|
+
```ts
|
|
3430
|
+
export interface PlannerOutput extends ActionBatchFundingOutput {
|
|
3431
|
+
basketName?: string;
|
|
3432
|
+
tags?: string[];
|
|
3433
|
+
}
|
|
3434
|
+
```
|
|
3435
|
+
|
|
3436
|
+
See also: [ActionBatchFundingOutput](./client.md#interface-actionbatchfundingoutput)
|
|
3437
|
+
|
|
3438
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
3439
|
+
|
|
3182
3440
|
---
|
|
3183
3441
|
##### Interface: PostBeefResult
|
|
3184
3442
|
|
|
@@ -3383,6 +3641,19 @@ status: "success" | "error"
|
|
|
3383
3641
|
|
|
3384
3642
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
3385
3643
|
|
|
3644
|
+
---
|
|
3645
|
+
##### Interface: PrepareActionBatchCommitResult
|
|
3646
|
+
|
|
3647
|
+
```ts
|
|
3648
|
+
export interface PrepareActionBatchCommitResult {
|
|
3649
|
+
missingDigests: string[];
|
|
3650
|
+
maxBlobBytes: number;
|
|
3651
|
+
maxConcurrentUploads: number;
|
|
3652
|
+
}
|
|
3653
|
+
```
|
|
3654
|
+
|
|
3655
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
3656
|
+
|
|
3386
3657
|
---
|
|
3387
3658
|
##### Interface: ProcessSyncChunkResult
|
|
3388
3659
|
|
|
@@ -3603,6 +3874,30 @@ export interface PurgeResults {
|
|
|
3603
3874
|
|
|
3604
3875
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
3605
3876
|
|
|
3877
|
+
---
|
|
3878
|
+
##### Interface: PutActionBatchBlobArgs
|
|
3879
|
+
|
|
3880
|
+
```ts
|
|
3881
|
+
export interface PutActionBatchBlobArgs {
|
|
3882
|
+
batchId: string;
|
|
3883
|
+
digest: string;
|
|
3884
|
+
bytes: number[] | Uint8Array;
|
|
3885
|
+
}
|
|
3886
|
+
```
|
|
3887
|
+
|
|
3888
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
3889
|
+
|
|
3890
|
+
---
|
|
3891
|
+
##### Interface: RenewActionBatchResult
|
|
3892
|
+
|
|
3893
|
+
```ts
|
|
3894
|
+
export interface RenewActionBatchResult {
|
|
3895
|
+
expiresAt: string;
|
|
3896
|
+
}
|
|
3897
|
+
```
|
|
3898
|
+
|
|
3899
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
3900
|
+
|
|
3606
3901
|
---
|
|
3607
3902
|
##### Interface: ReorgResult
|
|
3608
3903
|
|
|
@@ -4309,6 +4604,26 @@ export interface StorageAdminStats {
|
|
|
4309
4604
|
|
|
4310
4605
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
4311
4606
|
|
|
4607
|
+
---
|
|
4608
|
+
##### Interface: StorageCapabilities
|
|
4609
|
+
|
|
4610
|
+
Internal Wallet Toolbox capabilities. These do not extend the BRC-100 wallet interface.
|
|
4611
|
+
|
|
4612
|
+
```ts
|
|
4613
|
+
export interface StorageCapabilities {
|
|
4614
|
+
actionBatch?: {
|
|
4615
|
+
version: 1;
|
|
4616
|
+
maxInlineBytes: number;
|
|
4617
|
+
maxBlobBytes: number;
|
|
4618
|
+
maxConcurrentUploads: number;
|
|
4619
|
+
leaseMs: number;
|
|
4620
|
+
hardLifetimeMs: number;
|
|
4621
|
+
};
|
|
4622
|
+
}
|
|
4623
|
+
```
|
|
4624
|
+
|
|
4625
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
4626
|
+
|
|
4312
4627
|
---
|
|
4313
4628
|
##### Interface: StorageClientOptions
|
|
4314
4629
|
|
|
@@ -4806,27 +5121,54 @@ See also: [EntitySyncMap](./storage.md#interface-entitysyncmap)
|
|
|
4806
5121
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
4807
5122
|
|
|
4808
5123
|
---
|
|
4809
|
-
##### Interface:
|
|
5124
|
+
##### Interface: TableActionBatch
|
|
5125
|
+
|
|
5126
|
+
```ts
|
|
5127
|
+
export interface TableActionBatch extends EntityTimeStamp {
|
|
5128
|
+
actionBatchId: number;
|
|
5129
|
+
userId: number;
|
|
5130
|
+
batchId: string;
|
|
5131
|
+
status: ActionBatchStatus;
|
|
5132
|
+
expiresAt: Date;
|
|
5133
|
+
hardExpiresAt: Date;
|
|
5134
|
+
manifestDigest?: string;
|
|
5135
|
+
uploadDigests?: string;
|
|
5136
|
+
result?: string;
|
|
5137
|
+
}
|
|
5138
|
+
```
|
|
5139
|
+
|
|
5140
|
+
See also: [ActionBatchStatus](./storage.md#type-actionbatchstatus), [EntityTimeStamp](./client.md#interface-entitytimestamp)
|
|
5141
|
+
|
|
5142
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
5143
|
+
|
|
5144
|
+
---
|
|
5145
|
+
##### Interface: TableActionBatchBlob
|
|
5146
|
+
|
|
5147
|
+
```ts
|
|
5148
|
+
export interface TableActionBatchBlob extends EntityTimeStamp {
|
|
5149
|
+
actionBatchBlobId: number;
|
|
5150
|
+
actionBatchId: number;
|
|
5151
|
+
digest: string;
|
|
5152
|
+
bytes: number[];
|
|
5153
|
+
}
|
|
5154
|
+
```
|
|
5155
|
+
|
|
5156
|
+
See also: [EntityTimeStamp](./client.md#interface-entitytimestamp)
|
|
4810
5157
|
|
|
4811
|
-
|
|
5158
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
4812
5159
|
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
overwrite newer authentication state written by another replica.
|
|
5160
|
+
---
|
|
5161
|
+
##### Interface: TableActionBatchOutput
|
|
4816
5162
|
|
|
4817
5163
|
```ts
|
|
4818
|
-
export interface
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
peerIdentityKey?: string | null;
|
|
4822
|
-
isAuthenticated: boolean | number;
|
|
4823
|
-
lastUpdate: number | string;
|
|
4824
|
-
certificatesRequired?: boolean | number | null;
|
|
4825
|
-
certificatesValidated?: boolean | number | null;
|
|
4826
|
-
expiresAt: number | string;
|
|
5164
|
+
export interface TableActionBatchOutput extends EntityTimeStamp {
|
|
5165
|
+
actionBatchId: number;
|
|
5166
|
+
outputId: number;
|
|
4827
5167
|
}
|
|
4828
5168
|
```
|
|
4829
5169
|
|
|
5170
|
+
See also: [EntityTimeStamp](./client.md#interface-entitytimestamp)
|
|
5171
|
+
|
|
4830
5172
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
4831
5173
|
|
|
4832
5174
|
---
|
|
@@ -5580,6 +5922,22 @@ export interface ValidateGenerateChangeSdkParamsResult {
|
|
|
5580
5922
|
|
|
5581
5923
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
5582
5924
|
|
|
5925
|
+
---
|
|
5926
|
+
##### Interface: ValidatedBatchAction
|
|
5927
|
+
|
|
5928
|
+
```ts
|
|
5929
|
+
export interface ValidatedBatchAction {
|
|
5930
|
+
action: ActionBatchCommitAction;
|
|
5931
|
+
tx: Transaction;
|
|
5932
|
+
rawTx: number[];
|
|
5933
|
+
inputBeef: number[];
|
|
5934
|
+
}
|
|
5935
|
+
```
|
|
5936
|
+
|
|
5937
|
+
See also: [ActionBatchCommitAction](./client.md#interface-actionbatchcommitaction)
|
|
5938
|
+
|
|
5939
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
5940
|
+
|
|
5583
5941
|
---
|
|
5584
5942
|
##### Interface: VerifyAndRepairBeefResult
|
|
5585
5943
|
|
|
@@ -5614,10 +5972,22 @@ export interface WalletArgs {
|
|
|
5614
5972
|
lookupResolver?: LookupResolver;
|
|
5615
5973
|
contactSource?: ContactSource;
|
|
5616
5974
|
makeLogger?: MakeWalletLogger;
|
|
5975
|
+
actionBatchMode?: ActionBatchMode;
|
|
5617
5976
|
}
|
|
5618
5977
|
```
|
|
5619
5978
|
|
|
5620
|
-
See also: [Chain](./client.md#type-chain), [ContactSource](./client.md#interface-contactsource), [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)
|
|
5979
|
+
See also: [ActionBatchMode](./client.md#type-actionbatchmode), [Chain](./client.md#type-chain), [ContactSource](./client.md#interface-contactsource), [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)
|
|
5980
|
+
|
|
5981
|
+
###### Property actionBatchMode
|
|
5982
|
+
|
|
5983
|
+
Internal Wallet Toolbox optimization policy. `auto` negotiates the optional
|
|
5984
|
+
action-batch storage capability; `legacy` always uses per-action storage.
|
|
5985
|
+
This does not change the BRC-100 wallet interface.
|
|
5986
|
+
|
|
5987
|
+
```ts
|
|
5988
|
+
actionBatchMode?: ActionBatchMode
|
|
5989
|
+
```
|
|
5990
|
+
See also: [ActionBatchMode](./client.md#type-actionbatchmode)
|
|
5621
5991
|
|
|
5622
5992
|
###### Property contactSource
|
|
5623
5993
|
|
|
@@ -6180,6 +6550,14 @@ export interface WalletStorage {
|
|
|
6180
6550
|
abortAction: (args: AbortActionArgs) => Promise<AbortActionResult>;
|
|
6181
6551
|
createAction: (args: Validation.ValidCreateActionArgs) => Promise<StorageCreateActionResult>;
|
|
6182
6552
|
processAction: (args: StorageProcessActionArgs) => Promise<StorageProcessActionResults>;
|
|
6553
|
+
getCapabilities: () => Promise<StorageCapabilities>;
|
|
6554
|
+
beginActionBatch: (args: BeginActionBatchArgs) => Promise<BeginActionBatchResult>;
|
|
6555
|
+
extendActionBatch: (args: ExtendActionBatchArgs) => Promise<ExtendActionBatchResult>;
|
|
6556
|
+
renewActionBatch: (batchId: string) => Promise<RenewActionBatchResult>;
|
|
6557
|
+
prepareActionBatchCommit: (manifest: ActionBatchManifest) => Promise<PrepareActionBatchCommitResult>;
|
|
6558
|
+
putActionBatchBlob: (args: PutActionBatchBlobArgs) => Promise<void>;
|
|
6559
|
+
commitActionBatch: (manifest: ActionBatchManifest) => Promise<CommitActionBatchResult>;
|
|
6560
|
+
abortActionBatch: (batchId: string) => Promise<AbortActionBatchResult>;
|
|
6183
6561
|
internalizeAction: (args: InternalizeActionArgs) => Promise<InternalizeActionResult>;
|
|
6184
6562
|
findCertificates: (args: FindCertificatesArgs) => Promise<TableCertificateX[]>;
|
|
6185
6563
|
findOutputBaskets: (args: FindOutputBasketsArgs) => Promise<TableOutputBasket[]>;
|
|
@@ -6195,7 +6573,7 @@ export interface WalletStorage {
|
|
|
6195
6573
|
}
|
|
6196
6574
|
```
|
|
6197
6575
|
|
|
6198
|
-
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)
|
|
6576
|
+
See also: [AbortActionBatchResult](./client.md#interface-abortactionbatchresult), [ActionBatchManifest](./client.md#interface-actionbatchmanifest), [AuthId](./client.md#interface-authid), [BeginActionBatchArgs](./client.md#interface-beginactionbatchargs), [BeginActionBatchResult](./client.md#interface-beginactionbatchresult), [CommitActionBatchResult](./client.md#interface-commitactionbatchresult), [ExtendActionBatchArgs](./client.md#interface-extendactionbatchargs), [ExtendActionBatchResult](./client.md#interface-extendactionbatchresult), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [PrepareActionBatchCommitResult](./client.md#interface-prepareactionbatchcommitresult), [PutActionBatchBlobArgs](./client.md#interface-putactionbatchblobargs), [RenewActionBatchResult](./client.md#interface-renewactionbatchresult), [StorageCapabilities](./client.md#interface-storagecapabilities), [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), [abortActionBatch](./storage.md#function-abortactionbatch), [beginActionBatch](./storage.md#function-beginactionbatch), [commitActionBatch](./storage.md#function-commitactionbatch), [createAction](./storage.md#function-createaction), [extendActionBatch](./storage.md#function-extendactionbatch), [internalizeAction](./storage.md#function-internalizeaction), [listActions](./storage.md#function-listactions), [listCertificates](./storage.md#function-listcertificates), [listOutputs](./storage.md#function-listoutputs), [prepareActionBatchCommit](./storage.md#function-prepareactionbatchcommit), [processAction](./storage.md#function-processaction), [putActionBatchBlob](./storage.md#function-putactionbatchblob), [renewActionBatch](./storage.md#function-renewactionbatch)
|
|
6199
6577
|
|
|
6200
6578
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
6201
6579
|
|
|
@@ -6318,6 +6696,14 @@ export interface WalletStorageWriter extends WalletStorageReader {
|
|
|
6318
6696
|
abortAction: (auth: AuthId, args: AbortActionArgs) => Promise<AbortActionResult>;
|
|
6319
6697
|
createAction: (auth: AuthId, args: Validation.ValidCreateActionArgs) => Promise<StorageCreateActionResult>;
|
|
6320
6698
|
processAction: (auth: AuthId, args: StorageProcessActionArgs) => Promise<StorageProcessActionResults>;
|
|
6699
|
+
getCapabilities: () => Promise<StorageCapabilities>;
|
|
6700
|
+
beginActionBatch: (auth: AuthId, args: BeginActionBatchArgs) => Promise<BeginActionBatchResult>;
|
|
6701
|
+
extendActionBatch: (auth: AuthId, args: ExtendActionBatchArgs) => Promise<ExtendActionBatchResult>;
|
|
6702
|
+
renewActionBatch: (auth: AuthId, batchId: string) => Promise<RenewActionBatchResult>;
|
|
6703
|
+
prepareActionBatchCommit: (auth: AuthId, manifest: ActionBatchManifest) => Promise<PrepareActionBatchCommitResult>;
|
|
6704
|
+
putActionBatchBlob: (auth: AuthId, args: PutActionBatchBlobArgs) => Promise<void>;
|
|
6705
|
+
commitActionBatch: (auth: AuthId, manifest: ActionBatchManifest) => Promise<CommitActionBatchResult>;
|
|
6706
|
+
abortActionBatch: (auth: AuthId, batchId: string) => Promise<AbortActionBatchResult>;
|
|
6321
6707
|
internalizeAction: (auth: AuthId, args: InternalizeActionArgs) => Promise<StorageInternalizeActionResult>;
|
|
6322
6708
|
insertCertificateAuth: (auth: AuthId, certificate: TableCertificateX) => Promise<number>;
|
|
6323
6709
|
relinquishCertificate: (auth: AuthId, args: RelinquishCertificateArgs) => Promise<number>;
|
|
@@ -6325,7 +6711,7 @@ export interface WalletStorageWriter extends WalletStorageReader {
|
|
|
6325
6711
|
}
|
|
6326
6712
|
```
|
|
6327
6713
|
|
|
6328
|
-
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)
|
|
6714
|
+
See also: [AbortActionBatchResult](./client.md#interface-abortactionbatchresult), [ActionBatchManifest](./client.md#interface-actionbatchmanifest), [AuthId](./client.md#interface-authid), [BeginActionBatchArgs](./client.md#interface-beginactionbatchargs), [BeginActionBatchResult](./client.md#interface-beginactionbatchresult), [CommitActionBatchResult](./client.md#interface-commitactionbatchresult), [ExtendActionBatchArgs](./client.md#interface-extendactionbatchargs), [ExtendActionBatchResult](./client.md#interface-extendactionbatchresult), [PrepareActionBatchCommitResult](./client.md#interface-prepareactionbatchcommitresult), [PutActionBatchBlobArgs](./client.md#interface-putactionbatchblobargs), [RenewActionBatchResult](./client.md#interface-renewactionbatchresult), [StorageCapabilities](./client.md#interface-storagecapabilities), [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), [abortActionBatch](./storage.md#function-abortactionbatch), [beginActionBatch](./storage.md#function-beginactionbatch), [commitActionBatch](./storage.md#function-commitactionbatch), [createAction](./storage.md#function-createaction), [extendActionBatch](./storage.md#function-extendactionbatch), [internalizeAction](./storage.md#function-internalizeaction), [prepareActionBatchCommit](./storage.md#function-prepareactionbatchcommit), [processAction](./storage.md#function-processaction), [putActionBatchBlob](./storage.md#function-putactionbatchblob), [renewActionBatch](./storage.md#function-renewactionbatch)
|
|
6329
6715
|
|
|
6330
6716
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
6331
6717
|
|
|
@@ -6407,37 +6793,33 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
6407
6793
|
|
|
6408
6794
|
| | | |
|
|
6409
6795
|
| --- | --- | --- |
|
|
6410
|
-
| [ARC](#class-arc) | [
|
|
6411
|
-
| [
|
|
6412
|
-
| [
|
|
6413
|
-
| [
|
|
6414
|
-
| [
|
|
6415
|
-
| [
|
|
6416
|
-
| [
|
|
6417
|
-
| [
|
|
6418
|
-
| [
|
|
6419
|
-
| [
|
|
6420
|
-
| [
|
|
6421
|
-
| [
|
|
6422
|
-
| [
|
|
6423
|
-
| [
|
|
6424
|
-
| [
|
|
6425
|
-
| [
|
|
6426
|
-
| [
|
|
6427
|
-
| [
|
|
6428
|
-
| [
|
|
6429
|
-
| [
|
|
6430
|
-
| [
|
|
6431
|
-
| [
|
|
6432
|
-
| [
|
|
6433
|
-
| [
|
|
6434
|
-
| [
|
|
6435
|
-
| [
|
|
6436
|
-
| [
|
|
6437
|
-
| [EntityProvenTxReq](#class-entityproventxreq) | [TaskMonitorCallHistory](#class-taskmonitorcallhistory) | [WhatsOnChain](#class-whatsonchain) |
|
|
6438
|
-
| [EntitySyncState](#class-entitysyncstate) | [TaskNewHeader](#class-tasknewheader) | [WhatsOnChainNoServices](#class-whatsonchainnoservices) |
|
|
6439
|
-
| [EntityTransaction](#class-entitytransaction) | [TaskPurge](#class-taskpurge) | |
|
|
6440
|
-
| [EntityTxLabel](#class-entitytxlabel) | [TaskReorg](#class-taskreorg) | |
|
|
6796
|
+
| [ARC](#class-arc) | [MockServices](#class-mockservices) | [TaskReviewUtxos](#class-taskreviewutxos) |
|
|
6797
|
+
| [ActionBatchController](#class-actionbatchcontroller) | [Monitor](#class-monitor) | [TaskSendWaiting](#class-tasksendwaiting) |
|
|
6798
|
+
| [ArcSSEClient](#class-arcsseclient) | [PrivilegedKeyManager](#class-privilegedkeymanager) | [TaskUnFail](#class-taskunfail) |
|
|
6799
|
+
| [Arcade](#class-arcade) | [ScriptTemplateBRC29](#class-scripttemplatebrc29) | [WERR_BAD_REQUEST](#class-werr_bad_request) |
|
|
6800
|
+
| [Bitails](#class-bitails) | [SdkWhatsOnChain](#class-sdkwhatsonchain) | [WERR_BROADCAST_UNAVAILABLE](#class-werr_broadcast_unavailable) |
|
|
6801
|
+
| [BulkFileDataManager](#class-bulkfiledatamanager) | [ServiceCollection](#class-servicecollection) | [WERR_INSUFFICIENT_FUNDS](#class-werr_insufficient_funds) |
|
|
6802
|
+
| [BulkFileDataReader](#class-bulkfiledatareader) | [Services](#class-services) | [WERR_INTERNAL](#class-werr_internal) |
|
|
6803
|
+
| [BulkFilesReader](#class-bulkfilesreader) | [SingleWriterMultiReaderLock](#class-singlewritermultireaderlock) | [WERR_INVALID_MERKLE_ROOT](#class-werr_invalid_merkle_root) |
|
|
6804
|
+
| [BulkFilesReaderFs](#class-bulkfilesreaderfs) | [StorageClient](#class-storageclient) | [WERR_INVALID_OPERATION](#class-werr_invalid_operation) |
|
|
6805
|
+
| [BulkFilesReaderStorage](#class-bulkfilesreaderstorage) | [StorageClientBase](#class-storageclientbase) | [WERR_INVALID_PARAMETER](#class-werr_invalid_parameter) |
|
|
6806
|
+
| [BulkHeaderFile](#class-bulkheaderfile) | [StorageProvider](#class-storageprovider) | [WERR_INVALID_PUBLIC_KEY](#class-werr_invalid_public_key) |
|
|
6807
|
+
| [BulkHeaderFileFs](#class-bulkheaderfilefs) | [StorageReader](#class-storagereader) | [WERR_MISSING_PARAMETER](#class-werr_missing_parameter) |
|
|
6808
|
+
| [BulkHeaderFileStorage](#class-bulkheaderfilestorage) | [StorageReaderWriter](#class-storagereaderwriter) | [WERR_NETWORK_CHAIN](#class-werr_network_chain) |
|
|
6809
|
+
| [BulkHeaderFiles](#class-bulkheaderfiles) | [TaskArcadeSSE](#class-taskarcadesse) | [WERR_NOT_ACTIVE](#class-werr_not_active) |
|
|
6810
|
+
| [ChaintracksChainTracker](#class-chaintrackschaintracker) | [TaskCheckForProofs](#class-taskcheckforproofs) | [WERR_NOT_IMPLEMENTED](#class-werr_not_implemented) |
|
|
6811
|
+
| [ChaintracksFetch](#class-chaintracksfetch) | [TaskCheckNoSends](#class-taskchecknosends) | [WERR_REVIEW_ACTIONS](#class-werr_review_actions) |
|
|
6812
|
+
| [ChaintracksFetchError](#class-chaintracksfetcherror) | [TaskCleanupActionBatches](#class-taskcleanupactionbatches) | [WERR_UNAUTHORIZED](#class-werr_unauthorized) |
|
|
6813
|
+
| [ChaintracksServiceClient](#class-chaintracksserviceclient) | [TaskClock](#class-taskclock) | [Wallet](#class-wallet) |
|
|
6814
|
+
| [ChaintracksStorageBase](#class-chaintracksstoragebase) | [TaskFailAbandoned](#class-taskfailabandoned) | [WalletError](#class-walleterror) |
|
|
6815
|
+
| [EntityBase](#class-entitybase) | [TaskMineBlock](#class-taskmineblock) | [WalletLogger](#class-walletlogger) |
|
|
6816
|
+
| [EntityProvenTx](#class-entityproventx) | [TaskMonitorCallHistory](#class-taskmonitorcallhistory) | [WalletMonitorTask](#class-walletmonitortask) |
|
|
6817
|
+
| [EntityProvenTxReq](#class-entityproventxreq) | [TaskNewHeader](#class-tasknewheader) | [WalletSettingsManager](#class-walletsettingsmanager) |
|
|
6818
|
+
| [HeightRange](#class-heightrange) | [TaskPurge](#class-taskpurge) | [WalletSigner](#class-walletsigner) |
|
|
6819
|
+
| [MockChainMigrations](#class-mockchainmigrations) | [TaskReorg](#class-taskreorg) | [WalletStorageManager](#class-walletstoragemanager) |
|
|
6820
|
+
| [MockChainStorage](#class-mockchainstorage) | [TaskReviewDoubleSpends](#class-taskreviewdoublespends) | [WhatsOnChain](#class-whatsonchain) |
|
|
6821
|
+
| [MockChainTracker](#class-mockchaintracker) | [TaskReviewProvenTxs](#class-taskreviewproventxs) | [WhatsOnChainNoServices](#class-whatsonchainnoservices) |
|
|
6822
|
+
| [MockMiner](#class-mockminer) | [TaskReviewStatus](#class-taskreviewstatus) | |
|
|
6441
6823
|
|
|
6442
6824
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
6443
6825
|
|
|
@@ -6536,6 +6918,27 @@ See also: [PostTxResultForTxid](./client.md#interface-posttxresultfortxid)
|
|
|
6536
6918
|
|
|
6537
6919
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
6538
6920
|
|
|
6921
|
+
---
|
|
6922
|
+
##### Class: ActionBatchController
|
|
6923
|
+
|
|
6924
|
+
```ts
|
|
6925
|
+
export class ActionBatchController {
|
|
6926
|
+
constructor(private readonly wallet: Wallet, readonly mode: ActionBatchMode)
|
|
6927
|
+
get hasWorkspace(): boolean
|
|
6928
|
+
overlayListActions(persisted: ListActionsResult, args: Validation.ValidListActionsArgs): ListActionsResult
|
|
6929
|
+
overlayListOutputs(persisted: ListOutputsResult, args: Validation.ValidListOutputsArgs): ListOutputsResult
|
|
6930
|
+
async plan(args: Validation.ValidCreateActionArgs): Promise<StorageCreateActionResult | undefined>
|
|
6931
|
+
async process(prior: PendingSignAction | undefined, args: Validation.ValidProcessActionArgs): Promise<StorageProcessActionResults | undefined>
|
|
6932
|
+
ownsReference(reference: string): boolean
|
|
6933
|
+
async abort(): Promise<boolean>
|
|
6934
|
+
async abortAction(referenceOrTxid: string): Promise<boolean>
|
|
6935
|
+
}
|
|
6936
|
+
```
|
|
6937
|
+
|
|
6938
|
+
See also: [ActionBatchMode](./client.md#type-actionbatchmode), [PendingSignAction](./client.md#interface-pendingsignaction), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [Wallet](./client.md#class-wallet)
|
|
6939
|
+
|
|
6940
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
6941
|
+
|
|
6539
6942
|
---
|
|
6540
6943
|
##### Class: ArcSSEClient
|
|
6541
6944
|
|
|
@@ -7249,380 +7652,58 @@ abstract updateApi(): void
|
|
|
7249
7652
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7250
7653
|
|
|
7251
7654
|
---
|
|
7252
|
-
##### Class:
|
|
7655
|
+
##### Class: EntityProvenTx
|
|
7253
7656
|
|
|
7254
7657
|
```ts
|
|
7255
|
-
export class
|
|
7256
|
-
|
|
7658
|
+
export class EntityProvenTx extends EntityBase<TableProvenTx> {
|
|
7659
|
+
static async fromTxid(txid: string, services: WalletServices, rawTx?: number[]): Promise<ProvenTxFromTxidResult>
|
|
7660
|
+
constructor(api?: TableProvenTx)
|
|
7257
7661
|
override updateApi(): void
|
|
7258
|
-
|
|
7259
|
-
|
|
7662
|
+
getMerklePath(): MerklePath
|
|
7663
|
+
_mp?: MerklePath;
|
|
7664
|
+
get provenTxId()
|
|
7665
|
+
set provenTxId(v: number)
|
|
7260
7666
|
get created_at()
|
|
7261
7667
|
set created_at(v: Date)
|
|
7262
7668
|
get updated_at()
|
|
7263
7669
|
set updated_at(v: Date)
|
|
7264
|
-
get
|
|
7265
|
-
set
|
|
7266
|
-
get
|
|
7267
|
-
set
|
|
7268
|
-
get
|
|
7269
|
-
set
|
|
7270
|
-
get
|
|
7271
|
-
set
|
|
7272
|
-
get
|
|
7273
|
-
set
|
|
7274
|
-
get
|
|
7275
|
-
set
|
|
7276
|
-
get
|
|
7277
|
-
set
|
|
7278
|
-
get
|
|
7279
|
-
set signature(v: string)
|
|
7280
|
-
get isDeleted()
|
|
7281
|
-
set isDeleted(v: boolean)
|
|
7282
|
-
override get id(): number
|
|
7670
|
+
get txid()
|
|
7671
|
+
set txid(v: string)
|
|
7672
|
+
get height()
|
|
7673
|
+
set height(v: number)
|
|
7674
|
+
get index()
|
|
7675
|
+
set index(v: number)
|
|
7676
|
+
get merklePath()
|
|
7677
|
+
set merklePath(v: number[])
|
|
7678
|
+
get rawTx()
|
|
7679
|
+
set rawTx(v: number[])
|
|
7680
|
+
get blockHash()
|
|
7681
|
+
set blockHash(v: string)
|
|
7682
|
+
get merkleRoot()
|
|
7683
|
+
set merkleRoot(v: string)
|
|
7684
|
+
override get id()
|
|
7283
7685
|
override set id(v: number)
|
|
7284
7686
|
override get entityName(): string
|
|
7285
7687
|
override get entityTable(): string
|
|
7286
|
-
override equals(ei:
|
|
7287
|
-
static async mergeFind(storage: EntityStorage, userId: number, ei:
|
|
7688
|
+
override equals(ei: TableProvenTx, syncMap?: SyncMap | undefined): boolean
|
|
7689
|
+
static async mergeFind(storage: EntityStorage, userId: number, ei: TableProvenTx, syncMap: SyncMap, trx?: TrxToken): Promise<{
|
|
7288
7690
|
found: boolean;
|
|
7289
|
-
eo:
|
|
7691
|
+
eo: EntityProvenTx;
|
|
7290
7692
|
eiId: number;
|
|
7291
7693
|
}>
|
|
7292
7694
|
override async mergeNew(storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: TrxToken): Promise<void>
|
|
7293
|
-
override async mergeExisting(storage: EntityStorage, since: Date | undefined, ei:
|
|
7695
|
+
override async mergeExisting(storage: EntityStorage, since: Date | undefined, ei: TableProvenTx, syncMap: SyncMap, trx?: TrxToken): Promise<boolean>
|
|
7696
|
+
static readonly getProofAttemptsLimit = 8;
|
|
7697
|
+
static readonly getProofMinutes = 60;
|
|
7698
|
+
static async fromReq(req: EntityProvenTxReq, gmpResult: GetMerklePathResult, countsAsAttempt: boolean, maxRebroadcastAttempts = 0): Promise<EntityProvenTx | undefined>
|
|
7294
7699
|
}
|
|
7295
7700
|
```
|
|
7296
7701
|
|
|
7297
|
-
See also: [EntityBase](./storage.md#class-entitybase), [EntityStorage](./storage.md#type-entitystorage), [SyncMap](./storage.md#interface-syncmap), [
|
|
7702
|
+
See also: [EntityBase](./storage.md#class-entitybase), [EntityProvenTxReq](./storage.md#class-entityproventxreq), [EntityStorage](./storage.md#type-entitystorage), [GetMerklePathResult](./client.md#interface-getmerklepathresult), [ProvenTxFromTxidResult](./storage.md#interface-proventxfromtxidresult), [SyncMap](./storage.md#interface-syncmap), [TableProvenTx](./storage.md#interface-tableproventx), [TrxToken](./client.md#interface-trxtoken), [WalletServices](./client.md#interface-walletservices), [blockHash](./services.md#function-blockhash)
|
|
7298
7703
|
|
|
7299
|
-
|
|
7704
|
+
###### Property getProofAttemptsLimit
|
|
7300
7705
|
|
|
7301
|
-
|
|
7302
|
-
##### Class: EntityCertificateField
|
|
7303
|
-
|
|
7304
|
-
```ts
|
|
7305
|
-
export class EntityCertificateField extends EntityBase<TableCertificateField> {
|
|
7306
|
-
constructor(api?: TableCertificateField)
|
|
7307
|
-
override updateApi(): void
|
|
7308
|
-
get userId()
|
|
7309
|
-
set userId(v: number)
|
|
7310
|
-
get certificateId()
|
|
7311
|
-
set certificateId(v: number)
|
|
7312
|
-
get created_at()
|
|
7313
|
-
set created_at(v: Date)
|
|
7314
|
-
get updated_at()
|
|
7315
|
-
set updated_at(v: Date)
|
|
7316
|
-
get fieldName()
|
|
7317
|
-
set fieldName(v: string)
|
|
7318
|
-
get fieldValue()
|
|
7319
|
-
set fieldValue(v: string)
|
|
7320
|
-
get masterKey()
|
|
7321
|
-
set masterKey(v: string)
|
|
7322
|
-
override get id(): number
|
|
7323
|
-
override get entityName(): string
|
|
7324
|
-
override get entityTable(): string
|
|
7325
|
-
override equals(ei: TableCertificateField, syncMap?: SyncMap | undefined): boolean
|
|
7326
|
-
static async mergeFind(storage: EntityStorage, userId: number, ei: TableCertificateField, syncMap: SyncMap, trx?: TrxToken): Promise<{
|
|
7327
|
-
found: boolean;
|
|
7328
|
-
eo: EntityCertificateField;
|
|
7329
|
-
eiId: number;
|
|
7330
|
-
}>
|
|
7331
|
-
override async mergeNew(storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: TrxToken): Promise<void>
|
|
7332
|
-
override async mergeExisting(storage: EntityStorage, since: Date | undefined, ei: TableCertificateField, syncMap: SyncMap, trx?: TrxToken): Promise<boolean>
|
|
7333
|
-
}
|
|
7334
|
-
```
|
|
7335
|
-
|
|
7336
|
-
See also: [EntityBase](./storage.md#class-entitybase), [EntityStorage](./storage.md#type-entitystorage), [SyncMap](./storage.md#interface-syncmap), [TableCertificateField](./storage.md#interface-tablecertificatefield), [TrxToken](./client.md#interface-trxtoken)
|
|
7337
|
-
|
|
7338
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7339
|
-
|
|
7340
|
-
---
|
|
7341
|
-
##### Class: EntityCommission
|
|
7342
|
-
|
|
7343
|
-
```ts
|
|
7344
|
-
export class EntityCommission extends EntityBase<TableCommission> {
|
|
7345
|
-
constructor(api?: TableCommission)
|
|
7346
|
-
override updateApi(): void
|
|
7347
|
-
get commissionId()
|
|
7348
|
-
set commissionId(v: number)
|
|
7349
|
-
get created_at()
|
|
7350
|
-
set created_at(v: Date)
|
|
7351
|
-
get updated_at()
|
|
7352
|
-
set updated_at(v: Date)
|
|
7353
|
-
get transactionId()
|
|
7354
|
-
set transactionId(v: number)
|
|
7355
|
-
get userId()
|
|
7356
|
-
set userId(v: number)
|
|
7357
|
-
get isRedeemed()
|
|
7358
|
-
set isRedeemed(v: boolean)
|
|
7359
|
-
get keyOffset()
|
|
7360
|
-
set keyOffset(v: string)
|
|
7361
|
-
get lockingScript()
|
|
7362
|
-
set lockingScript(v: number[])
|
|
7363
|
-
get satoshis()
|
|
7364
|
-
set satoshis(v: number)
|
|
7365
|
-
override get id(): number
|
|
7366
|
-
override set id(v: number)
|
|
7367
|
-
override get entityName(): string
|
|
7368
|
-
override get entityTable(): string
|
|
7369
|
-
override equals(ei: TableCommission, syncMap?: SyncMap | undefined): boolean
|
|
7370
|
-
static async mergeFind(storage: EntityStorage, userId: number, ei: TableCommission, syncMap: SyncMap, trx?: TrxToken): Promise<{
|
|
7371
|
-
found: boolean;
|
|
7372
|
-
eo: EntityCommission;
|
|
7373
|
-
eiId: number;
|
|
7374
|
-
}>
|
|
7375
|
-
override async mergeNew(storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: TrxToken): Promise<void>
|
|
7376
|
-
override async mergeExisting(storage: EntityStorage, since: Date | undefined, ei: TableCommission, syncMap: SyncMap, trx?: TrxToken): Promise<boolean>
|
|
7377
|
-
}
|
|
7378
|
-
```
|
|
7379
|
-
|
|
7380
|
-
See also: [EntityBase](./storage.md#class-entitybase), [EntityStorage](./storage.md#type-entitystorage), [SyncMap](./storage.md#interface-syncmap), [TableCommission](./storage.md#interface-tablecommission), [TrxToken](./client.md#interface-trxtoken)
|
|
7381
|
-
|
|
7382
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7383
|
-
|
|
7384
|
-
---
|
|
7385
|
-
##### Class: EntityOutput
|
|
7386
|
-
|
|
7387
|
-
```ts
|
|
7388
|
-
export class EntityOutput extends EntityBase<TableOutput> {
|
|
7389
|
-
constructor(api?: TableOutput)
|
|
7390
|
-
override updateApi(): void
|
|
7391
|
-
get outputId()
|
|
7392
|
-
set outputId(v: number)
|
|
7393
|
-
get created_at()
|
|
7394
|
-
set created_at(v: Date)
|
|
7395
|
-
get updated_at()
|
|
7396
|
-
set updated_at(v: Date)
|
|
7397
|
-
get userId()
|
|
7398
|
-
set userId(v: number)
|
|
7399
|
-
get transactionId()
|
|
7400
|
-
set transactionId(v: number)
|
|
7401
|
-
get basketId()
|
|
7402
|
-
set basketId(v: number | undefined)
|
|
7403
|
-
get spentBy()
|
|
7404
|
-
set spentBy(v: number | undefined)
|
|
7405
|
-
get vout()
|
|
7406
|
-
set vout(v: number)
|
|
7407
|
-
get satoshis()
|
|
7408
|
-
set satoshis(v: number)
|
|
7409
|
-
get outputDescription()
|
|
7410
|
-
set outputDescription(v: string)
|
|
7411
|
-
get spendable()
|
|
7412
|
-
set spendable(v: boolean)
|
|
7413
|
-
get change()
|
|
7414
|
-
set change(v: boolean)
|
|
7415
|
-
get txid()
|
|
7416
|
-
set txid(v: string | undefined)
|
|
7417
|
-
get type()
|
|
7418
|
-
set type(v: string)
|
|
7419
|
-
get providedBy()
|
|
7420
|
-
set providedBy(v: StorageProvidedBy)
|
|
7421
|
-
get purpose()
|
|
7422
|
-
set purpose(v: string)
|
|
7423
|
-
get spendingDescription()
|
|
7424
|
-
set spendingDescription(v: string | undefined)
|
|
7425
|
-
get derivationPrefix()
|
|
7426
|
-
set derivationPrefix(v: string | undefined)
|
|
7427
|
-
get derivationSuffix()
|
|
7428
|
-
set derivationSuffix(v: string | undefined)
|
|
7429
|
-
get senderIdentityKey()
|
|
7430
|
-
set senderIdentityKey(v: string | undefined)
|
|
7431
|
-
get customInstructions()
|
|
7432
|
-
set customInstructions(v: string | undefined)
|
|
7433
|
-
get lockingScript()
|
|
7434
|
-
set lockingScript(v: number[] | undefined)
|
|
7435
|
-
get scriptLength()
|
|
7436
|
-
set scriptLength(v: number | undefined)
|
|
7437
|
-
get scriptOffset()
|
|
7438
|
-
set scriptOffset(v: number | undefined)
|
|
7439
|
-
override get id(): number
|
|
7440
|
-
override set id(v: number)
|
|
7441
|
-
override get entityName(): string
|
|
7442
|
-
override get entityTable(): string
|
|
7443
|
-
override equals(ei: TableOutput, syncMap?: SyncMap | undefined): boolean
|
|
7444
|
-
static async mergeFind(storage: EntityStorage, userId: number, ei: TableOutput, syncMap: SyncMap, trx?: TrxToken): Promise<{
|
|
7445
|
-
found: boolean;
|
|
7446
|
-
eo: EntityOutput;
|
|
7447
|
-
eiId: number;
|
|
7448
|
-
}>
|
|
7449
|
-
override async mergeNew(storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: TrxToken): Promise<void>
|
|
7450
|
-
override async mergeExisting(storage: EntityStorage, since: Date | undefined, ei: TableOutput, syncMap: SyncMap, trx?: TrxToken): Promise<boolean>
|
|
7451
|
-
}
|
|
7452
|
-
```
|
|
7453
|
-
|
|
7454
|
-
See also: [EntityBase](./storage.md#class-entitybase), [EntityStorage](./storage.md#type-entitystorage), [StorageProvidedBy](./client.md#type-storageprovidedby), [SyncMap](./storage.md#interface-syncmap), [TableOutput](./storage.md#interface-tableoutput), [TrxToken](./client.md#interface-trxtoken)
|
|
7455
|
-
|
|
7456
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7457
|
-
|
|
7458
|
-
---
|
|
7459
|
-
##### Class: EntityOutputBasket
|
|
7460
|
-
|
|
7461
|
-
```ts
|
|
7462
|
-
export class EntityOutputBasket extends EntityBase<TableOutputBasket> {
|
|
7463
|
-
constructor(api?: TableOutputBasket)
|
|
7464
|
-
get basketId()
|
|
7465
|
-
set basketId(v: number)
|
|
7466
|
-
get created_at()
|
|
7467
|
-
set created_at(v: Date)
|
|
7468
|
-
get updated_at()
|
|
7469
|
-
set updated_at(v: Date)
|
|
7470
|
-
get userId()
|
|
7471
|
-
set userId(v: number)
|
|
7472
|
-
get name()
|
|
7473
|
-
set name(v: string)
|
|
7474
|
-
get numberOfDesiredUTXOs()
|
|
7475
|
-
set numberOfDesiredUTXOs(v: number)
|
|
7476
|
-
get minimumDesiredUTXOValue()
|
|
7477
|
-
set minimumDesiredUTXOValue(v: number)
|
|
7478
|
-
get isDeleted()
|
|
7479
|
-
set isDeleted(v: boolean)
|
|
7480
|
-
override get id()
|
|
7481
|
-
override set id(v: number)
|
|
7482
|
-
override get entityName(): string
|
|
7483
|
-
override get entityTable(): string
|
|
7484
|
-
override updateApi(): void
|
|
7485
|
-
override equals(ei: TableOutputBasket, syncMap?: SyncMap): boolean
|
|
7486
|
-
static async mergeFind(storage: EntityStorage, userId: number, ei: TableOutputBasket, syncMap: SyncMap, trx?: TrxToken): Promise<{
|
|
7487
|
-
found: boolean;
|
|
7488
|
-
eo: EntityOutputBasket;
|
|
7489
|
-
eiId: number;
|
|
7490
|
-
}>
|
|
7491
|
-
override async mergeNew(storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: TrxToken): Promise<void>
|
|
7492
|
-
override async mergeExisting(storage: EntityStorage, since: Date | undefined, ei: TableOutputBasket, syncMap: SyncMap, trx?: TrxToken): Promise<boolean>
|
|
7493
|
-
}
|
|
7494
|
-
```
|
|
7495
|
-
|
|
7496
|
-
See also: [EntityBase](./storage.md#class-entitybase), [EntityStorage](./storage.md#type-entitystorage), [SyncMap](./storage.md#interface-syncmap), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TrxToken](./client.md#interface-trxtoken)
|
|
7497
|
-
|
|
7498
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7499
|
-
|
|
7500
|
-
---
|
|
7501
|
-
##### Class: EntityOutputTag
|
|
7502
|
-
|
|
7503
|
-
```ts
|
|
7504
|
-
export class EntityOutputTag extends EntityBase<TableOutputTag> {
|
|
7505
|
-
constructor(api?: TableOutputTag)
|
|
7506
|
-
override updateApi(): void
|
|
7507
|
-
get outputTagId()
|
|
7508
|
-
set outputTagId(v: number)
|
|
7509
|
-
get created_at()
|
|
7510
|
-
set created_at(v: Date)
|
|
7511
|
-
get updated_at()
|
|
7512
|
-
set updated_at(v: Date)
|
|
7513
|
-
get tag()
|
|
7514
|
-
set tag(v: string)
|
|
7515
|
-
get userId()
|
|
7516
|
-
set userId(v: number)
|
|
7517
|
-
get isDeleted()
|
|
7518
|
-
set isDeleted(v: boolean)
|
|
7519
|
-
override get id(): number
|
|
7520
|
-
override set id(v: number)
|
|
7521
|
-
override get entityName(): string
|
|
7522
|
-
override get entityTable(): string
|
|
7523
|
-
override equals(ei: TableOutputTag, syncMap?: SyncMap | undefined): boolean
|
|
7524
|
-
static async mergeFind(storage: EntityStorage, userId: number, ei: TableOutputTag, syncMap: SyncMap, trx?: TrxToken): Promise<{
|
|
7525
|
-
found: boolean;
|
|
7526
|
-
eo: EntityOutputTag;
|
|
7527
|
-
eiId: number;
|
|
7528
|
-
}>
|
|
7529
|
-
override async mergeNew(storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: TrxToken): Promise<void>
|
|
7530
|
-
override async mergeExisting(storage: EntityStorage, since: Date | undefined, ei: TableOutputTag, syncMap: SyncMap, trx?: TrxToken): Promise<boolean>
|
|
7531
|
-
}
|
|
7532
|
-
```
|
|
7533
|
-
|
|
7534
|
-
See also: [EntityBase](./storage.md#class-entitybase), [EntityStorage](./storage.md#type-entitystorage), [SyncMap](./storage.md#interface-syncmap), [TableOutputTag](./storage.md#interface-tableoutputtag), [TrxToken](./client.md#interface-trxtoken)
|
|
7535
|
-
|
|
7536
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7537
|
-
|
|
7538
|
-
---
|
|
7539
|
-
##### Class: EntityOutputTagMap
|
|
7540
|
-
|
|
7541
|
-
```ts
|
|
7542
|
-
export class EntityOutputTagMap extends EntityBase<TableOutputTagMap> {
|
|
7543
|
-
constructor(api?: TableOutputTagMap)
|
|
7544
|
-
override updateApi(): void
|
|
7545
|
-
get outputTagId()
|
|
7546
|
-
set outputTagId(v: number)
|
|
7547
|
-
get outputId()
|
|
7548
|
-
set outputId(v: number)
|
|
7549
|
-
get created_at()
|
|
7550
|
-
set created_at(v: Date)
|
|
7551
|
-
get updated_at()
|
|
7552
|
-
set updated_at(v: Date)
|
|
7553
|
-
get isDeleted()
|
|
7554
|
-
set isDeleted(v: boolean)
|
|
7555
|
-
override get id(): number
|
|
7556
|
-
override get entityName(): string
|
|
7557
|
-
override get entityTable(): string
|
|
7558
|
-
override equals(ei: TableOutputTagMap, syncMap?: SyncMap | undefined): boolean
|
|
7559
|
-
static async mergeFind(storage: EntityStorage, userId: number, ei: TableOutputTagMap, syncMap: SyncMap, trx?: TrxToken): Promise<{
|
|
7560
|
-
found: boolean;
|
|
7561
|
-
eo: EntityOutputTagMap;
|
|
7562
|
-
eiId: number;
|
|
7563
|
-
}>
|
|
7564
|
-
override async mergeNew(storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: TrxToken): Promise<void>
|
|
7565
|
-
override async mergeExisting(storage: EntityStorage, since: Date | undefined, ei: TableOutputTagMap, syncMap: SyncMap, trx?: TrxToken): Promise<boolean>
|
|
7566
|
-
}
|
|
7567
|
-
```
|
|
7568
|
-
|
|
7569
|
-
See also: [EntityBase](./storage.md#class-entitybase), [EntityStorage](./storage.md#type-entitystorage), [SyncMap](./storage.md#interface-syncmap), [TableOutputTagMap](./storage.md#interface-tableoutputtagmap), [TrxToken](./client.md#interface-trxtoken)
|
|
7570
|
-
|
|
7571
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7572
|
-
|
|
7573
|
-
---
|
|
7574
|
-
##### Class: EntityProvenTx
|
|
7575
|
-
|
|
7576
|
-
```ts
|
|
7577
|
-
export class EntityProvenTx extends EntityBase<TableProvenTx> {
|
|
7578
|
-
static async fromTxid(txid: string, services: WalletServices, rawTx?: number[]): Promise<ProvenTxFromTxidResult>
|
|
7579
|
-
constructor(api?: TableProvenTx)
|
|
7580
|
-
override updateApi(): void
|
|
7581
|
-
getMerklePath(): MerklePath
|
|
7582
|
-
_mp?: MerklePath;
|
|
7583
|
-
get provenTxId()
|
|
7584
|
-
set provenTxId(v: number)
|
|
7585
|
-
get created_at()
|
|
7586
|
-
set created_at(v: Date)
|
|
7587
|
-
get updated_at()
|
|
7588
|
-
set updated_at(v: Date)
|
|
7589
|
-
get txid()
|
|
7590
|
-
set txid(v: string)
|
|
7591
|
-
get height()
|
|
7592
|
-
set height(v: number)
|
|
7593
|
-
get index()
|
|
7594
|
-
set index(v: number)
|
|
7595
|
-
get merklePath()
|
|
7596
|
-
set merklePath(v: number[])
|
|
7597
|
-
get rawTx()
|
|
7598
|
-
set rawTx(v: number[])
|
|
7599
|
-
get blockHash()
|
|
7600
|
-
set blockHash(v: string)
|
|
7601
|
-
get merkleRoot()
|
|
7602
|
-
set merkleRoot(v: string)
|
|
7603
|
-
override get id()
|
|
7604
|
-
override set id(v: number)
|
|
7605
|
-
override get entityName(): string
|
|
7606
|
-
override get entityTable(): string
|
|
7607
|
-
override equals(ei: TableProvenTx, syncMap?: SyncMap | undefined): boolean
|
|
7608
|
-
static async mergeFind(storage: EntityStorage, userId: number, ei: TableProvenTx, syncMap: SyncMap, trx?: TrxToken): Promise<{
|
|
7609
|
-
found: boolean;
|
|
7610
|
-
eo: EntityProvenTx;
|
|
7611
|
-
eiId: number;
|
|
7612
|
-
}>
|
|
7613
|
-
override async mergeNew(storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: TrxToken): Promise<void>
|
|
7614
|
-
override async mergeExisting(storage: EntityStorage, since: Date | undefined, ei: TableProvenTx, syncMap: SyncMap, trx?: TrxToken): Promise<boolean>
|
|
7615
|
-
static readonly getProofAttemptsLimit = 8;
|
|
7616
|
-
static readonly getProofMinutes = 60;
|
|
7617
|
-
static async fromReq(req: EntityProvenTxReq, gmpResult: GetMerklePathResult, countsAsAttempt: boolean, maxRebroadcastAttempts = 0): Promise<EntityProvenTx | undefined>
|
|
7618
|
-
}
|
|
7619
|
-
```
|
|
7620
|
-
|
|
7621
|
-
See also: [EntityBase](./storage.md#class-entitybase), [EntityProvenTxReq](./storage.md#class-entityproventxreq), [EntityStorage](./storage.md#type-entitystorage), [GetMerklePathResult](./client.md#interface-getmerklepathresult), [ProvenTxFromTxidResult](./storage.md#interface-proventxfromtxidresult), [SyncMap](./storage.md#interface-syncmap), [TableProvenTx](./storage.md#interface-tableproventx), [TrxToken](./client.md#interface-trxtoken), [WalletServices](./client.md#interface-walletservices), [blockHash](./services.md#function-blockhash)
|
|
7622
|
-
|
|
7623
|
-
###### Property getProofAttemptsLimit
|
|
7624
|
-
|
|
7625
|
-
How high attempts can go before status is forced to invalid
|
|
7706
|
+
How high attempts can go before status is forced to invalid
|
|
7626
7707
|
|
|
7627
7708
|
```ts
|
|
7628
7709
|
static readonly getProofAttemptsLimit = 8
|
|
@@ -7841,313 +7922,6 @@ See also: [StorageProvider](./storage.md#class-storageprovider), [TrxToken](./cl
|
|
|
7841
7922
|
|
|
7842
7923
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7843
7924
|
|
|
7844
|
-
---
|
|
7845
|
-
##### Class: EntitySyncState
|
|
7846
|
-
|
|
7847
|
-
```ts
|
|
7848
|
-
export class EntitySyncState extends EntityBase<TableSyncState> {
|
|
7849
|
-
constructor(api?: TableSyncState)
|
|
7850
|
-
validateSyncMap(sm: SyncMap)
|
|
7851
|
-
static async fromStorage(storage: WalletStorageSync, userIdentityKey: string, remoteSettings: TableSettings): Promise<EntitySyncState>
|
|
7852
|
-
async updateStorage(storage: EntityStorage, notSyncMap?: boolean, trx?: TrxToken)
|
|
7853
|
-
override updateApi(notSyncMap?: boolean): void
|
|
7854
|
-
set created_at(v: Date)
|
|
7855
|
-
get created_at()
|
|
7856
|
-
set updated_at(v: Date)
|
|
7857
|
-
get updated_at()
|
|
7858
|
-
set userId(v: number)
|
|
7859
|
-
get userId()
|
|
7860
|
-
set storageIdentityKey(v: string)
|
|
7861
|
-
get storageIdentityKey()
|
|
7862
|
-
set storageName(v: string)
|
|
7863
|
-
get storageName()
|
|
7864
|
-
set init(v: boolean)
|
|
7865
|
-
get init()
|
|
7866
|
-
set refNum(v: string)
|
|
7867
|
-
get refNum()
|
|
7868
|
-
set status(v: SyncStatus)
|
|
7869
|
-
get status(): SyncStatus
|
|
7870
|
-
set when(v: Date | undefined)
|
|
7871
|
-
get when()
|
|
7872
|
-
set satoshis(v: number | undefined)
|
|
7873
|
-
get satoshis()
|
|
7874
|
-
get apiErrorLocal()
|
|
7875
|
-
get apiErrorOther()
|
|
7876
|
-
get apiSyncMap()
|
|
7877
|
-
override get id(): number
|
|
7878
|
-
set id(id: number)
|
|
7879
|
-
override get entityName(): string
|
|
7880
|
-
override get entityTable(): string
|
|
7881
|
-
static mergeIdMap(fromMap: Record<number, number>, toMap: Record<number, number>)
|
|
7882
|
-
mergeSyncMap(iSyncMap: SyncMap)
|
|
7883
|
-
errorLocal: SyncError | undefined;
|
|
7884
|
-
errorOther: SyncError | undefined;
|
|
7885
|
-
syncMap: SyncMap;
|
|
7886
|
-
override equals(ei: TableSyncState, syncMap?: SyncMap | undefined): boolean
|
|
7887
|
-
override async mergeNew(storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: TrxToken): Promise<void>
|
|
7888
|
-
override async mergeExisting(storage: EntityStorage, since: Date | undefined, ei: TableSyncState, syncMap: SyncMap, trx?: TrxToken): Promise<boolean>
|
|
7889
|
-
makeRequestSyncChunkArgs(forIdentityKey: string, forStorageIdentityKey: string, maxRoughSize?: number, maxItems?: number): RequestSyncChunkArgs
|
|
7890
|
-
static syncChunkSummary(c: SyncChunk): string {
|
|
7891
|
-
let log = "";
|
|
7892
|
-
log += `SYNC CHUNK SUMMARY
|
|
7893
|
-
from storage: ${c.fromStorageIdentityKey}
|
|
7894
|
-
to storage: ${c.toStorageIdentityKey}
|
|
7895
|
-
for user: ${c.userIdentityKey}
|
|
7896
|
-
`;
|
|
7897
|
-
if (c.user != null)
|
|
7898
|
-
log += ` USER activeStorage ${c.user.activeStorage}\n`;
|
|
7899
|
-
if (c.provenTxs != null) {
|
|
7900
|
-
log += " PROVEN_TXS\n";
|
|
7901
|
-
for (const r of c.provenTxs) {
|
|
7902
|
-
log += ` ${r.provenTxId} ${r.txid}\n`;
|
|
7903
|
-
}
|
|
7904
|
-
}
|
|
7905
|
-
if (c.provenTxReqs != null) {
|
|
7906
|
-
log += " PROVEN_TX_REQS\n";
|
|
7907
|
-
for (const r of c.provenTxReqs) {
|
|
7908
|
-
log += ` ${r.provenTxReqId} ${r.txid} ${r.status} ${r.provenTxId || ""}\n`;
|
|
7909
|
-
}
|
|
7910
|
-
}
|
|
7911
|
-
if (c.transactions != null) {
|
|
7912
|
-
log += " TRANSACTIONS\n";
|
|
7913
|
-
for (const r of c.transactions) {
|
|
7914
|
-
log += ` ${r.transactionId} ${r.txid} ${r.status} ${r.provenTxId || ""} sats:${r.satoshis}\n`;
|
|
7915
|
-
}
|
|
7916
|
-
}
|
|
7917
|
-
if (c.outputs != null) {
|
|
7918
|
-
log += " OUTPUTS\n";
|
|
7919
|
-
for (const r of c.outputs) {
|
|
7920
|
-
log += ` ${r.outputId} ${r.txid}.${r.vout} ${r.transactionId} ${r.spendable ? "spendable" : ""} sats:${r.satoshis}\n`;
|
|
7921
|
-
}
|
|
7922
|
-
}
|
|
7923
|
-
return log;
|
|
7924
|
-
}
|
|
7925
|
-
async processSyncChunk(writer: EntityStorage, args: RequestSyncChunkArgs, chunk: SyncChunk): Promise<{
|
|
7926
|
-
done: boolean;
|
|
7927
|
-
maxUpdated_at: Date | undefined;
|
|
7928
|
-
updates: number;
|
|
7929
|
-
inserts: number;
|
|
7930
|
-
}>
|
|
7931
|
-
}
|
|
7932
|
-
```
|
|
7933
|
-
|
|
7934
|
-
See also: [EntityBase](./storage.md#class-entitybase), [EntityStorage](./storage.md#type-entitystorage), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [SyncChunk](./client.md#interface-syncchunk), [SyncError](./storage.md#interface-syncerror), [SyncMap](./storage.md#interface-syncmap), [SyncStatus](./client.md#type-syncstatus), [TableSettings](./storage.md#interface-tablesettings), [TableSyncState](./storage.md#interface-tablesyncstate), [TrxToken](./client.md#interface-trxtoken), [WalletStorageSync](./client.md#interface-walletstoragesync)
|
|
7935
|
-
|
|
7936
|
-
###### Method mergeSyncMap
|
|
7937
|
-
|
|
7938
|
-
Merge additions to the syncMap
|
|
7939
|
-
|
|
7940
|
-
```ts
|
|
7941
|
-
mergeSyncMap(iSyncMap: SyncMap)
|
|
7942
|
-
```
|
|
7943
|
-
See also: [SyncMap](./storage.md#interface-syncmap)
|
|
7944
|
-
|
|
7945
|
-
###### Method updateStorage
|
|
7946
|
-
|
|
7947
|
-
Handles both insert and update based on id value: zero indicates insert.
|
|
7948
|
-
|
|
7949
|
-
```ts
|
|
7950
|
-
async updateStorage(storage: EntityStorage, notSyncMap?: boolean, trx?: TrxToken)
|
|
7951
|
-
```
|
|
7952
|
-
See also: [EntityStorage](./storage.md#type-entitystorage), [TrxToken](./client.md#interface-trxtoken)
|
|
7953
|
-
|
|
7954
|
-
Argument Details
|
|
7955
|
-
|
|
7956
|
-
+ **notSyncMap**
|
|
7957
|
-
+ if not new and true, excludes updating syncMap in storage.
|
|
7958
|
-
|
|
7959
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
7960
|
-
|
|
7961
|
-
---
|
|
7962
|
-
##### Class: EntityTransaction
|
|
7963
|
-
|
|
7964
|
-
```ts
|
|
7965
|
-
export class EntityTransaction extends EntityBase<TableTransaction> {
|
|
7966
|
-
getBsvTx(): BsvTransaction | undefined
|
|
7967
|
-
getBsvTxIns(): TransactionInput[]
|
|
7968
|
-
async getInputs(storage: EntityStorage, trx?: TrxToken): Promise<TableOutput[]>
|
|
7969
|
-
constructor(api?: TableTransaction)
|
|
7970
|
-
override updateApi(): void
|
|
7971
|
-
get transactionId()
|
|
7972
|
-
set transactionId(v: number)
|
|
7973
|
-
get created_at()
|
|
7974
|
-
set created_at(v: Date)
|
|
7975
|
-
get updated_at()
|
|
7976
|
-
set updated_at(v: Date)
|
|
7977
|
-
get version()
|
|
7978
|
-
set version(v: number | undefined)
|
|
7979
|
-
get lockTime()
|
|
7980
|
-
set lockTime(v: number | undefined)
|
|
7981
|
-
get isOutgoing()
|
|
7982
|
-
set isOutgoing(v: boolean)
|
|
7983
|
-
get status()
|
|
7984
|
-
set status(v: TransactionStatus)
|
|
7985
|
-
get userId()
|
|
7986
|
-
set userId(v: number)
|
|
7987
|
-
get provenTxId()
|
|
7988
|
-
set provenTxId(v: number | undefined)
|
|
7989
|
-
get satoshis()
|
|
7990
|
-
set satoshis(v: number)
|
|
7991
|
-
get txid()
|
|
7992
|
-
set txid(v: string | undefined)
|
|
7993
|
-
get reference()
|
|
7994
|
-
set reference(v: string)
|
|
7995
|
-
get inputBEEF()
|
|
7996
|
-
set inputBEEF(v: number[] | undefined)
|
|
7997
|
-
get description()
|
|
7998
|
-
set description(v: string)
|
|
7999
|
-
get rawTx()
|
|
8000
|
-
set rawTx(v: number[] | undefined)
|
|
8001
|
-
override get id(): number
|
|
8002
|
-
override set id(v: number)
|
|
8003
|
-
override get entityName(): string
|
|
8004
|
-
override get entityTable(): string
|
|
8005
|
-
override equals(ei: TableTransaction, syncMap?: SyncMap | undefined): boolean
|
|
8006
|
-
static async mergeFind(storage: EntityStorage, userId: number, ei: TableTransaction, syncMap: SyncMap, trx?: TrxToken): Promise<{
|
|
8007
|
-
found: boolean;
|
|
8008
|
-
eo: EntityTransaction;
|
|
8009
|
-
eiId: number;
|
|
8010
|
-
}>
|
|
8011
|
-
override async mergeNew(storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: TrxToken): Promise<void>
|
|
8012
|
-
override async mergeExisting(storage: EntityStorage, since: Date | undefined, ei: TableTransaction, syncMap: SyncMap, trx?: TrxToken): Promise<boolean>
|
|
8013
|
-
async getProvenTx(storage: EntityStorage, trx?: TrxToken): Promise<EntityProvenTx | undefined>
|
|
8014
|
-
}
|
|
8015
|
-
```
|
|
8016
|
-
|
|
8017
|
-
See also: [EntityBase](./storage.md#class-entitybase), [EntityProvenTx](./storage.md#class-entityproventx), [EntityStorage](./storage.md#type-entitystorage), [SyncMap](./storage.md#interface-syncmap), [TableOutput](./storage.md#interface-tableoutput), [TableTransaction](./storage.md#interface-tabletransaction), [TransactionStatus](./client.md#type-transactionstatus), [TrxToken](./client.md#interface-trxtoken)
|
|
8018
|
-
|
|
8019
|
-
###### Method getBsvTxIns
|
|
8020
|
-
|
|
8021
|
-
```ts
|
|
8022
|
-
getBsvTxIns(): TransactionInput[]
|
|
8023
|
-
```
|
|
8024
|
-
|
|
8025
|
-
Returns
|
|
8026
|
-
|
|
8027
|
-
array of
|
|
8028
|
-
|
|
8029
|
-
###### Method getInputs
|
|
8030
|
-
|
|
8031
|
-
Returns an array of "known" inputs to this transaction which belong to the same userId.
|
|
8032
|
-
Uses both spentBy and rawTx inputs (if available) to locate inputs from among user's outputs.
|
|
8033
|
-
Not all transaction inputs correspond to prior storage outputs.
|
|
8034
|
-
|
|
8035
|
-
```ts
|
|
8036
|
-
async getInputs(storage: EntityStorage, trx?: TrxToken): Promise<TableOutput[]>
|
|
8037
|
-
```
|
|
8038
|
-
See also: [EntityStorage](./storage.md#type-entitystorage), [TableOutput](./storage.md#interface-tableoutput), [TrxToken](./client.md#interface-trxtoken)
|
|
8039
|
-
|
|
8040
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
8041
|
-
|
|
8042
|
-
---
|
|
8043
|
-
##### Class: EntityTxLabel
|
|
8044
|
-
|
|
8045
|
-
```ts
|
|
8046
|
-
export class EntityTxLabel extends EntityBase<TableTxLabel> {
|
|
8047
|
-
constructor(api?: TableTxLabel)
|
|
8048
|
-
override updateApi(): void
|
|
8049
|
-
get txLabelId()
|
|
8050
|
-
set txLabelId(v: number)
|
|
8051
|
-
get created_at()
|
|
8052
|
-
set created_at(v: Date)
|
|
8053
|
-
get updated_at()
|
|
8054
|
-
set updated_at(v: Date)
|
|
8055
|
-
get label()
|
|
8056
|
-
set label(v: string)
|
|
8057
|
-
get userId()
|
|
8058
|
-
set userId(v: number)
|
|
8059
|
-
get isDeleted()
|
|
8060
|
-
set isDeleted(v: boolean)
|
|
8061
|
-
override get id(): number
|
|
8062
|
-
override set id(v: number)
|
|
8063
|
-
override get entityName(): string
|
|
8064
|
-
override get entityTable(): string
|
|
8065
|
-
override equals(ei: TableTxLabel, syncMap?: SyncMap): boolean
|
|
8066
|
-
static async mergeFind(storage: EntityStorage, userId: number, ei: TableTxLabel, syncMap: SyncMap, trx?: TrxToken): Promise<{
|
|
8067
|
-
found: boolean;
|
|
8068
|
-
eo: EntityTxLabel;
|
|
8069
|
-
eiId: number;
|
|
8070
|
-
}>
|
|
8071
|
-
override async mergeNew(storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: TrxToken): Promise<void>
|
|
8072
|
-
override async mergeExisting(storage: EntityStorage, since: Date | undefined, ei: TableTxLabel, syncMap: SyncMap, trx?: TrxToken): Promise<boolean>
|
|
8073
|
-
}
|
|
8074
|
-
```
|
|
8075
|
-
|
|
8076
|
-
See also: [EntityBase](./storage.md#class-entitybase), [EntityStorage](./storage.md#type-entitystorage), [SyncMap](./storage.md#interface-syncmap), [TableTxLabel](./storage.md#interface-tabletxlabel), [TrxToken](./client.md#interface-trxtoken)
|
|
8077
|
-
|
|
8078
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
8079
|
-
|
|
8080
|
-
---
|
|
8081
|
-
##### Class: EntityTxLabelMap
|
|
8082
|
-
|
|
8083
|
-
```ts
|
|
8084
|
-
export class EntityTxLabelMap extends EntityBase<TableTxLabelMap> {
|
|
8085
|
-
constructor(api?: TableTxLabelMap)
|
|
8086
|
-
override updateApi(): void
|
|
8087
|
-
get txLabelId()
|
|
8088
|
-
set txLabelId(v: number)
|
|
8089
|
-
get transactionId()
|
|
8090
|
-
set transactionId(v: number)
|
|
8091
|
-
get created_at()
|
|
8092
|
-
set created_at(v: Date)
|
|
8093
|
-
get updated_at()
|
|
8094
|
-
set updated_at(v: Date)
|
|
8095
|
-
get isDeleted()
|
|
8096
|
-
set isDeleted(v: boolean)
|
|
8097
|
-
override get id(): number
|
|
8098
|
-
override get entityName(): string
|
|
8099
|
-
override get entityTable(): string
|
|
8100
|
-
override equals(ei: TableTxLabelMap, syncMap?: SyncMap | undefined): boolean
|
|
8101
|
-
static async mergeFind(storage: EntityStorage, userId: number, ei: TableTxLabelMap, syncMap: SyncMap, trx?: TrxToken): Promise<{
|
|
8102
|
-
found: boolean;
|
|
8103
|
-
eo: EntityTxLabelMap;
|
|
8104
|
-
eiId: number;
|
|
8105
|
-
}>
|
|
8106
|
-
override async mergeNew(storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: TrxToken): Promise<void>
|
|
8107
|
-
override async mergeExisting(storage: EntityStorage, since: Date | undefined, ei: TableTxLabelMap, syncMap: SyncMap, trx?: TrxToken): Promise<boolean>
|
|
8108
|
-
}
|
|
8109
|
-
```
|
|
8110
|
-
|
|
8111
|
-
See also: [EntityBase](./storage.md#class-entitybase), [EntityStorage](./storage.md#type-entitystorage), [SyncMap](./storage.md#interface-syncmap), [TableTxLabelMap](./storage.md#interface-tabletxlabelmap), [TrxToken](./client.md#interface-trxtoken)
|
|
8112
|
-
|
|
8113
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
8114
|
-
|
|
8115
|
-
---
|
|
8116
|
-
##### Class: EntityUser
|
|
8117
|
-
|
|
8118
|
-
```ts
|
|
8119
|
-
export class EntityUser extends EntityBase<TableUser> {
|
|
8120
|
-
constructor(api?: TableUser)
|
|
8121
|
-
override updateApi(): void
|
|
8122
|
-
get userId()
|
|
8123
|
-
set userId(v: number)
|
|
8124
|
-
get created_at()
|
|
8125
|
-
set created_at(v: Date)
|
|
8126
|
-
get updated_at()
|
|
8127
|
-
set updated_at(v: Date)
|
|
8128
|
-
get identityKey()
|
|
8129
|
-
set identityKey(v: string)
|
|
8130
|
-
get activeStorage()
|
|
8131
|
-
set activeStorage(v: string)
|
|
8132
|
-
override get id(): number
|
|
8133
|
-
override set id(v: number)
|
|
8134
|
-
override get entityName(): string
|
|
8135
|
-
override get entityTable(): string
|
|
8136
|
-
override equals(ei: TableUser, syncMap?: SyncMap | undefined): boolean
|
|
8137
|
-
static async mergeFind(storage: EntityStorage, userId: number, ei: TableUser, trx?: TrxToken): Promise<{
|
|
8138
|
-
found: boolean;
|
|
8139
|
-
eo: EntityUser;
|
|
8140
|
-
eiId: number;
|
|
8141
|
-
}>
|
|
8142
|
-
override async mergeNew(storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: TrxToken): Promise<void>
|
|
8143
|
-
override async mergeExisting(storage: EntityStorage, since: Date | undefined, ei: TableUser, syncMap?: SyncMap, trx?: TrxToken): Promise<boolean>
|
|
8144
|
-
}
|
|
8145
|
-
```
|
|
8146
|
-
|
|
8147
|
-
See also: [EntityBase](./storage.md#class-entitybase), [EntityStorage](./storage.md#type-entitystorage), [SyncMap](./storage.md#interface-syncmap), [TableUser](./storage.md#interface-tableuser), [TrxToken](./client.md#interface-trxtoken)
|
|
8148
|
-
|
|
8149
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
8150
|
-
|
|
8151
7925
|
---
|
|
8152
7926
|
##### Class: HeightRange
|
|
8153
7927
|
|
|
@@ -8290,44 +8064,6 @@ See also: [HeightRange](./services.md#class-heightrange)
|
|
|
8290
8064
|
|
|
8291
8065
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
8292
8066
|
|
|
8293
|
-
---
|
|
8294
|
-
##### Class: MergeEntity
|
|
8295
|
-
|
|
8296
|
-
```ts
|
|
8297
|
-
export class MergeEntity<API extends EntityTimeStamp, DE extends EntityBase<API>> {
|
|
8298
|
-
idMap: Record<number, number>;
|
|
8299
|
-
constructor(public stateArray: API[] | undefined, public find: (storage: EntityStorage, userId: number, ei: API, syncMap: SyncMap, trx?: TrxToken) => Promise<{
|
|
8300
|
-
found: boolean;
|
|
8301
|
-
eo: DE;
|
|
8302
|
-
eiId: number;
|
|
8303
|
-
}>, public esm: EntitySyncMap)
|
|
8304
|
-
updateSyncMap(map: Record<number, number>, inId: number, outId: number)
|
|
8305
|
-
async merge(since: Date | undefined, storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: TrxToken): Promise<{
|
|
8306
|
-
inserts: number;
|
|
8307
|
-
updates: number;
|
|
8308
|
-
}>
|
|
8309
|
-
}
|
|
8310
|
-
```
|
|
8311
|
-
|
|
8312
|
-
See also: [EntityBase](./storage.md#class-entitybase), [EntityStorage](./storage.md#type-entitystorage), [EntitySyncMap](./storage.md#interface-entitysyncmap), [EntityTimeStamp](./client.md#interface-entitytimestamp), [SyncMap](./storage.md#interface-syncmap), [TrxToken](./client.md#interface-trxtoken)
|
|
8313
|
-
|
|
8314
|
-
###### Method merge
|
|
8315
|
-
|
|
8316
|
-
```ts
|
|
8317
|
-
async merge(since: Date | undefined, storage: EntityStorage, userId: number, syncMap: SyncMap, trx?: TrxToken): Promise<{
|
|
8318
|
-
inserts: number;
|
|
8319
|
-
updates: number;
|
|
8320
|
-
}>
|
|
8321
|
-
```
|
|
8322
|
-
See also: [EntityStorage](./storage.md#type-entitystorage), [SyncMap](./storage.md#interface-syncmap), [TrxToken](./client.md#interface-trxtoken)
|
|
8323
|
-
|
|
8324
|
-
Argument Details
|
|
8325
|
-
|
|
8326
|
-
+ **since**
|
|
8327
|
-
+ date of current sync chunk
|
|
8328
|
-
|
|
8329
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
8330
|
-
|
|
8331
8067
|
---
|
|
8332
8068
|
##### Class: MockChainMigrations
|
|
8333
8069
|
|
|
@@ -9039,6 +8775,14 @@ export abstract class StorageClientBase implements WalletStorageProvider {
|
|
|
9039
8775
|
async internalizeAction(auth: AuthId, args: InternalizeActionArgs): Promise<StorageInternalizeActionResult>
|
|
9040
8776
|
async createAction(auth: AuthId, args: Validation.ValidCreateActionArgs): Promise<StorageCreateActionResult>
|
|
9041
8777
|
async processAction(auth: AuthId, args: StorageProcessActionArgs): Promise<StorageProcessActionResults>
|
|
8778
|
+
async getCapabilities(): Promise<StorageCapabilities>
|
|
8779
|
+
async beginActionBatch(auth: AuthId, args: BeginActionBatchArgs): Promise<BeginActionBatchResult>
|
|
8780
|
+
async extendActionBatch(auth: AuthId, args: ExtendActionBatchArgs): Promise<ExtendActionBatchResult>
|
|
8781
|
+
async renewActionBatch(auth: AuthId, batchId: string): Promise<RenewActionBatchResult>
|
|
8782
|
+
async prepareActionBatchCommit(auth: AuthId, manifest: ActionBatchManifest): Promise<PrepareActionBatchCommitResult>
|
|
8783
|
+
async putActionBatchBlob(auth: AuthId, args: PutActionBatchBlobArgs): Promise<void>
|
|
8784
|
+
async commitActionBatch(auth: AuthId, manifest: ActionBatchManifest): Promise<CommitActionBatchResult>
|
|
8785
|
+
async abortActionBatch(auth: AuthId, batchId: string): Promise<AbortActionBatchResult>
|
|
9042
8786
|
async abortAction(auth: AuthId, args: AbortActionArgs): Promise<AbortActionResult>
|
|
9043
8787
|
async findOrInsertUser(identityKey): Promise<{
|
|
9044
8788
|
user: TableUser;
|
|
@@ -9068,7 +8812,7 @@ export abstract class StorageClientBase implements WalletStorageProvider {
|
|
|
9068
8812
|
}
|
|
9069
8813
|
```
|
|
9070
8814
|
|
|
9071
|
-
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), [StorageClientOptions](./storage.md#interface-storageclientoptions), [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), [validateDate](./storage.md#function-validatedate), [validateEntities](./storage.md#function-validateentities), [validateEntity](./storage.md#function-validateentity)
|
|
8815
|
+
See also: [AbortActionBatchResult](./client.md#interface-abortactionbatchresult), [ActionBatchManifest](./client.md#interface-actionbatchmanifest), [AuthId](./client.md#interface-authid), [BeginActionBatchArgs](./client.md#interface-beginactionbatchargs), [BeginActionBatchResult](./client.md#interface-beginactionbatchresult), [CommitActionBatchResult](./client.md#interface-commitactionbatchresult), [EntityTimeStamp](./client.md#interface-entitytimestamp), [ExtendActionBatchArgs](./client.md#interface-extendactionbatchargs), [ExtendActionBatchResult](./client.md#interface-extendactionbatchresult), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [PrepareActionBatchCommitResult](./client.md#interface-prepareactionbatchcommitresult), [ProcessSyncChunkResult](./client.md#interface-processsyncchunkresult), [PutActionBatchBlobArgs](./client.md#interface-putactionbatchblobargs), [RenewActionBatchResult](./client.md#interface-renewactionbatchresult), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [StorageCapabilities](./client.md#interface-storagecapabilities), [StorageClientOptions](./storage.md#interface-storageclientoptions), [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), [abortActionBatch](./storage.md#function-abortactionbatch), [beginActionBatch](./storage.md#function-beginactionbatch), [commitActionBatch](./storage.md#function-commitactionbatch), [createAction](./storage.md#function-createaction), [extendActionBatch](./storage.md#function-extendactionbatch), [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), [prepareActionBatchCommit](./storage.md#function-prepareactionbatchcommit), [processAction](./storage.md#function-processaction), [putActionBatchBlob](./storage.md#function-putactionbatchblob), [renewActionBatch](./storage.md#function-renewactionbatch), [validateDate](./storage.md#function-validatedate), [validateEntities](./storage.md#function-validateentities), [validateEntity](./storage.md#function-validateentity)
|
|
9072
8816
|
|
|
9073
8817
|
###### Method abortAction
|
|
9074
8818
|
|
|
@@ -9683,12 +9427,38 @@ export abstract class StorageProvider extends StorageReaderWriter implements Wal
|
|
|
9683
9427
|
abstract listActions(auth: AuthId, args: Validation.ValidListActionsArgs): Promise<ListActionsResult>;
|
|
9684
9428
|
abstract listOutputs(auth: AuthId, args: Validation.ValidListOutputsArgs): Promise<ListOutputsResult>;
|
|
9685
9429
|
abstract countChangeInputs(userId: number, basketId: number, excludeSending: boolean): Promise<number>;
|
|
9430
|
+
async insertActionBatch(batch: TableActionBatch, trx?: TrxToken): Promise<number>
|
|
9431
|
+
async findActionBatch(userId: number, batchId: string, trx?: TrxToken): Promise<TableActionBatch | undefined>
|
|
9432
|
+
async findActionBatchForUpdate(userId: number, batchId: string, trx: TrxToken): Promise<TableActionBatch | undefined>
|
|
9433
|
+
async findExpiredActionBatches(now: Date, trx?: TrxToken): Promise<TableActionBatch[]>
|
|
9434
|
+
async updateActionBatch(actionBatchId: number, update: Partial<TableActionBatch>, trx?: TrxToken): Promise<number>
|
|
9435
|
+
async deleteActionBatch(actionBatchId: number, trx?: TrxToken): Promise<void>
|
|
9436
|
+
async reserveActionBatchOutputs(reservations: TableActionBatchOutput[], trx?: TrxToken): Promise<void>
|
|
9437
|
+
async findActionBatchOutputIds(actionBatchId: number, trx?: TrxToken): Promise<number[]>
|
|
9438
|
+
async findReservedActionBatchOutputIds(_outputIds: number[], _trx?: TrxToken): Promise<number[]>
|
|
9439
|
+
async deleteActionBatchOutputReservations(actionBatchId: number, trx?: TrxToken): Promise<void>
|
|
9440
|
+
async putActionBatchBlobRecord(blob: TableActionBatchBlob, trx?: TrxToken): Promise<void>
|
|
9441
|
+
async findActionBatchBlobRecord(actionBatchId: number, digest: string, trx?: TrxToken): Promise<TableActionBatchBlob | undefined>
|
|
9442
|
+
async deleteActionBatchBlobRecords(actionBatchId: number, trx?: TrxToken): Promise<void>
|
|
9443
|
+
async getCapabilities(): Promise<StorageCapabilities>
|
|
9444
|
+
protected supportsActionBatchPersistence(): boolean
|
|
9445
|
+
async beginActionBatch(auth: AuthId, args: BeginActionBatchArgs): Promise<BeginActionBatchResult>
|
|
9446
|
+
async extendActionBatch(auth: AuthId, args: ExtendActionBatchArgs): Promise<ExtendActionBatchResult>
|
|
9447
|
+
async renewActionBatch(auth: AuthId, batchId: string): Promise<RenewActionBatchResult>
|
|
9448
|
+
async prepareActionBatchCommit(auth: AuthId, manifest: ActionBatchManifest): Promise<PrepareActionBatchCommitResult>
|
|
9449
|
+
async putActionBatchBlob(auth: AuthId, args: PutActionBatchBlobArgs): Promise<void>
|
|
9450
|
+
async commitActionBatch(auth: AuthId, manifest: ActionBatchManifest): Promise<CommitActionBatchResult>
|
|
9451
|
+
async abortActionBatch(auth: AuthId, batchId: string): Promise<AbortActionBatchResult>
|
|
9686
9452
|
async findOutputsByIds(outputIds: number[], trx?: TrxToken): Promise<Record<number, TableOutput>>
|
|
9687
9453
|
async findStaleMerkleRoots(args: FindStaleMerkleRootsArgs): Promise<string[]>
|
|
9688
9454
|
async findOutputsByOutpoints(userId: number, outpoints: Array<{
|
|
9689
9455
|
txid: string;
|
|
9690
9456
|
vout: number;
|
|
9691
9457
|
}>, trx?: TrxToken): Promise<Record<string, TableOutput>>
|
|
9458
|
+
async findOutputsByOutpointsForUpdate(userId: number, outpoints: Array<{
|
|
9459
|
+
txid: string;
|
|
9460
|
+
vout: number;
|
|
9461
|
+
}>, trx: TrxToken): Promise<Record<string, TableOutput>>
|
|
9692
9462
|
async findOrInsertOutputBasketsBulk(userId: number, names: string[], trx?: TrxToken): Promise<Record<string, TableOutputBasket>>
|
|
9693
9463
|
async findOrInsertOutputTagsBulk(userId: number, tags: string[], trx?: TrxToken): Promise<Record<string, TableOutputTag>>
|
|
9694
9464
|
async sumSpendableSatoshisInBasket(userId: number, basketId: number, excludeSending: boolean, trx?: TrxToken): Promise<number>
|
|
@@ -9734,7 +9504,7 @@ export abstract class StorageProvider extends StorageReaderWriter implements Wal
|
|
|
9734
9504
|
}
|
|
9735
9505
|
```
|
|
9736
9506
|
|
|
9737
|
-
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), [FindStaleMerkleRootsArgs](./client.md#interface-findstalemerklerootsargs), [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), [TableUser](./storage.md#interface-tableuser), [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)
|
|
9507
|
+
See also: [AbortActionBatchResult](./client.md#interface-abortactionbatchresult), [ActionBatchManifest](./client.md#interface-actionbatchmanifest), [AdminStatsResult](./storage.md#interface-adminstatsresult), [AuthId](./client.md#interface-authid), [BeginActionBatchArgs](./client.md#interface-beginactionbatchargs), [BeginActionBatchResult](./client.md#interface-beginactionbatchresult), [Chain](./client.md#type-chain), [CommitActionBatchResult](./client.md#interface-commitactionbatchresult), [EntityProvenTxReq](./storage.md#class-entityproventxreq), [ExtendActionBatchArgs](./client.md#interface-extendactionbatchargs), [ExtendActionBatchResult](./client.md#interface-extendactionbatchresult), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindStaleMerkleRootsArgs](./client.md#interface-findstalemerklerootsargs), [GetReqsAndBeefResult](./storage.md#interface-getreqsandbeefresult), [PostReqsToNetworkResult](./storage.md#interface-postreqstonetworkresult), [PrepareActionBatchCommitResult](./client.md#interface-prepareactionbatchcommitresult), [ProcessSyncChunkResult](./client.md#interface-processsyncchunkresult), [ProvenOrRawTx](./client.md#interface-provenorrawtx), [PurgeParams](./client.md#interface-purgeparams), [PurgeResults](./client.md#interface-purgeresults), [PutActionBatchBlobArgs](./client.md#interface-putactionbatchblobargs), [RenewActionBatchResult](./client.md#interface-renewactionbatchresult), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [StorageCapabilities](./client.md#interface-storagecapabilities), [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), [TableActionBatch](./storage.md#interface-tableactionbatch), [TableActionBatchBlob](./storage.md#interface-tableactionbatchblob), [TableActionBatchOutput](./storage.md#interface-tableactionbatchoutput), [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), [TableUser](./storage.md#interface-tableuser), [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), [abortActionBatch](./storage.md#function-abortactionbatch), [attemptToPostReqsToNetwork](./storage.md#function-attempttopostreqstonetwork), [beginActionBatch](./storage.md#function-beginactionbatch), [commitActionBatch](./storage.md#function-commitactionbatch), [createAction](./storage.md#function-createaction), [extendActionBatch](./storage.md#function-extendactionbatch), [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), [prepareActionBatchCommit](./storage.md#function-prepareactionbatchcommit), [processAction](./storage.md#function-processaction), [purgeData](./storage.md#function-purgedata), [putActionBatchBlob](./storage.md#function-putactionbatchblob), [renewActionBatch](./storage.md#function-renewactionbatch), [reviewStatus](./storage.md#function-reviewstatus)
|
|
9738
9508
|
|
|
9739
9509
|
###### Method confirmSpendableOutputs
|
|
9740
9510
|
|
|
@@ -10205,6 +9975,26 @@ trigger(nowMsecsSinceEpoch: number): {
|
|
|
10205
9975
|
|
|
10206
9976
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
10207
9977
|
|
|
9978
|
+
---
|
|
9979
|
+
##### Class: TaskCleanupActionBatches
|
|
9980
|
+
|
|
9981
|
+
Releases expired action-batch reservations and incomplete staged blobs.
|
|
9982
|
+
|
|
9983
|
+
```ts
|
|
9984
|
+
export class TaskCleanupActionBatches extends WalletMonitorTask {
|
|
9985
|
+
static readonly taskName = "CleanupActionBatches";
|
|
9986
|
+
constructor(monitor: Monitor, public triggerMsecs = Monitor.oneMinute)
|
|
9987
|
+
trigger(nowMsecsSinceEpoch: number): {
|
|
9988
|
+
run: boolean;
|
|
9989
|
+
}
|
|
9990
|
+
async runTask(): Promise<string>
|
|
9991
|
+
}
|
|
9992
|
+
```
|
|
9993
|
+
|
|
9994
|
+
See also: [Monitor](./monitor.md#class-monitor), [WalletMonitorTask](./monitor.md#class-walletmonitortask)
|
|
9995
|
+
|
|
9996
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
9997
|
+
|
|
10208
9998
|
---
|
|
10209
9999
|
##### Class: TaskClock
|
|
10210
10000
|
|
|
@@ -10966,6 +10756,7 @@ export class Wallet implements WalletInterface, ProtoWallet {
|
|
|
10966
10756
|
privilegedKeyManager?: PrivilegedKeyManager;
|
|
10967
10757
|
makeLogger?: MakeWalletLogger;
|
|
10968
10758
|
pendingSignActions: Record<string, PendingSignAction>;
|
|
10759
|
+
readonly actionBatch: ActionBatchController;
|
|
10969
10760
|
randomVals?: number[] = undefined;
|
|
10970
10761
|
constructor(argsOrSigner: WalletArgs | WalletSigner, services?: WalletServices, monitor?: Monitor, privilegedKeyManager?: PrivilegedKeyManager, makeLogger?: MakeWalletLogger)
|
|
10971
10762
|
async destroy(): Promise<void>
|
|
@@ -11024,7 +10815,7 @@ export class Wallet implements WalletInterface, ProtoWallet {
|
|
|
11024
10815
|
}
|
|
11025
10816
|
```
|
|
11026
10817
|
|
|
11027
|
-
See also: [Chain](./client.md#type-chain), [ContactSource](./client.md#interface-contactsource), [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)
|
|
10818
|
+
See also: [ActionBatchController](./client.md#class-actionbatchcontroller), [Chain](./client.md#type-chain), [ContactSource](./client.md#interface-contactsource), [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)
|
|
11028
10819
|
|
|
11029
10820
|
###### Property autoKnownTxids
|
|
11030
10821
|
|
|
@@ -11531,6 +11322,14 @@ export class WalletStorageManager implements sdk.WalletStorage {
|
|
|
11531
11322
|
async relinquishCertificate(args: RelinquishCertificateArgs): Promise<number>
|
|
11532
11323
|
async relinquishOutput(args: RelinquishOutputArgs): Promise<number>
|
|
11533
11324
|
async processAction(args: sdk.StorageProcessActionArgs): Promise<sdk.StorageProcessActionResults>
|
|
11325
|
+
async getCapabilities(): Promise<sdk.StorageCapabilities>
|
|
11326
|
+
async beginActionBatch(args: sdk.BeginActionBatchArgs): Promise<sdk.BeginActionBatchResult>
|
|
11327
|
+
async extendActionBatch(args: sdk.ExtendActionBatchArgs): Promise<sdk.ExtendActionBatchResult>
|
|
11328
|
+
async renewActionBatch(batchId: string): Promise<sdk.RenewActionBatchResult>
|
|
11329
|
+
async prepareActionBatchCommit(manifest: sdk.ActionBatchManifest): Promise<sdk.PrepareActionBatchCommitResult>
|
|
11330
|
+
async putActionBatchBlob(args: sdk.PutActionBatchBlobArgs): Promise<void>
|
|
11331
|
+
async commitActionBatch(manifest: sdk.ActionBatchManifest): Promise<sdk.CommitActionBatchResult>
|
|
11332
|
+
async abortActionBatch(batchId: string): Promise<sdk.AbortActionBatchResult>
|
|
11534
11333
|
async insertCertificate(certificate: TableCertificate): Promise<number>
|
|
11535
11334
|
async listActions(vargs: Validation.ValidListActionsArgs): Promise<ListActionsResult>
|
|
11536
11335
|
async listCertificates(args: Validation.ValidListCertificatesArgs): Promise<ListCertificatesResult>
|
|
@@ -11559,7 +11358,7 @@ export class WalletStorageManager implements sdk.WalletStorage {
|
|
|
11559
11358
|
}
|
|
11560
11359
|
```
|
|
11561
11360
|
|
|
11562
|
-
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), [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)
|
|
11361
|
+
See also: [AbortActionBatchResult](./client.md#interface-abortactionbatchresult), [ActionBatchManifest](./client.md#interface-actionbatchmanifest), [AuthId](./client.md#interface-authid), [BeginActionBatchArgs](./client.md#interface-beginactionbatchargs), [BeginActionBatchResult](./client.md#interface-beginactionbatchresult), [CommitActionBatchResult](./client.md#interface-commitactionbatchresult), [ExtendActionBatchArgs](./client.md#interface-extendactionbatchargs), [ExtendActionBatchResult](./client.md#interface-extendactionbatchresult), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [PrepareActionBatchCommitResult](./client.md#interface-prepareactionbatchcommitresult), [PutActionBatchBlobArgs](./client.md#interface-putactionbatchblobargs), [RenewActionBatchResult](./client.md#interface-renewactionbatchresult), [ReproveHeaderResult](./client.md#interface-reproveheaderresult), [ReproveProvenResult](./client.md#interface-reproveprovenresult), [StorageCapabilities](./client.md#interface-storagecapabilities), [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), [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), [abortActionBatch](./storage.md#function-abortactionbatch), [beginActionBatch](./storage.md#function-beginactionbatch), [commitActionBatch](./storage.md#function-commitactionbatch), [createAction](./storage.md#function-createaction), [extendActionBatch](./storage.md#function-extendactionbatch), [internalizeAction](./storage.md#function-internalizeaction), [listActions](./storage.md#function-listactions), [listCertificates](./storage.md#function-listcertificates), [listOutputs](./storage.md#function-listoutputs), [prepareActionBatchCommit](./storage.md#function-prepareactionbatchcommit), [processAction](./storage.md#function-processaction), [putActionBatchBlob](./storage.md#function-putactionbatchblob), [renewActionBatch](./storage.md#function-renewactionbatch)
|
|
11563
11362
|
|
|
11564
11363
|
###### Constructor
|
|
11565
11364
|
|
|
@@ -11863,62 +11662,70 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
11863
11662
|
|
|
11864
11663
|
| | | |
|
|
11865
11664
|
| --- | --- | --- |
|
|
11866
|
-
| [WalletErrorFromJson](#function-walleterrorfromjson) | [
|
|
11867
|
-
| [
|
|
11868
|
-
| [
|
|
11665
|
+
| [WalletErrorFromJson](#function-walleterrorfromjson) | [getResultBeef](#function-getresultbeef) | [selectBulkHeaderFiles](#function-selectbulkheaderfiles) |
|
|
11666
|
+
| [abortActionBatch](#function-abortactionbatch) | [getSyncChunk](#function-getsyncchunk) | [selectCanonicalChange](#function-selectcanonicalchange) |
|
|
11667
|
+
| [acquireDirectCertificate](#function-acquiredirectcertificate) | [getWhatsOnChainBlockHeaderByHash](#function-getwhatsonchainblockheaderbyhash) | [serializeBaseBlockHeader](#function-serializebaseblockheader) |
|
|
11668
|
+
| [actionBatchBlobDigest](#function-actionbatchblobdigest) | [handlePostRawTxErrorResponse](#function-handlepostrawtxerrorresponse) | [serializeBaseBlockHeaders](#function-serializebaseblockheaders) |
|
|
11669
|
+
| [actionBatchManifestDigest](#function-actionbatchmanifestdigest) | [handleScriptHashHistoryCatch](#function-handlescripthashhistorycatch) | [setDisableDoubleSpendCheckForTest](#function-setdisabledoublespendcheckfortest) |
|
|
11670
|
+
| [addPlannerOutputs](#function-addplanneroutputs) | [handleScriptHashHistoryResponse](#function-handlescripthashhistoryresponse) | [setResultBeef](#function-setresultbeef) |
|
|
11671
|
+
| [addWork](#function-addwork) | [handleUtxoConnReset](#function-handleutxoconnreset) | [sha256Hash](#function-sha256hash) |
|
|
11672
|
+
| [additionalFundingTarget](#function-additionalfundingtarget) | [internalizeAction](#function-internalizeaction) | [sha256HashOfBinaryFile](#function-sha256hashofbinaryfile) |
|
|
11869
11673
|
| [arcDefaultUrl](#function-arcdefaulturl) | [internalizeAction](#function-internalizeaction) | [shareReqsWithWorld](#function-sharereqswithworld) |
|
|
11870
|
-
| [arcGorillaPoolUrl](#function-arcgorillapoolurl) | [
|
|
11871
|
-
| [arcadeDefaultUrl](#function-arcadedefaulturl) | [
|
|
11872
|
-
| [arraysEqual](#function-arraysequal) | [
|
|
11873
|
-
| [asArray](#function-asarray) | [
|
|
11874
|
-
| [asBsvSdkPrivateKey](#function-asbsvsdkprivatekey) | [
|
|
11875
|
-
| [asBsvSdkPublickKey](#function-asbsvsdkpublickkey) | [
|
|
11876
|
-
| [asBsvSdkScript](#function-asbsvsdkscript) | [
|
|
11877
|
-
| [asBsvSdkTx](#function-asbsvsdktx) | [
|
|
11878
|
-
| [asString](#function-asstring) | [
|
|
11879
|
-
| [asUint8Array](#function-asuint8array) | [
|
|
11880
|
-
| [attemptToPostReqsToNetwork](#function-attempttopostreqstonetwork) | [
|
|
11881
|
-
| [
|
|
11882
|
-
| [
|
|
11883
|
-
| [
|
|
11884
|
-
| [
|
|
11885
|
-
| [
|
|
11886
|
-
| [
|
|
11887
|
-
| [
|
|
11888
|
-
| [
|
|
11889
|
-
| [
|
|
11890
|
-
| [
|
|
11891
|
-
| [
|
|
11892
|
-
| [
|
|
11893
|
-
| [
|
|
11894
|
-
| [
|
|
11895
|
-
| [
|
|
11896
|
-
| [
|
|
11897
|
-
| [
|
|
11898
|
-
| [
|
|
11899
|
-
| [
|
|
11900
|
-
| [
|
|
11901
|
-
| [
|
|
11902
|
-
| [
|
|
11903
|
-
| [
|
|
11904
|
-
| [
|
|
11905
|
-
| [
|
|
11906
|
-
| [
|
|
11907
|
-
| [
|
|
11908
|
-
| [
|
|
11909
|
-
| [
|
|
11910
|
-
| [
|
|
11911
|
-
| [
|
|
11912
|
-
| [
|
|
11913
|
-
| [
|
|
11914
|
-
| [
|
|
11915
|
-
| [
|
|
11916
|
-
| [
|
|
11917
|
-
| [
|
|
11918
|
-
| [
|
|
11919
|
-
| [
|
|
11920
|
-
| [
|
|
11921
|
-
| [
|
|
11674
|
+
| [arcGorillaPoolUrl](#function-arcgorillapoolurl) | [isArcAcceptedTxStatus](#function-isarcacceptedtxstatus) | [signAction](#function-signaction) |
|
|
11675
|
+
| [arcadeDefaultUrl](#function-arcadedefaulturl) | [isArcDoubleSpendTxStatus](#function-isarcdoublespendtxstatus) | [stageTransactionOutputs](#function-stagetransactionoutputs) |
|
|
11676
|
+
| [arraysEqual](#function-arraysequal) | [isArcInvalidTxStatus](#function-isarcinvalidtxstatus) | [stampLog](#function-stamplog) |
|
|
11677
|
+
| [asArray](#function-asarray) | [isArcServiceErrorStatus](#function-isarcserviceerrorstatus) | [stampLogFormat](#function-stamplogformat) |
|
|
11678
|
+
| [asBsvSdkPrivateKey](#function-asbsvsdkprivatekey) | [isAutoSpendableChangeOutput](#function-isautospendablechangeoutput) | [stringifyJsonRpc](#function-stringifyjsonrpc) |
|
|
11679
|
+
| [asBsvSdkPublickKey](#function-asbsvsdkpublickkey) | [isBaseBlockHeader](#function-isbaseblockheader) | [subWork](#function-subwork) |
|
|
11680
|
+
| [asBsvSdkScript](#function-asbsvsdkscript) | [isBlockHeader](#function-isblockheader) | [swapByteOrder](#function-swapbyteorder) |
|
|
11681
|
+
| [asBsvSdkTx](#function-asbsvsdktx) | [isCreateActionSpecOp](#function-iscreateactionspecop) | [throwDummyReviewActions](#function-throwdummyreviewactions) |
|
|
11682
|
+
| [asString](#function-asstring) | [isKnownValidBulkHeaderFile](#function-isknownvalidbulkheaderfile) | [toBinaryBaseBlockHeader](#function-tobinarybaseblockheader) |
|
|
11683
|
+
| [asUint8Array](#function-asuint8array) | [isListActionsSpecOp](#function-islistactionsspecop) | [toLookupNetworkPreset](#function-tolookupnetworkpreset) |
|
|
11684
|
+
| [attemptToPostReqsToNetwork](#function-attempttopostreqstonetwork) | [isListOutputsSpecOp](#function-islistoutputsspecop) | [toWalletNetwork](#function-towalletnetwork) |
|
|
11685
|
+
| [beefForTxids](#function-beeffortxids) | [isLive](#function-islive) | [transactionInputSize](#function-transactioninputsize) |
|
|
11686
|
+
| [beginActionBatch](#function-beginactionbatch) | [isLiveBlockHeader](#function-isliveblockheader) | [transactionOutputSize](#function-transactionoutputsize) |
|
|
11687
|
+
| [binaryJsonReplacer](#function-binaryjsonreplacer) | [isManagedChangeOutput](#function-ismanagedchangeoutput) | [transactionSize](#function-transactionsize) |
|
|
11688
|
+
| [binaryJsonReviver](#function-binaryjsonreviver) | [isMoreWork](#function-ismorework) | [tstnArcadeUrl](#function-tstnarcadeurl) |
|
|
11689
|
+
| [blockHash](#function-blockhash) | [keyOffsetToHashedSecret](#function-keyoffsettohashedsecret) | [tstnChaintracksUrl](#function-tstnchaintracksurl) |
|
|
11690
|
+
| [buildSignableTransaction](#function-buildsignabletransaction) | [legacyBinaryJsonReplacer](#function-legacybinaryjsonreplacer) | [updateChaintracksFiatExchangeRates](#function-updatechaintracksfiatexchangerates) |
|
|
11691
|
+
| [classifyMerklePathResponse](#function-classifymerklepathresponse) | [listCertificates](#function-listcertificates) | [updateExchangeratesapi](#function-updateexchangeratesapi) |
|
|
11692
|
+
| [classifyReqStatus](#function-classifyreqstatus) | [lockScriptWithKeyOffsetFromPubKey](#function-lockscriptwithkeyoffsetfrompubkey) | [updateReqsFromAggregateResults](#function-updatereqsfromaggregateresults) |
|
|
11693
|
+
| [cleanupExpiredActionBatches](#function-cleanupexpiredactionbatches) | [logCreateActionArgs](#function-logcreateactionargs) | [validBulkHeaderFilesByFileHash](#function-validbulkheaderfilesbyfilehash) |
|
|
11694
|
+
| [commitActionBatch](#function-commitactionbatch) | [logWalletError](#function-logwalleterror) | [validateActionBatchInlinePayload](#function-validateactionbatchinlinepayload) |
|
|
11695
|
+
| [completeSignedTransaction](#function-completesignedtransaction) | [makeAtomicBeef](#function-makeatomicbeef) | [validateAgainstDirtyHashes](#function-validateagainstdirtyhashes) |
|
|
11696
|
+
| [computeMerklePath](#function-computemerklepath) | [makeChangeLock](#function-makechangelock) | [validateBufferOfHeaders](#function-validatebufferofheaders) |
|
|
11697
|
+
| [computeMerkleRoot](#function-computemerkleroot) | [makeMerklePathNote](#function-makemerklepathnote) | [validateBulkFileData](#function-validatebulkfiledata) |
|
|
11698
|
+
| [convertBitsToTarget](#function-convertbitstotarget) | [markStaleInputsAsSpent](#function-markstaleinputsasspent) | [validateDate](#function-validatedate) |
|
|
11699
|
+
| [convertBitsToWork](#function-convertbitstowork) | [markUserInputsSpent](#function-markuserinputsspent) | [validateEntities](#function-validateentities) |
|
|
11700
|
+
| [convertBufferToUint32](#function-convertbuffertouint32) | [maxDate](#function-maxdate) | [validateEntity](#function-validateentity) |
|
|
11701
|
+
| [convertProofToMerklePath](#function-convertprooftomerklepath) | [mergeInputBeefs](#function-mergeinputbeefs) | [validateGenerateChangeSdkParams](#function-validategeneratechangesdkparams) |
|
|
11702
|
+
| [convertUint32ToBuffer](#function-convertuint32tobuffer) | [mergeInputsIntoBeef](#function-mergeinputsintobeef) | [validateGenerateChangeSdkResult](#function-validategeneratechangesdkresult) |
|
|
11703
|
+
| [convertWocToBlockHeaderHex](#function-convertwoctoblockheaderhex) | [mergePlannerBeef](#function-mergeplannerbeef) | [validateGenesisHeader](#function-validategenesisheader) |
|
|
11704
|
+
| [createAction](#function-createaction) | [notifyTransactionsOfProof](#function-notifytransactionsofproof) | [validateHeaderDifficulty](#function-validateheaderdifficulty) |
|
|
11705
|
+
| [createAction](#function-createaction) | [offsetPrivKey](#function-offsetprivkey) | [validateHeaderFormat](#function-validateheaderformat) |
|
|
11706
|
+
| [createCoinbaseTransaction](#function-createcoinbasetransaction) | [offsetPubKey](#function-offsetpubkey) | [validateManifestActions](#function-validatemanifestactions) |
|
|
11707
|
+
| [createDefaultWalletServicesOptions](#function-createdefaultwalletservicesoptions) | [optionalArraysEqual](#function-optionalarraysequal) | [validateScriptHash](#function-validatescripthash) |
|
|
11708
|
+
| [createStorageServiceChargeScript](#function-createstorageservicechargescript) | [parseJsonRpc](#function-parsejsonrpc) | [validateSecondsSinceEpoch](#function-validatesecondssinceepoch) |
|
|
11709
|
+
| [createSyncMap](#function-createsyncmap) | [parseResults$](#function-parseresults$) | [validateStorageFeeModel](#function-validatestoragefeemodel) |
|
|
11710
|
+
| [decodeBinaryJsonValue](#function-decodebinaryjsonvalue) | [parseTxScriptOffsets](#function-parsetxscriptoffsets) | [validateSyncChunkEntities](#function-validatesyncchunkentities) |
|
|
11711
|
+
| [deserializeBaseBlockHeader](#function-deserializebaseblockheader) | [planAction](#function-planaction) | [varUintSize](#function-varuintsize) |
|
|
11712
|
+
| [deserializeBaseBlockHeaders](#function-deserializebaseblockheaders) | [plannerOutputLockingScript](#function-planneroutputlockingscript) | [verifyActionBatchManifestDigest](#function-verifyactionbatchmanifestdigest) |
|
|
11713
|
+
| [deserializeBlockHeader](#function-deserializeblockheader) | [populateUtxoDetails](#function-populateutxodetails) | [verifyHexString](#function-verifyhexstring) |
|
|
11714
|
+
| [deserializeBlockHeaders](#function-deserializeblockheaders) | [prepareActionBatchCommit](#function-prepareactionbatchcommit) | [verifyId](#function-verifyid) |
|
|
11715
|
+
| [doubleSha256BE](#function-doublesha256be) | [processAction](#function-processaction) | [verifyInteger](#function-verifyinteger) |
|
|
11716
|
+
| [doubleSha256LE](#function-doublesha256le) | [processAction](#function-processaction) | [verifyNumber](#function-verifynumber) |
|
|
11717
|
+
| [extendActionBatch](#function-extendactionbatch) | [proveCertificate](#function-provecertificate) | [verifyOne](#function-verifyone) |
|
|
11718
|
+
| [fundingRunwayExtension](#function-fundingrunwayextension) | [putActionBatchBlob](#function-putactionbatchblob) | [verifyOneOrNone](#function-verifyoneornone) |
|
|
11719
|
+
| [generateChangeSdk](#function-generatechangesdk) | [randomBytes](#function-randombytes) | [verifyOptionalHexString](#function-verifyoptionalhexstring) |
|
|
11720
|
+
| [generateChangeSdkMakeStorage](#function-generatechangesdkmakestorage) | [randomBytesBase64](#function-randombytesbase64) | [verifyRequestedOutputsUnchanged](#function-verifyrequestedoutputsunchanged) |
|
|
11721
|
+
| [genesisBuffer](#function-genesisbuffer) | [randomBytesHex](#function-randombyteshex) | [verifyTruthy](#function-verifytruthy) |
|
|
11722
|
+
| [genesisHeader](#function-genesisheader) | [randomizeOutputVouts](#function-randomizeoutputvouts) | [verifyUnlockScripts](#function-verifyunlockscripts) |
|
|
11723
|
+
| [getActionBatchCapabilities](#function-getactionbatchcapabilities) | [readUInt32BE](#function-readuint32be) | [verifyUnrequestedOutputsAreChangeOrCommission](#function-verifyunrequestedoutputsarechangeorcommission) |
|
|
11724
|
+
| [getBeefForTransaction](#function-getbeeffortransaction) | [readUInt32LE](#function-readuint32le) | [wait](#function-wait) |
|
|
11725
|
+
| [getBeefForTxid](#function-getbeeffortxid) | [redeemServiceCharges](#function-redeemservicecharges) | [workBNtoBuffer](#function-workbntobuffer) |
|
|
11726
|
+
| [getExchangeRatesIo](#function-getexchangeratesio) | [renewActionBatch](#function-renewactionbatch) | [writeUInt32BE](#function-writeuint32be) |
|
|
11727
|
+
| [getIdentityKey](#function-getidentitykey) | [repeatableRandom](#function-repeatablerandom) | [writeUInt32LE](#function-writeuint32le) |
|
|
11728
|
+
| [getProofs](#function-getproofs) | [restoreInputsToSpendable](#function-restoreinputstospendable) | |
|
|
11922
11729
|
|
|
11923
11730
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
11924
11731
|
|
|
@@ -11943,6 +11750,17 @@ a WalletError derived error object, typically for re-throw.
|
|
|
11943
11750
|
|
|
11944
11751
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
11945
11752
|
|
|
11753
|
+
---
|
|
11754
|
+
##### Function: abortActionBatch
|
|
11755
|
+
|
|
11756
|
+
```ts
|
|
11757
|
+
export async function abortActionBatch(storage: StorageProvider, auth: AuthId, batchId: string): Promise<AbortActionBatchResult>
|
|
11758
|
+
```
|
|
11759
|
+
|
|
11760
|
+
See also: [AbortActionBatchResult](./client.md#interface-abortactionbatchresult), [AuthId](./client.md#interface-authid), [StorageProvider](./storage.md#class-storageprovider)
|
|
11761
|
+
|
|
11762
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
11763
|
+
|
|
11946
11764
|
---
|
|
11947
11765
|
##### Function: acquireDirectCertificate
|
|
11948
11766
|
|
|
@@ -11954,6 +11772,40 @@ See also: [AuthId](./client.md#interface-authid), [Wallet](./client.md#class-wal
|
|
|
11954
11772
|
|
|
11955
11773
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
11956
11774
|
|
|
11775
|
+
---
|
|
11776
|
+
##### Function: actionBatchBlobDigest
|
|
11777
|
+
|
|
11778
|
+
```ts
|
|
11779
|
+
export function actionBatchBlobDigest(bytes: number[] | Uint8Array): string
|
|
11780
|
+
```
|
|
11781
|
+
|
|
11782
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
11783
|
+
|
|
11784
|
+
---
|
|
11785
|
+
##### Function: actionBatchManifestDigest
|
|
11786
|
+
|
|
11787
|
+
Digest only the semantic manifest. Inline bytes are represented by their
|
|
11788
|
+
content digest so inline and uploaded forms have the same idempotency key.
|
|
11789
|
+
|
|
11790
|
+
```ts
|
|
11791
|
+
export function actionBatchManifestDigest(manifest: Omit<ActionBatchManifest, "digest">): string
|
|
11792
|
+
```
|
|
11793
|
+
|
|
11794
|
+
See also: [ActionBatchManifest](./client.md#interface-actionbatchmanifest)
|
|
11795
|
+
|
|
11796
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
11797
|
+
|
|
11798
|
+
---
|
|
11799
|
+
##### Function: addPlannerOutputs
|
|
11800
|
+
|
|
11801
|
+
```ts
|
|
11802
|
+
export function addPlannerOutputs(target: Map<string, PlannerOutput>, outputs: ActionBatchFundingOutput[], basketName?: string): void
|
|
11803
|
+
```
|
|
11804
|
+
|
|
11805
|
+
See also: [ActionBatchFundingOutput](./client.md#interface-actionbatchfundingoutput), [PlannerOutput](./client.md#interface-planneroutput)
|
|
11806
|
+
|
|
11807
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
11808
|
+
|
|
11957
11809
|
---
|
|
11958
11810
|
##### Function: addWork
|
|
11959
11811
|
|
|
@@ -11969,6 +11821,17 @@ Sum of work1 + work2 as Buffer encoded chainWork value
|
|
|
11969
11821
|
|
|
11970
11822
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
11971
11823
|
|
|
11824
|
+
---
|
|
11825
|
+
##### Function: additionalFundingTarget
|
|
11826
|
+
|
|
11827
|
+
```ts
|
|
11828
|
+
export function additionalFundingTarget(error: WERR_INSUFFICIENT_FUNDS): number
|
|
11829
|
+
```
|
|
11830
|
+
|
|
11831
|
+
See also: [WERR_INSUFFICIENT_FUNDS](./client.md#class-werr_insufficient_funds)
|
|
11832
|
+
|
|
11833
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
11834
|
+
|
|
11972
11835
|
---
|
|
11973
11836
|
##### Function: arcDefaultUrl
|
|
11974
11837
|
|
|
@@ -12204,6 +12067,31 @@ See also: [EntityProvenTxReq](./storage.md#class-entityproventxreq), [PostReqsTo
|
|
|
12204
12067
|
|
|
12205
12068
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
12206
12069
|
|
|
12070
|
+
---
|
|
12071
|
+
##### Function: beefForTxids
|
|
12072
|
+
|
|
12073
|
+
Return the minimal subgraph needed to prove the requested transactions.
|
|
12074
|
+
|
|
12075
|
+
Parents are added before children so the resulting BEEF preserves dependency
|
|
12076
|
+
order. Shared ancestors and bumps are merged only once.
|
|
12077
|
+
|
|
12078
|
+
```ts
|
|
12079
|
+
export function beefForTxids(source: Beef, txids: string[]): Beef
|
|
12080
|
+
```
|
|
12081
|
+
|
|
12082
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
12083
|
+
|
|
12084
|
+
---
|
|
12085
|
+
##### Function: beginActionBatch
|
|
12086
|
+
|
|
12087
|
+
```ts
|
|
12088
|
+
export async function beginActionBatch(storage: StorageProvider, auth: AuthId, args: BeginActionBatchArgs): Promise<BeginActionBatchResult>
|
|
12089
|
+
```
|
|
12090
|
+
|
|
12091
|
+
See also: [AuthId](./client.md#interface-authid), [BeginActionBatchArgs](./client.md#interface-beginactionbatchargs), [BeginActionBatchResult](./client.md#interface-beginactionbatchresult), [StorageProvider](./storage.md#class-storageprovider)
|
|
12092
|
+
|
|
12093
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
12094
|
+
|
|
12207
12095
|
---
|
|
12208
12096
|
##### Function: binaryJsonReplacer
|
|
12209
12097
|
|
|
@@ -12292,6 +12180,28 @@ See also: [GetReqsAndBeefDetail](./storage.md#interface-getreqsandbeefdetail), [
|
|
|
12292
12180
|
|
|
12293
12181
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
12294
12182
|
|
|
12183
|
+
---
|
|
12184
|
+
##### Function: cleanupExpiredActionBatches
|
|
12185
|
+
|
|
12186
|
+
```ts
|
|
12187
|
+
export async function cleanupExpiredActionBatches(storage: StorageProvider): Promise<number>
|
|
12188
|
+
```
|
|
12189
|
+
|
|
12190
|
+
See also: [StorageProvider](./storage.md#class-storageprovider)
|
|
12191
|
+
|
|
12192
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
12193
|
+
|
|
12194
|
+
---
|
|
12195
|
+
##### Function: commitActionBatch
|
|
12196
|
+
|
|
12197
|
+
```ts
|
|
12198
|
+
export async function commitActionBatch(storage: StorageProvider, auth: AuthId, manifest: ActionBatchManifest): Promise<CommitActionBatchResult>
|
|
12199
|
+
```
|
|
12200
|
+
|
|
12201
|
+
See also: [ActionBatchManifest](./client.md#interface-actionbatchmanifest), [AuthId](./client.md#interface-authid), [CommitActionBatchResult](./client.md#interface-commitactionbatchresult), [StorageProvider](./storage.md#class-storageprovider)
|
|
12202
|
+
|
|
12203
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
12204
|
+
|
|
12295
12205
|
---
|
|
12296
12206
|
##### Function: completeSignedTransaction
|
|
12297
12207
|
|
|
@@ -12446,10 +12356,10 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
12446
12356
|
##### Function: createAction
|
|
12447
12357
|
|
|
12448
12358
|
```ts
|
|
12449
|
-
export async function createAction(
|
|
12359
|
+
export async function createAction(storage: StorageProvider, auth: AuthId, vargs: Validation.ValidCreateActionArgs, originator?: OriginatorDomainNameStringUnder250Bytes): Promise<StorageCreateActionResult>
|
|
12450
12360
|
```
|
|
12451
12361
|
|
|
12452
|
-
See also: [AuthId](./client.md#interface-authid), [
|
|
12362
|
+
See also: [AuthId](./client.md#interface-authid), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageProvider](./storage.md#class-storageprovider)
|
|
12453
12363
|
|
|
12454
12364
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
12455
12365
|
|
|
@@ -12457,10 +12367,10 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
12457
12367
|
##### Function: createAction
|
|
12458
12368
|
|
|
12459
12369
|
```ts
|
|
12460
|
-
export async function createAction(
|
|
12370
|
+
export async function createAction(wallet: Wallet, auth: AuthId, vargs: Validation.ValidCreateActionArgs): Promise<CreateActionResultX>
|
|
12461
12371
|
```
|
|
12462
12372
|
|
|
12463
|
-
See also: [AuthId](./client.md#interface-authid), [
|
|
12373
|
+
See also: [AuthId](./client.md#interface-authid), [CreateActionResultX](./client.md#interface-createactionresultx), [Wallet](./client.md#class-wallet)
|
|
12464
12374
|
|
|
12465
12375
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
12466
12376
|
|
|
@@ -12616,16 +12526,42 @@ export function doubleSha256LE(data: number[] | Uint8Array): number[] {
|
|
|
12616
12526
|
}
|
|
12617
12527
|
```
|
|
12618
12528
|
|
|
12619
|
-
See also: [asArray](./client.md#function-asarray)
|
|
12620
|
-
|
|
12621
|
-
Returns
|
|
12529
|
+
See also: [asArray](./client.md#function-asarray)
|
|
12530
|
+
|
|
12531
|
+
Returns
|
|
12532
|
+
|
|
12533
|
+
double sha256 hash of data, byte 0 of hash first.
|
|
12534
|
+
|
|
12535
|
+
Argument Details
|
|
12536
|
+
|
|
12537
|
+
+ **data**
|
|
12538
|
+
+ an array of bytes
|
|
12539
|
+
|
|
12540
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
12541
|
+
|
|
12542
|
+
---
|
|
12543
|
+
##### Function: extendActionBatch
|
|
12544
|
+
|
|
12545
|
+
```ts
|
|
12546
|
+
export async function extendActionBatch(storage: StorageProvider, auth: AuthId, args: ExtendActionBatchArgs): Promise<ExtendActionBatchResult>
|
|
12547
|
+
```
|
|
12548
|
+
|
|
12549
|
+
See also: [AuthId](./client.md#interface-authid), [ExtendActionBatchArgs](./client.md#interface-extendactionbatchargs), [ExtendActionBatchResult](./client.md#interface-extendactionbatchresult), [StorageProvider](./storage.md#class-storageprovider)
|
|
12622
12550
|
|
|
12623
|
-
|
|
12551
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
12624
12552
|
|
|
12625
|
-
|
|
12553
|
+
---
|
|
12554
|
+
##### Function: fundingRunwayExtension
|
|
12626
12555
|
|
|
12627
|
-
|
|
12628
|
-
|
|
12556
|
+
```ts
|
|
12557
|
+
export function fundingRunwayExtension(runwayTarget: number, ewmaConfirmedInputs: number, ewmaConfirmedSatoshis: number, availableConfirmed: Array<{
|
|
12558
|
+
satoshis: number;
|
|
12559
|
+
}>): {
|
|
12560
|
+
nextRunwayTarget: number;
|
|
12561
|
+
requestedOutputs: number;
|
|
12562
|
+
targetSatoshis: number;
|
|
12563
|
+
} | undefined
|
|
12564
|
+
```
|
|
12629
12565
|
|
|
12630
12566
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
12631
12567
|
|
|
@@ -12718,6 +12654,17 @@ See also: [BlockHeader](./client.md#interface-blockheader), [Chain](./client.md#
|
|
|
12718
12654
|
|
|
12719
12655
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
12720
12656
|
|
|
12657
|
+
---
|
|
12658
|
+
##### Function: getActionBatchCapabilities
|
|
12659
|
+
|
|
12660
|
+
```ts
|
|
12661
|
+
export function getActionBatchCapabilities(): StorageCapabilities
|
|
12662
|
+
```
|
|
12663
|
+
|
|
12664
|
+
See also: [StorageCapabilities](./client.md#interface-storagecapabilities)
|
|
12665
|
+
|
|
12666
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
12667
|
+
|
|
12721
12668
|
---
|
|
12722
12669
|
##### Function: getBeefForTransaction
|
|
12723
12670
|
|
|
@@ -12926,13 +12873,16 @@ If the transaction is already known to the user, then the outputs are reviewed a
|
|
|
12926
12873
|
and merge rules are added to the arguments passed to the storage layer.
|
|
12927
12874
|
|
|
12928
12875
|
The existing transaction's `status` determines what the merge path does next:
|
|
12929
|
-
- `'unproven'`, `'completed'`, or `'sending'`: outputs are merged
|
|
12876
|
+
- `'unproven'`, `'completed'`, or `'sending'`: outputs are merged into the existing record. The transaction status is left as-is.
|
|
12930
12877
|
The `'sending'` case covers a transaction this wallet already signed and handed to broadcast processing, but
|
|
12931
12878
|
whose proven_tx_req has not yet been advanced by the normal monitor/posting flow.
|
|
12932
|
-
- `'nosend'`:
|
|
12933
|
-
|
|
12934
|
-
`
|
|
12935
|
-
`
|
|
12879
|
+
- `'nosend'`: an ambiguous case. The transaction was created with `noSend: true` and may have been externally
|
|
12880
|
+
broadcast, may be sitting in a sendWith chain, or may be stuck mid-flight. The merge path treats the
|
|
12881
|
+
`internalizeAction` call as explicit authorization to advance the lifecycle. Specifically: `transactions.status`
|
|
12882
|
+
is promoted to `'completed'` (when a BUMP is included in the BEEF) or `'unproven'` (otherwise), and the
|
|
12883
|
+
`proven_tx_req` is moved out of `'nosend'` so Monitor's standard proof-fetching flow can finalize it.
|
|
12884
|
+
This makes the `internalizeAction` semantics consistent regardless of whether the originator shares the
|
|
12885
|
+
same storage as the internalizer or not.
|
|
12936
12886
|
- Any other status: an error.
|
|
12937
12887
|
|
|
12938
12888
|
When the transaction already exists, the description is updated. The isOutgoing sense is not changed.
|
|
@@ -12944,15 +12894,15 @@ When the transaction already exists, the description is updated. The isOutgoing
|
|
|
12944
12894
|
|
|
12945
12895
|
"wallet payment" Merge Rules:
|
|
12946
12896
|
1. Targeting an existing managed output is idempotent.
|
|
12947
|
-
2. Targeting
|
|
12948
|
-
|
|
12949
|
-
|
|
12897
|
+
2. Targeting an existing custom output converts it to managed BRC-29
|
|
12898
|
+
change and increases wallet balance. This includes verified recovery of
|
|
12899
|
+
a legacy custom row that was incorrectly placed in the default basket.
|
|
12950
12900
|
|
|
12951
12901
|
```ts
|
|
12952
|
-
export async function internalizeAction(
|
|
12902
|
+
export async function internalizeAction(storage: StorageProvider, auth: AuthId, args: InternalizeActionArgs): Promise<StorageInternalizeActionResult>
|
|
12953
12903
|
```
|
|
12954
12904
|
|
|
12955
|
-
See also: [AuthId](./client.md#interface-authid), [StorageInternalizeActionResult](./client.md#interface-storageinternalizeactionresult), [
|
|
12905
|
+
See also: [AuthId](./client.md#interface-authid), [StorageInternalizeActionResult](./client.md#interface-storageinternalizeactionresult), [StorageProvider](./storage.md#class-storageprovider)
|
|
12956
12906
|
|
|
12957
12907
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
12958
12908
|
|
|
@@ -12973,16 +12923,13 @@ If the transaction is already known to the user, then the outputs are reviewed a
|
|
|
12973
12923
|
and merge rules are added to the arguments passed to the storage layer.
|
|
12974
12924
|
|
|
12975
12925
|
The existing transaction's `status` determines what the merge path does next:
|
|
12976
|
-
- `'unproven'`, `'completed'`, or `'sending'`: outputs are merged
|
|
12926
|
+
- `'unproven'`, `'completed'`, or `'sending'`: outputs are merged; status is left as-is.
|
|
12977
12927
|
The `'sending'` case covers a transaction this wallet already signed and handed to broadcast processing, but
|
|
12978
12928
|
whose proven_tx_req has not yet been advanced by the normal monitor/posting flow.
|
|
12979
|
-
- `'nosend'`:
|
|
12980
|
-
|
|
12981
|
-
`
|
|
12982
|
-
|
|
12983
|
-
`proven_tx_req` is moved out of `'nosend'` so Monitor's standard proof-fetching flow can finalize it.
|
|
12984
|
-
This makes the `internalizeAction` semantics consistent regardless of whether the originator shares the
|
|
12985
|
-
same storage as the internalizer or not.
|
|
12929
|
+
- `'nosend'`: the `internalizeAction` call is treated as explicit authorization to advance the lifecycle.
|
|
12930
|
+
`transactions.status` is promoted to `'completed'` (BUMP-bearing BEEF) or `'unproven'` (otherwise), and the
|
|
12931
|
+
`proven_tx_req` is moved out of `'nosend'` so Monitor's proof-fetching flow can finalize it. See storage-layer
|
|
12932
|
+
`internalizeAction` docs for the full rationale.
|
|
12986
12933
|
- Any other status: an error.
|
|
12987
12934
|
|
|
12988
12935
|
When the transaction already exists, the description is updated. The isOutgoing sense is not changed.
|
|
@@ -12994,15 +12941,15 @@ When the transaction already exists, the description is updated. The isOutgoing
|
|
|
12994
12941
|
|
|
12995
12942
|
"wallet payment" Merge Rules:
|
|
12996
12943
|
1. Targeting an existing managed output is idempotent.
|
|
12997
|
-
2. Targeting
|
|
12998
|
-
|
|
12999
|
-
|
|
12944
|
+
2. Targeting a custom output converts it to managed BRC-29 change after
|
|
12945
|
+
the locking script is verified. This is the only supported in-place
|
|
12946
|
+
recovery path for a misclassified BRC-29 payment.
|
|
13000
12947
|
|
|
13001
12948
|
```ts
|
|
13002
|
-
export async function internalizeAction(
|
|
12949
|
+
export async function internalizeAction(wallet: Wallet, auth: AuthId, args: InternalizeActionArgs): Promise<StorageInternalizeActionResult>
|
|
13003
12950
|
```
|
|
13004
12951
|
|
|
13005
|
-
See also: [AuthId](./client.md#interface-authid), [StorageInternalizeActionResult](./client.md#interface-storageinternalizeactionresult), [
|
|
12952
|
+
See also: [AuthId](./client.md#interface-authid), [StorageInternalizeActionResult](./client.md#interface-storageinternalizeactionresult), [Wallet](./client.md#class-wallet)
|
|
13006
12953
|
|
|
13007
12954
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13008
12955
|
|
|
@@ -13444,6 +13391,17 @@ See also: [TrxToken](./client.md#interface-trxtoken)
|
|
|
13444
13391
|
|
|
13445
13392
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13446
13393
|
|
|
13394
|
+
---
|
|
13395
|
+
##### Function: mergePlannerBeef
|
|
13396
|
+
|
|
13397
|
+
```ts
|
|
13398
|
+
export function mergePlannerBeef(state: ActionBatchPlannerState, tx: Transaction): void
|
|
13399
|
+
```
|
|
13400
|
+
|
|
13401
|
+
See also: [ActionBatchPlannerState](./client.md#interface-actionbatchplannerstate)
|
|
13402
|
+
|
|
13403
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13404
|
+
|
|
13447
13405
|
---
|
|
13448
13406
|
##### Function: notifyTransactionsOfProof
|
|
13449
13407
|
|
|
@@ -13529,6 +13487,28 @@ See also: [TxScriptOffsets](./client.md#interface-txscriptoffsets)
|
|
|
13529
13487
|
|
|
13530
13488
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13531
13489
|
|
|
13490
|
+
---
|
|
13491
|
+
##### Function: planAction
|
|
13492
|
+
|
|
13493
|
+
```ts
|
|
13494
|
+
export async function planAction(state: ActionBatchPlannerState, args: Validation.ValidCreateActionArgs): Promise<ActionBatchPlannedAction>
|
|
13495
|
+
```
|
|
13496
|
+
|
|
13497
|
+
See also: [ActionBatchPlannedAction](./client.md#interface-actionbatchplannedaction), [ActionBatchPlannerState](./client.md#interface-actionbatchplannerstate)
|
|
13498
|
+
|
|
13499
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13500
|
+
|
|
13501
|
+
---
|
|
13502
|
+
##### Function: plannerOutputLockingScript
|
|
13503
|
+
|
|
13504
|
+
```ts
|
|
13505
|
+
export function plannerOutputLockingScript(state: ActionBatchPlannerState, output: PlannerOutput): number[]
|
|
13506
|
+
```
|
|
13507
|
+
|
|
13508
|
+
See also: [ActionBatchPlannerState](./client.md#interface-actionbatchplannerstate), [PlannerOutput](./client.md#interface-planneroutput)
|
|
13509
|
+
|
|
13510
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13511
|
+
|
|
13532
13512
|
---
|
|
13533
13513
|
##### Function: populateUtxoDetails
|
|
13534
13514
|
|
|
@@ -13548,13 +13528,13 @@ See also: [GetUtxoStatusResult](./client.md#interface-getutxostatusresult)
|
|
|
13548
13528
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13549
13529
|
|
|
13550
13530
|
---
|
|
13551
|
-
##### Function:
|
|
13531
|
+
##### Function: prepareActionBatchCommit
|
|
13552
13532
|
|
|
13553
13533
|
```ts
|
|
13554
|
-
export async function
|
|
13534
|
+
export async function prepareActionBatchCommit(storage: StorageProvider, auth: AuthId, manifest: ActionBatchManifest): Promise<PrepareActionBatchCommitResult>
|
|
13555
13535
|
```
|
|
13556
13536
|
|
|
13557
|
-
See also: [
|
|
13537
|
+
See also: [ActionBatchManifest](./client.md#interface-actionbatchmanifest), [AuthId](./client.md#interface-authid), [PrepareActionBatchCommitResult](./client.md#interface-prepareactionbatchcommitresult), [StorageProvider](./storage.md#class-storageprovider)
|
|
13558
13538
|
|
|
13559
13539
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13560
13540
|
|
|
@@ -13569,6 +13549,17 @@ See also: [AuthId](./client.md#interface-authid), [StorageProcessActionArgs](./c
|
|
|
13569
13549
|
|
|
13570
13550
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13571
13551
|
|
|
13552
|
+
---
|
|
13553
|
+
##### Function: processAction
|
|
13554
|
+
|
|
13555
|
+
```ts
|
|
13556
|
+
export async function processAction(prior: PendingSignAction | undefined, wallet: Wallet, auth: AuthId, vargs: Validation.ValidProcessActionArgs): Promise<StorageProcessActionResults>
|
|
13557
|
+
```
|
|
13558
|
+
|
|
13559
|
+
See also: [AuthId](./client.md#interface-authid), [PendingSignAction](./client.md#interface-pendingsignaction), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [Wallet](./client.md#class-wallet)
|
|
13560
|
+
|
|
13561
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13562
|
+
|
|
13572
13563
|
---
|
|
13573
13564
|
##### Function: proveCertificate
|
|
13574
13565
|
|
|
@@ -13580,6 +13571,17 @@ See also: [AuthId](./client.md#interface-authid), [Wallet](./client.md#class-wal
|
|
|
13580
13571
|
|
|
13581
13572
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13582
13573
|
|
|
13574
|
+
---
|
|
13575
|
+
##### Function: putActionBatchBlob
|
|
13576
|
+
|
|
13577
|
+
```ts
|
|
13578
|
+
export async function putActionBatchBlob(storage: StorageProvider, auth: AuthId, args: PutActionBatchBlobArgs): Promise<void>
|
|
13579
|
+
```
|
|
13580
|
+
|
|
13581
|
+
See also: [AuthId](./client.md#interface-authid), [PutActionBatchBlobArgs](./client.md#interface-putactionbatchblobargs), [StorageProvider](./storage.md#class-storageprovider)
|
|
13582
|
+
|
|
13583
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13584
|
+
|
|
13583
13585
|
---
|
|
13584
13586
|
##### Function: randomBytes
|
|
13585
13587
|
|
|
@@ -13619,6 +13621,19 @@ count cryptographically secure random bytes as hex encoded string
|
|
|
13619
13621
|
|
|
13620
13622
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13621
13623
|
|
|
13624
|
+
---
|
|
13625
|
+
##### Function: randomizeOutputVouts
|
|
13626
|
+
|
|
13627
|
+
Pure Fisher-Yates vout assignment shared by legacy and batch planning.
|
|
13628
|
+
|
|
13629
|
+
```ts
|
|
13630
|
+
export function randomizeOutputVouts<T extends {
|
|
13631
|
+
vout: number;
|
|
13632
|
+
}>(outputs: T[], randomVals?: number[]): void
|
|
13633
|
+
```
|
|
13634
|
+
|
|
13635
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13636
|
+
|
|
13622
13637
|
---
|
|
13623
13638
|
##### Function: readUInt32BE
|
|
13624
13639
|
|
|
@@ -13648,6 +13663,26 @@ See also: [TableCommission](./storage.md#interface-tablecommission)
|
|
|
13648
13663
|
|
|
13649
13664
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13650
13665
|
|
|
13666
|
+
---
|
|
13667
|
+
##### Function: renewActionBatch
|
|
13668
|
+
|
|
13669
|
+
```ts
|
|
13670
|
+
export async function renewActionBatch(storage: StorageProvider, auth: AuthId, batchId: string): Promise<RenewActionBatchResult>
|
|
13671
|
+
```
|
|
13672
|
+
|
|
13673
|
+
See also: [AuthId](./client.md#interface-authid), [RenewActionBatchResult](./client.md#interface-renewactionbatchresult), [StorageProvider](./storage.md#class-storageprovider)
|
|
13674
|
+
|
|
13675
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13676
|
+
|
|
13677
|
+
---
|
|
13678
|
+
##### Function: repeatableRandom
|
|
13679
|
+
|
|
13680
|
+
```ts
|
|
13681
|
+
export function repeatableRandom(randomVals?: number[]): () => number
|
|
13682
|
+
```
|
|
13683
|
+
|
|
13684
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13685
|
+
|
|
13651
13686
|
---
|
|
13652
13687
|
##### Function: restoreInputsToSpendable
|
|
13653
13688
|
|
|
@@ -13670,6 +13705,19 @@ See also: [BulkHeaderFileInfo](./services.md#interface-bulkheaderfileinfo), [Cha
|
|
|
13670
13705
|
|
|
13671
13706
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13672
13707
|
|
|
13708
|
+
---
|
|
13709
|
+
##### Function: selectCanonicalChange
|
|
13710
|
+
|
|
13711
|
+
Pure exact / least-over / largest-under change selection policy.
|
|
13712
|
+
|
|
13713
|
+
```ts
|
|
13714
|
+
export function selectCanonicalChange<T extends CanonicalFundingCandidate>(outputs: T[], targetSatoshis: number, exactSatoshis?: number): T | undefined
|
|
13715
|
+
```
|
|
13716
|
+
|
|
13717
|
+
See also: [CanonicalFundingCandidate](./storage.md#interface-canonicalfundingcandidate)
|
|
13718
|
+
|
|
13719
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13720
|
+
|
|
13673
13721
|
---
|
|
13674
13722
|
##### Function: serializeBaseBlockHeader
|
|
13675
13723
|
|
|
@@ -13813,6 +13861,17 @@ See also: [AuthId](./client.md#interface-authid), [SignActionResultX](./client.m
|
|
|
13813
13861
|
|
|
13814
13862
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13815
13863
|
|
|
13864
|
+
---
|
|
13865
|
+
##### Function: stageTransactionOutputs
|
|
13866
|
+
|
|
13867
|
+
```ts
|
|
13868
|
+
export function stageTransactionOutputs(state: ActionBatchPlannerState, tx: Transaction, dcr: StorageCreateActionResult): void
|
|
13869
|
+
```
|
|
13870
|
+
|
|
13871
|
+
See also: [ActionBatchPlannerState](./client.md#interface-actionbatchplannerstate), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult)
|
|
13872
|
+
|
|
13873
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13874
|
+
|
|
13816
13875
|
---
|
|
13817
13876
|
##### Function: stampLog
|
|
13818
13877
|
|
|
@@ -13900,17 +13959,6 @@ new buffer with byte order reversed.
|
|
|
13900
13959
|
|
|
13901
13960
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13902
13961
|
|
|
13903
|
-
---
|
|
13904
|
-
##### Function: tableAuthSessionToPeerSession
|
|
13905
|
-
|
|
13906
|
-
```ts
|
|
13907
|
-
export function tableAuthSessionToPeerSession(row: TableAuthSession): PeerSession
|
|
13908
|
-
```
|
|
13909
|
-
|
|
13910
|
-
See also: [TableAuthSession](./storage.md#interface-tableauthsession)
|
|
13911
|
-
|
|
13912
|
-
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
13913
|
-
|
|
13914
13962
|
---
|
|
13915
13963
|
##### Function: throwDummyReviewActions
|
|
13916
13964
|
|
|
@@ -14129,6 +14177,17 @@ object where keys are file hashes of known bulk header files.
|
|
|
14129
14177
|
|
|
14130
14178
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
14131
14179
|
|
|
14180
|
+
---
|
|
14181
|
+
##### Function: validateActionBatchInlinePayload
|
|
14182
|
+
|
|
14183
|
+
```ts
|
|
14184
|
+
export function validateActionBatchInlinePayload(manifest: ActionBatchManifest): void
|
|
14185
|
+
```
|
|
14186
|
+
|
|
14187
|
+
See also: [ActionBatchManifest](./client.md#interface-actionbatchmanifest)
|
|
14188
|
+
|
|
14189
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
14190
|
+
|
|
14132
14191
|
---
|
|
14133
14192
|
##### Function: validateAgainstDirtyHashes
|
|
14134
14193
|
|
|
@@ -14333,6 +14392,20 @@ Argument Details
|
|
|
14333
14392
|
|
|
14334
14393
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
14335
14394
|
|
|
14395
|
+
---
|
|
14396
|
+
##### Function: validateManifestActions
|
|
14397
|
+
|
|
14398
|
+
```ts
|
|
14399
|
+
export async function validateManifestActions(storage: StorageProvider, batch: TableActionBatch, manifest: ActionBatchManifest): Promise<{
|
|
14400
|
+
actions: ValidatedBatchAction[];
|
|
14401
|
+
dependencyBeef: number[];
|
|
14402
|
+
}>
|
|
14403
|
+
```
|
|
14404
|
+
|
|
14405
|
+
See also: [ActionBatchManifest](./client.md#interface-actionbatchmanifest), [StorageProvider](./storage.md#class-storageprovider), [TableActionBatch](./storage.md#interface-tableactionbatch), [ValidatedBatchAction](./storage.md#interface-validatedbatchaction)
|
|
14406
|
+
|
|
14407
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
14408
|
+
|
|
14336
14409
|
---
|
|
14337
14410
|
##### Function: validateScriptHash
|
|
14338
14411
|
|
|
@@ -14401,6 +14474,17 @@ See also: [WERR_INVALID_PARAMETER](./client.md#class-werr_invalid_parameter)
|
|
|
14401
14474
|
|
|
14402
14475
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
14403
14476
|
|
|
14477
|
+
---
|
|
14478
|
+
##### Function: verifyActionBatchManifestDigest
|
|
14479
|
+
|
|
14480
|
+
```ts
|
|
14481
|
+
export function verifyActionBatchManifestDigest(manifest: ActionBatchManifest): boolean
|
|
14482
|
+
```
|
|
14483
|
+
|
|
14484
|
+
See also: [ActionBatchManifest](./client.md#interface-actionbatchmanifest)
|
|
14485
|
+
|
|
14486
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
14487
|
+
|
|
14404
14488
|
---
|
|
14405
14489
|
##### Function: verifyHexString
|
|
14406
14490
|
|
|
@@ -14671,6 +14755,8 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
14671
14755
|
|
|
14672
14756
|
| | | |
|
|
14673
14757
|
| --- | --- | --- |
|
|
14758
|
+
| [ActionBatchMode](#type-actionbatchmode) | [GetScriptHashHistoryService](#type-getscripthashhistoryservice) | [PostTxsService](#type-posttxsservice) |
|
|
14759
|
+
| [ActionBatchStatus](#type-actionbatchstatus) | [GetStatusForTxidsService](#type-getstatusfortxidsservice) | [ProvenTxReqStatus](#type-proventxreqstatus) |
|
|
14674
14760
|
| [AnyBlockHeader](#type-anyblockheader) | [GetUtxoStatusOutputFormat](#type-getutxostatusoutputformat) | [ReorgListener](#type-reorglistener) |
|
|
14675
14761
|
| [ByteEncoding](#type-byteencoding) | [GetUtxoStatusService](#type-getutxostatusservice) | [ReviewActionResultStatus](#type-reviewactionresultstatus) |
|
|
14676
14762
|
| [ByteInput](#type-byteinput) | [HeaderListener](#type-headerlistener) | [ScriptHashFormat](#type-scripthashformat) |
|
|
@@ -14680,13 +14766,29 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
14680
14766
|
| [FiatCurrencyCode](#type-fiatcurrencycode) | [MonitorStorage](#type-monitorstorage) | [TransactionStatus](#type-transactionstatus) |
|
|
14681
14767
|
| [GetMerklePathService](#type-getmerklepathservice) | [PostBeefService](#type-postbeefservice) | [UpdateFiatExchangeRateService](#type-updatefiatexchangerateservice) |
|
|
14682
14768
|
| [GetRawTxService](#type-getrawtxservice) | [PostReqsToNetworkDetailsStatus](#type-postreqstonetworkdetailsstatus) | [WalletLoggerLevel](#type-walletloggerlevel) |
|
|
14683
|
-
| [GetScriptHashHistoryService](#type-getscripthashhistoryservice) | [PostTxsService](#type-posttxsservice) | |
|
|
14684
|
-
| [GetStatusForTxidsService](#type-getstatusfortxidsservice) | [ProvenTxReqStatus](#type-proventxreqstatus) | |
|
|
14685
14769
|
|
|
14686
14770
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
14687
14771
|
|
|
14688
14772
|
---
|
|
14689
14773
|
|
|
14774
|
+
##### Type: ActionBatchMode
|
|
14775
|
+
|
|
14776
|
+
```ts
|
|
14777
|
+
export type ActionBatchMode = "auto" | "legacy"
|
|
14778
|
+
```
|
|
14779
|
+
|
|
14780
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
14781
|
+
|
|
14782
|
+
---
|
|
14783
|
+
##### Type: ActionBatchStatus
|
|
14784
|
+
|
|
14785
|
+
```ts
|
|
14786
|
+
export type ActionBatchStatus = "active" | "prepared" | "committed" | "aborted" | "expired"
|
|
14787
|
+
```
|
|
14788
|
+
|
|
14789
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
14790
|
+
|
|
14791
|
+
---
|
|
14690
14792
|
##### Type: AnyBlockHeader
|
|
14691
14793
|
|
|
14692
14794
|
Union of all block header variants
|
|
@@ -15084,21 +15186,96 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
15084
15186
|
|
|
15085
15187
|
| | | |
|
|
15086
15188
|
| --- | --- | --- |
|
|
15087
|
-
| [
|
|
15088
|
-
| [
|
|
15089
|
-
| [
|
|
15090
|
-
| [
|
|
15091
|
-
| [
|
|
15092
|
-
| [
|
|
15093
|
-
| [
|
|
15094
|
-
| [
|
|
15095
|
-
| [
|
|
15096
|
-
| [
|
|
15189
|
+
| [ACTION_BATCH_HARD_LIFETIME_MS](#variable-action_batch_hard_lifetime_ms) | [MAX_STORAGE_COMMISSION_SATOSHIS](#variable-max_storage_commission_satoshis) | [queryOverlay](#variable-queryoverlay) |
|
|
15190
|
+
| [ACTION_BATCH_LEASE_MS](#variable-action_batch_lease_ms) | [ProvenTxReqNonTerminalStatus](#variable-proventxreqnonterminalstatus) | [specOpFailedActions](#variable-specopfailedactions) |
|
|
15191
|
+
| [ACTION_BATCH_MAX_BLOB_BYTES](#variable-action_batch_max_blob_bytes) | [ProvenTxReqTerminalStatus](#variable-proventxreqterminalstatus) | [specOpInvalidChange](#variable-specopinvalidchange) |
|
|
15192
|
+
| [ACTION_BATCH_MAX_CHUNKS_PER_BLOB](#variable-action_batch_max_chunks_per_blob) | [TESTNET_DEFAULT_SETTINGS](#variable-testnet_default_settings) | [specOpNoSendActions](#variable-specopnosendactions) |
|
|
15193
|
+
| [ACTION_BATCH_MAX_CONCURRENT_UPLOADS](#variable-action_batch_max_concurrent_uploads) | [aggregateActionResults](#variable-aggregateactionresults) | [specOpSetWalletChangeParams](#variable-specopsetwalletchangeparams) |
|
|
15194
|
+
| [ACTION_BATCH_MAX_INLINE_BYTES](#variable-action_batch_max_inline_bytes) | [brc29ProtocolID](#variable-brc29protocolid) | [specOpThrowReviewActions](#variable-specopthrowreviewactions) |
|
|
15195
|
+
| [ACTION_BATCH_MAX_LOGICAL_BLOB_BYTES](#variable-action_batch_max_logical_blob_bytes) | [dirtyHashes](#variable-dirtyhashes) | [specOpWalletBalance](#variable-specopwalletbalance) |
|
|
15196
|
+
| [ACTION_BATCH_MAX_RESERVATION_EXTENSION_OUTPUTS](#variable-action_batch_max_reservation_extension_outputs) | [logger](#variable-logger) | [specOpWalletManagedUtxos](#variable-specopwalletmanagedutxos) |
|
|
15197
|
+
| [ARCADE_POST_BEEF_CONCURRENCY](#variable-arcade_post_beef_concurrency) | [managedChangeOutputFields](#variable-managedchangeoutputfields) | [transactionColumnsWithoutRawTx](#variable-transactioncolumnswithoutrawtx) |
|
|
15198
|
+
| [BINARY_ENCODING](#variable-binary_encoding) | [maxChangeOutputsPerTransaction](#variable-maxchangeoutputspertransaction) | [transformVerifiableCertificatesWithTrust](#variable-transformverifiablecertificateswithtrust) |
|
|
15199
|
+
| [BINARY_ENCODING_HEADER](#variable-binary_encoding_header) | [maxPossibleSatoshis](#variable-maxpossiblesatoshis) | [validBulkHeaderFiles](#variable-validbulkheaderfiles) |
|
|
15200
|
+
| [BINARY_REQUEST_ENCODING_HEADER](#variable-binary_request_encoding_header) | [outputColumnsWithoutLockingScript](#variable-outputcolumnswithoutlockingscript) | |
|
|
15201
|
+
| [DEFAULT_SETTINGS](#variable-default_settings) | [parseResults](#variable-parseresults) | |
|
|
15202
|
+
|
|
15203
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
15204
|
+
|
|
15205
|
+
---
|
|
15206
|
+
|
|
15207
|
+
##### Variable: ACTION_BATCH_HARD_LIFETIME_MS
|
|
15208
|
+
|
|
15209
|
+
```ts
|
|
15210
|
+
ACTION_BATCH_HARD_LIFETIME_MS = 60 * 60 * 1000
|
|
15211
|
+
```
|
|
15212
|
+
|
|
15213
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
15214
|
+
|
|
15215
|
+
---
|
|
15216
|
+
##### Variable: ACTION_BATCH_LEASE_MS
|
|
15217
|
+
|
|
15218
|
+
```ts
|
|
15219
|
+
ACTION_BATCH_LEASE_MS = 15 * 60 * 1000
|
|
15220
|
+
```
|
|
15221
|
+
|
|
15222
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
15223
|
+
|
|
15224
|
+
---
|
|
15225
|
+
##### Variable: ACTION_BATCH_MAX_BLOB_BYTES
|
|
15226
|
+
|
|
15227
|
+
```ts
|
|
15228
|
+
ACTION_BATCH_MAX_BLOB_BYTES = 8 * 1024 * 1024
|
|
15229
|
+
```
|
|
15230
|
+
|
|
15231
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
15232
|
+
|
|
15233
|
+
---
|
|
15234
|
+
##### Variable: ACTION_BATCH_MAX_CHUNKS_PER_BLOB
|
|
15235
|
+
|
|
15236
|
+
```ts
|
|
15237
|
+
ACTION_BATCH_MAX_CHUNKS_PER_BLOB = 64
|
|
15238
|
+
```
|
|
15239
|
+
|
|
15240
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
15241
|
+
|
|
15242
|
+
---
|
|
15243
|
+
##### Variable: ACTION_BATCH_MAX_CONCURRENT_UPLOADS
|
|
15244
|
+
|
|
15245
|
+
```ts
|
|
15246
|
+
ACTION_BATCH_MAX_CONCURRENT_UPLOADS = 4
|
|
15247
|
+
```
|
|
15248
|
+
|
|
15249
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
15250
|
+
|
|
15251
|
+
---
|
|
15252
|
+
##### Variable: ACTION_BATCH_MAX_INLINE_BYTES
|
|
15253
|
+
|
|
15254
|
+
```ts
|
|
15255
|
+
ACTION_BATCH_MAX_INLINE_BYTES = 4 * 1024 * 1024
|
|
15256
|
+
```
|
|
15257
|
+
|
|
15258
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
15259
|
+
|
|
15260
|
+
---
|
|
15261
|
+
##### Variable: ACTION_BATCH_MAX_LOGICAL_BLOB_BYTES
|
|
15262
|
+
|
|
15263
|
+
```ts
|
|
15264
|
+
ACTION_BATCH_MAX_LOGICAL_BLOB_BYTES = 64 * 1024 * 1024
|
|
15265
|
+
```
|
|
15097
15266
|
|
|
15098
15267
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
15099
15268
|
|
|
15100
15269
|
---
|
|
15270
|
+
##### Variable: ACTION_BATCH_MAX_RESERVATION_EXTENSION_OUTPUTS
|
|
15271
|
+
|
|
15272
|
+
```ts
|
|
15273
|
+
ACTION_BATCH_MAX_RESERVATION_EXTENSION_OUTPUTS = 64
|
|
15274
|
+
```
|
|
15275
|
+
|
|
15276
|
+
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
15101
15277
|
|
|
15278
|
+
---
|
|
15102
15279
|
##### Variable: ARCADE_POST_BEEF_CONCURRENCY
|
|
15103
15280
|
|
|
15104
15281
|
```ts
|