@arkade-os/sdk 0.4.26 → 0.4.28
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/README.md +36 -125
- package/dist/adapters/asyncStorage.cjs +48 -0
- package/dist/adapters/asyncStorage.cjs.map +1 -0
- package/dist/adapters/asyncStorage.d.cts +16 -0
- package/dist/{types/storage → adapters}/asyncStorage.d.ts +5 -2
- package/dist/adapters/asyncStorage.js +46 -0
- package/dist/adapters/asyncStorage.js.map +1 -0
- package/dist/adapters/expo.cjs +19 -0
- package/dist/adapters/expo.cjs.map +1 -0
- package/dist/adapters/expo.d.cts +48 -0
- package/dist/adapters/expo.d.ts +48 -0
- package/dist/adapters/expo.js +6 -0
- package/dist/adapters/expo.js.map +1 -0
- package/dist/adapters/fileSystem.cjs +116 -0
- package/dist/adapters/fileSystem.cjs.map +1 -0
- package/dist/adapters/fileSystem.d.cts +17 -0
- package/dist/{types/storage → adapters}/fileSystem.d.ts +5 -2
- package/dist/adapters/fileSystem.js +93 -0
- package/dist/adapters/fileSystem.js.map +1 -0
- package/dist/adapters/indexedDB.cjs +103 -0
- package/dist/adapters/indexedDB.cjs.map +1 -0
- package/dist/adapters/indexedDB.d.cts +18 -0
- package/dist/{types/storage → adapters}/indexedDB.d.ts +5 -2
- package/dist/adapters/indexedDB.js +101 -0
- package/dist/adapters/indexedDB.js.map +1 -0
- package/dist/adapters/localStorage.cjs +50 -0
- package/dist/adapters/localStorage.cjs.map +1 -0
- package/dist/{types/storage/inMemory.d.ts → adapters/localStorage.d.cts} +6 -3
- package/dist/{types/storage → adapters}/localStorage.d.ts +5 -2
- package/dist/adapters/localStorage.js +48 -0
- package/dist/adapters/localStorage.js.map +1 -0
- package/dist/ark-TZ1gXAXU.d.cts +3880 -0
- package/dist/ark-TZ1gXAXU.d.ts +3880 -0
- package/dist/{types/worker/expo/asyncStorageTaskQueue.d.ts → asyncStorageTaskQueue-Cb1F_Z9s.d.ts} +6 -3
- package/dist/asyncStorageTaskQueue-EFqSmYTg.d.cts +49 -0
- package/dist/chunk-5BLDMQED.cjs +18 -0
- package/dist/chunk-5BLDMQED.cjs.map +1 -0
- package/dist/chunk-5PG7DV7A.cjs +805 -0
- package/dist/chunk-5PG7DV7A.cjs.map +1 -0
- package/dist/chunk-A3EMF7RN.js +95 -0
- package/dist/chunk-A3EMF7RN.js.map +1 -0
- package/dist/chunk-ADV27S4N.cjs +2701 -0
- package/dist/chunk-ADV27S4N.cjs.map +1 -0
- package/dist/chunk-BQLHADL7.js +13805 -0
- package/dist/chunk-BQLHADL7.js.map +1 -0
- package/dist/chunk-CFZMTDWI.js +209 -0
- package/dist/chunk-CFZMTDWI.js.map +1 -0
- package/dist/chunk-FG5ACJJW.cjs +212 -0
- package/dist/chunk-FG5ACJJW.cjs.map +1 -0
- package/dist/chunk-HW3JJ323.js +768 -0
- package/dist/chunk-HW3JJ323.js.map +1 -0
- package/dist/chunk-I3DGUUCT.cjs +838 -0
- package/dist/chunk-I3DGUUCT.cjs.map +1 -0
- package/dist/chunk-IPX2R7FR.cjs +100 -0
- package/dist/chunk-IPX2R7FR.cjs.map +1 -0
- package/dist/chunk-NSBPE2FW.js +15 -0
- package/dist/chunk-NSBPE2FW.js.map +1 -0
- package/dist/chunk-T64LAI7L.js +829 -0
- package/dist/chunk-T64LAI7L.js.map +1 -0
- package/dist/chunk-ZBUDLTBO.js +2671 -0
- package/dist/chunk-ZBUDLTBO.js.map +1 -0
- package/dist/chunk-ZLO6NETT.cjs +13910 -0
- package/dist/chunk-ZLO6NETT.cjs.map +1 -0
- package/dist/contracts/handlers/index.cjs +26 -0
- package/dist/contracts/handlers/index.cjs.map +1 -0
- package/dist/contracts/handlers/index.d.cts +7 -0
- package/dist/contracts/handlers/index.d.ts +7 -0
- package/dist/contracts/handlers/index.js +5 -0
- package/dist/contracts/handlers/index.js.map +1 -0
- package/dist/delegate-BFZs69hp.d.cts +84 -0
- package/dist/delegate-aaVGfWsV.d.ts +84 -0
- package/dist/index-B22cA64m.d.cts +199 -0
- package/dist/{types/storage/index.d.ts → index-C0IanN1m.d.cts} +3 -1
- package/dist/index-C0IanN1m.d.ts +11 -0
- package/dist/index-NDla_UoJ.d.ts +199 -0
- package/dist/index.cjs +480 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +3343 -0
- package/dist/index.d.ts +3343 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/repositories/realm/index.cjs +513 -0
- package/dist/repositories/realm/index.cjs.map +1 -0
- package/dist/repositories/realm/index.d.cts +217 -0
- package/dist/{types/repositories/realm/schemas.d.ts → repositories/realm/index.d.ts} +80 -112
- package/dist/repositories/realm/index.js +507 -0
- package/dist/repositories/realm/index.js.map +1 -0
- package/dist/repositories/sqlite/index.cjs +588 -0
- package/dist/repositories/sqlite/index.cjs.map +1 -0
- package/dist/repositories/sqlite/index.d.cts +118 -0
- package/dist/{types/repositories/sqlite/walletRepository.d.ts → repositories/sqlite/index.d.ts} +58 -5
- package/dist/repositories/sqlite/index.js +585 -0
- package/dist/repositories/sqlite/index.js.map +1 -0
- package/dist/taskRunner-C6Ff4OaU.d.cts +114 -0
- package/dist/taskRunner-yvPN8Z0K.d.ts +114 -0
- package/dist/wallet/expo/background.cjs +93 -0
- package/dist/wallet/expo/background.cjs.map +1 -0
- package/dist/wallet/expo/background.d.cts +84 -0
- package/dist/wallet/expo/background.d.ts +84 -0
- package/dist/wallet/expo/background.js +68 -0
- package/dist/wallet/expo/background.js.map +1 -0
- package/dist/wallet/expo/index.cjs +171 -0
- package/dist/wallet/expo/index.cjs.map +1 -0
- package/dist/wallet/expo/index.d.cts +122 -0
- package/dist/{types/wallet/expo/wallet.d.ts → wallet/expo/index.d.ts} +45 -22
- package/dist/wallet/expo/index.js +169 -0
- package/dist/wallet/expo/index.js.map +1 -0
- package/dist/wallet-AF-p-OWj.d.cts +774 -0
- package/dist/wallet-D9NBRqvC.d.ts +774 -0
- package/dist/worker/expo/index.cjs +140 -0
- package/dist/worker/expo/index.cjs.map +1 -0
- package/dist/worker/expo/index.d.cts +29 -0
- package/dist/worker/expo/index.d.ts +29 -0
- package/dist/worker/expo/index.js +121 -0
- package/dist/worker/expo/index.js.map +1 -0
- package/package.json +110 -76
- package/dist/cjs/adapters/asyncStorage.js +0 -5
- package/dist/cjs/adapters/expo.js +0 -8
- package/dist/cjs/adapters/fileSystem.js +0 -5
- package/dist/cjs/adapters/indexedDB.js +0 -5
- package/dist/cjs/adapters/localStorage.js +0 -5
- package/dist/cjs/arkfee/celenv.js +0 -43
- package/dist/cjs/arkfee/estimator.js +0 -143
- package/dist/cjs/arkfee/index.js +0 -5
- package/dist/cjs/arkfee/types.js +0 -26
- package/dist/cjs/arknote/index.js +0 -128
- package/dist/cjs/bip322/index.js +0 -270
- package/dist/cjs/contracts/arkcontract.js +0 -147
- package/dist/cjs/contracts/contractManager.js +0 -629
- package/dist/cjs/contracts/contractWatcher.js +0 -598
- package/dist/cjs/contracts/handlers/default.js +0 -93
- package/dist/cjs/contracts/handlers/delegate.js +0 -90
- package/dist/cjs/contracts/handlers/helpers.js +0 -115
- package/dist/cjs/contracts/handlers/index.js +0 -19
- package/dist/cjs/contracts/handlers/registry.js +0 -89
- package/dist/cjs/contracts/handlers/vhtlc.js +0 -194
- package/dist/cjs/contracts/index.js +0 -41
- package/dist/cjs/contracts/types.js +0 -2
- package/dist/cjs/contracts/vtxoOwnership.js +0 -78
- package/dist/cjs/extension/asset/assetGroup.js +0 -228
- package/dist/cjs/extension/asset/assetId.js +0 -152
- package/dist/cjs/extension/asset/assetInput.js +0 -222
- package/dist/cjs/extension/asset/assetOutput.js +0 -174
- package/dist/cjs/extension/asset/assetRef.js +0 -148
- package/dist/cjs/extension/asset/index.js +0 -23
- package/dist/cjs/extension/asset/metadata.js +0 -187
- package/dist/cjs/extension/asset/packet.js +0 -114
- package/dist/cjs/extension/asset/types.js +0 -22
- package/dist/cjs/extension/asset/utils.js +0 -105
- package/dist/cjs/extension/index.js +0 -254
- package/dist/cjs/extension/packet.js +0 -20
- package/dist/cjs/forfeit.js +0 -45
- package/dist/cjs/identity/descriptor.js +0 -169
- package/dist/cjs/identity/descriptorProvider.js +0 -2
- package/dist/cjs/identity/hdCapableIdentity.js +0 -2
- package/dist/cjs/identity/index.js +0 -38
- package/dist/cjs/identity/seedIdentity.js +0 -461
- package/dist/cjs/identity/serialize.js +0 -171
- package/dist/cjs/identity/singleKey.js +0 -126
- package/dist/cjs/identity/staticDescriptorProvider.js +0 -65
- package/dist/cjs/index.js +0 -200
- package/dist/cjs/intent/index.js +0 -259
- package/dist/cjs/musig2/index.js +0 -11
- package/dist/cjs/musig2/keys.js +0 -57
- package/dist/cjs/musig2/nonces.js +0 -48
- package/dist/cjs/musig2/sign.js +0 -102
- package/dist/cjs/networks.js +0 -26
- package/dist/cjs/package.json +0 -3
- package/dist/cjs/providers/ark.js +0 -577
- package/dist/cjs/providers/delegator.js +0 -85
- package/dist/cjs/providers/electrum.js +0 -869
- package/dist/cjs/providers/errors.js +0 -59
- package/dist/cjs/providers/expoArk.js +0 -82
- package/dist/cjs/providers/expoIndexer.js +0 -111
- package/dist/cjs/providers/expoUtils.js +0 -124
- package/dist/cjs/providers/indexer.js +0 -630
- package/dist/cjs/providers/onchain.js +0 -262
- package/dist/cjs/providers/utils.js +0 -121
- package/dist/cjs/repositories/contractRepository.js +0 -2
- package/dist/cjs/repositories/inMemory/contractRepository.js +0 -55
- package/dist/cjs/repositories/inMemory/walletRepository.js +0 -115
- package/dist/cjs/repositories/index.js +0 -34
- package/dist/cjs/repositories/indexedDB/contractRepository.js +0 -187
- package/dist/cjs/repositories/indexedDB/db.js +0 -19
- package/dist/cjs/repositories/indexedDB/manager.js +0 -100
- package/dist/cjs/repositories/indexedDB/schema.js +0 -204
- package/dist/cjs/repositories/indexedDB/walletRepository.js +0 -474
- package/dist/cjs/repositories/indexedDB/websqlAdapter.js +0 -144
- package/dist/cjs/repositories/migrations/contractRepositoryImpl.js +0 -127
- package/dist/cjs/repositories/migrations/fromStorageAdapter.js +0 -66
- package/dist/cjs/repositories/migrations/walletRepositoryImpl.js +0 -184
- package/dist/cjs/repositories/realm/contractRepository.js +0 -116
- package/dist/cjs/repositories/realm/index.js +0 -11
- package/dist/cjs/repositories/realm/schemas.js +0 -157
- package/dist/cjs/repositories/realm/types.js +0 -7
- package/dist/cjs/repositories/realm/walletRepository.js +0 -305
- package/dist/cjs/repositories/scriptFromAddress.js +0 -16
- package/dist/cjs/repositories/serialization.js +0 -82
- package/dist/cjs/repositories/sqlite/contractRepository.js +0 -135
- package/dist/cjs/repositories/sqlite/index.js +0 -7
- package/dist/cjs/repositories/sqlite/types.js +0 -2
- package/dist/cjs/repositories/sqlite/walletRepository.js +0 -441
- package/dist/cjs/repositories/walletRepository.js +0 -2
- package/dist/cjs/script/address.js +0 -108
- package/dist/cjs/script/base.js +0 -185
- package/dist/cjs/script/default.js +0 -57
- package/dist/cjs/script/delegate.js +0 -53
- package/dist/cjs/script/tapscript.js +0 -619
- package/dist/cjs/script/vhtlc.js +0 -170
- package/dist/cjs/storage/asyncStorage.js +0 -50
- package/dist/cjs/storage/fileSystem.js +0 -141
- package/dist/cjs/storage/inMemory.js +0 -24
- package/dist/cjs/storage/index.js +0 -2
- package/dist/cjs/storage/indexedDB.js +0 -101
- package/dist/cjs/storage/localStorage.js +0 -51
- package/dist/cjs/tree/signingSession.js +0 -229
- package/dist/cjs/tree/txTree.js +0 -192
- package/dist/cjs/tree/validation.js +0 -107
- package/dist/cjs/utils/anchor.js +0 -35
- package/dist/cjs/utils/arkTransaction.js +0 -271
- package/dist/cjs/utils/bip21.js +0 -127
- package/dist/cjs/utils/syncCursors.js +0 -128
- package/dist/cjs/utils/timelock.js +0 -59
- package/dist/cjs/utils/transaction.js +0 -28
- package/dist/cjs/utils/transactionHistory.js +0 -183
- package/dist/cjs/utils/txSizeEstimator.js +0 -132
- package/dist/cjs/utils/unknownFields.js +0 -174
- package/dist/cjs/wallet/asset-manager.js +0 -330
- package/dist/cjs/wallet/asset.js +0 -119
- package/dist/cjs/wallet/batch.js +0 -183
- package/dist/cjs/wallet/delegator.js +0 -302
- package/dist/cjs/wallet/expo/background.js +0 -116
- package/dist/cjs/wallet/expo/index.js +0 -9
- package/dist/cjs/wallet/expo/wallet.js +0 -230
- package/dist/cjs/wallet/hdDescriptorProvider.js +0 -159
- package/dist/cjs/wallet/index.js +0 -82
- package/dist/cjs/wallet/onchain.js +0 -290
- package/dist/cjs/wallet/ramps.js +0 -216
- package/dist/cjs/wallet/serviceWorker/wallet-message-handler.js +0 -953
- package/dist/cjs/wallet/serviceWorker/wallet.js +0 -1173
- package/dist/cjs/wallet/unroll.js +0 -289
- package/dist/cjs/wallet/utils.js +0 -111
- package/dist/cjs/wallet/validation.js +0 -154
- package/dist/cjs/wallet/vtxo-manager.js +0 -1142
- package/dist/cjs/wallet/wallet.js +0 -2049
- package/dist/cjs/worker/browser/service-worker-manager.js +0 -183
- package/dist/cjs/worker/browser/utils.js +0 -67
- package/dist/cjs/worker/errors.js +0 -16
- package/dist/cjs/worker/expo/asyncStorageTaskQueue.js +0 -78
- package/dist/cjs/worker/expo/index.js +0 -13
- package/dist/cjs/worker/expo/processors/contractPollProcessor.js +0 -62
- package/dist/cjs/worker/expo/processors/index.js +0 -6
- package/dist/cjs/worker/expo/taskQueue.js +0 -41
- package/dist/cjs/worker/expo/taskRunner.js +0 -73
- package/dist/cjs/worker/messageBus.js +0 -473
- package/dist/esm/adapters/asyncStorage.js +0 -1
- package/dist/esm/adapters/expo.js +0 -3
- package/dist/esm/adapters/fileSystem.js +0 -1
- package/dist/esm/adapters/indexedDB.js +0 -1
- package/dist/esm/adapters/localStorage.js +0 -1
- package/dist/esm/arkfee/celenv.js +0 -40
- package/dist/esm/arkfee/estimator.js +0 -139
- package/dist/esm/arkfee/index.js +0 -1
- package/dist/esm/arkfee/types.js +0 -22
- package/dist/esm/arknote/index.js +0 -124
- package/dist/esm/bip322/index.js +0 -267
- package/dist/esm/contracts/arkcontract.js +0 -140
- package/dist/esm/contracts/contractManager.js +0 -625
- package/dist/esm/contracts/contractWatcher.js +0 -594
- package/dist/esm/contracts/handlers/default.js +0 -90
- package/dist/esm/contracts/handlers/delegate.js +0 -87
- package/dist/esm/contracts/handlers/helpers.js +0 -110
- package/dist/esm/contracts/handlers/index.js +0 -12
- package/dist/esm/contracts/handlers/registry.js +0 -86
- package/dist/esm/contracts/handlers/vhtlc.js +0 -191
- package/dist/esm/contracts/index.js +0 -13
- package/dist/esm/contracts/types.js +0 -1
- package/dist/esm/contracts/vtxoOwnership.js +0 -69
- package/dist/esm/extension/asset/assetGroup.js +0 -224
- package/dist/esm/extension/asset/assetId.js +0 -148
- package/dist/esm/extension/asset/assetInput.js +0 -217
- package/dist/esm/extension/asset/assetOutput.js +0 -169
- package/dist/esm/extension/asset/assetRef.js +0 -144
- package/dist/esm/extension/asset/index.js +0 -8
- package/dist/esm/extension/asset/metadata.js +0 -182
- package/dist/esm/extension/asset/packet.js +0 -110
- package/dist/esm/extension/asset/types.js +0 -19
- package/dist/esm/extension/asset/utils.js +0 -99
- package/dist/esm/extension/index.js +0 -248
- package/dist/esm/extension/packet.js +0 -16
- package/dist/esm/forfeit.js +0 -41
- package/dist/esm/identity/descriptor.js +0 -161
- package/dist/esm/identity/descriptorProvider.js +0 -1
- package/dist/esm/identity/hdCapableIdentity.js +0 -1
- package/dist/esm/identity/index.js +0 -12
- package/dist/esm/identity/seedIdentity.js +0 -453
- package/dist/esm/identity/serialize.js +0 -164
- package/dist/esm/identity/singleKey.js +0 -121
- package/dist/esm/identity/staticDescriptorProvider.js +0 -61
- package/dist/esm/index.js +0 -87
- package/dist/esm/intent/index.js +0 -255
- package/dist/esm/musig2/index.js +0 -3
- package/dist/esm/musig2/keys.js +0 -21
- package/dist/esm/musig2/nonces.js +0 -11
- package/dist/esm/musig2/sign.js +0 -63
- package/dist/esm/networks.js +0 -22
- package/dist/esm/package.json +0 -3
- package/dist/esm/providers/ark.js +0 -572
- package/dist/esm/providers/delegator.js +0 -81
- package/dist/esm/providers/electrum.js +0 -864
- package/dist/esm/providers/errors.js +0 -54
- package/dist/esm/providers/expoArk.js +0 -78
- package/dist/esm/providers/expoIndexer.js +0 -107
- package/dist/esm/providers/expoUtils.js +0 -87
- package/dist/esm/providers/indexer.js +0 -626
- package/dist/esm/providers/onchain.js +0 -258
- package/dist/esm/providers/utils.js +0 -117
- package/dist/esm/repositories/contractRepository.js +0 -1
- package/dist/esm/repositories/inMemory/contractRepository.js +0 -51
- package/dist/esm/repositories/inMemory/walletRepository.js +0 -111
- package/dist/esm/repositories/index.js +0 -10
- package/dist/esm/repositories/indexedDB/contractRepository.js +0 -183
- package/dist/esm/repositories/indexedDB/db.js +0 -4
- package/dist/esm/repositories/indexedDB/manager.js +0 -95
- package/dist/esm/repositories/indexedDB/schema.js +0 -199
- package/dist/esm/repositories/indexedDB/walletRepository.js +0 -470
- package/dist/esm/repositories/indexedDB/websqlAdapter.js +0 -138
- package/dist/esm/repositories/migrations/contractRepositoryImpl.js +0 -121
- package/dist/esm/repositories/migrations/fromStorageAdapter.js +0 -58
- package/dist/esm/repositories/migrations/walletRepositoryImpl.js +0 -180
- package/dist/esm/repositories/realm/contractRepository.js +0 -112
- package/dist/esm/repositories/realm/index.js +0 -3
- package/dist/esm/repositories/realm/schemas.js +0 -153
- package/dist/esm/repositories/realm/types.js +0 -6
- package/dist/esm/repositories/realm/walletRepository.js +0 -301
- package/dist/esm/repositories/scriptFromAddress.js +0 -13
- package/dist/esm/repositories/serialization.js +0 -67
- package/dist/esm/repositories/sqlite/contractRepository.js +0 -131
- package/dist/esm/repositories/sqlite/index.js +0 -2
- package/dist/esm/repositories/sqlite/types.js +0 -1
- package/dist/esm/repositories/sqlite/walletRepository.js +0 -437
- package/dist/esm/repositories/walletRepository.js +0 -1
- package/dist/esm/script/address.js +0 -104
- package/dist/esm/script/base.js +0 -179
- package/dist/esm/script/default.js +0 -54
- package/dist/esm/script/delegate.js +0 -50
- package/dist/esm/script/tapscript.js +0 -615
- package/dist/esm/script/vhtlc.js +0 -167
- package/dist/esm/storage/asyncStorage.js +0 -46
- package/dist/esm/storage/fileSystem.js +0 -104
- package/dist/esm/storage/inMemory.js +0 -20
- package/dist/esm/storage/index.js +0 -1
- package/dist/esm/storage/indexedDB.js +0 -97
- package/dist/esm/storage/localStorage.js +0 -47
- package/dist/esm/tree/signingSession.js +0 -191
- package/dist/esm/tree/txTree.js +0 -188
- package/dist/esm/tree/validation.js +0 -101
- package/dist/esm/utils/anchor.js +0 -31
- package/dist/esm/utils/arkTransaction.js +0 -264
- package/dist/esm/utils/bip21.js +0 -123
- package/dist/esm/utils/syncCursors.js +0 -119
- package/dist/esm/utils/timelock.js +0 -22
- package/dist/esm/utils/transaction.js +0 -24
- package/dist/esm/utils/transactionHistory.js +0 -180
- package/dist/esm/utils/txSizeEstimator.js +0 -128
- package/dist/esm/utils/unknownFields.js +0 -169
- package/dist/esm/wallet/asset-manager.js +0 -325
- package/dist/esm/wallet/asset.js +0 -113
- package/dist/esm/wallet/batch.js +0 -180
- package/dist/esm/wallet/delegator.js +0 -297
- package/dist/esm/wallet/expo/background.js +0 -111
- package/dist/esm/wallet/expo/index.js +0 -2
- package/dist/esm/wallet/expo/wallet.js +0 -193
- package/dist/esm/wallet/hdDescriptorProvider.js +0 -155
- package/dist/esm/wallet/index.js +0 -75
- package/dist/esm/wallet/onchain.js +0 -285
- package/dist/esm/wallet/ramps.js +0 -212
- package/dist/esm/wallet/serviceWorker/wallet-message-handler.js +0 -946
- package/dist/esm/wallet/serviceWorker/wallet.js +0 -1168
- package/dist/esm/wallet/unroll.js +0 -285
- package/dist/esm/wallet/utils.js +0 -103
- package/dist/esm/wallet/validation.js +0 -142
- package/dist/esm/wallet/vtxo-manager.js +0 -1136
- package/dist/esm/wallet/wallet.js +0 -2041
- package/dist/esm/worker/browser/service-worker-manager.js +0 -177
- package/dist/esm/worker/browser/utils.js +0 -63
- package/dist/esm/worker/errors.js +0 -11
- package/dist/esm/worker/expo/asyncStorageTaskQueue.js +0 -74
- package/dist/esm/worker/expo/index.js +0 -4
- package/dist/esm/worker/expo/processors/contractPollProcessor.js +0 -59
- package/dist/esm/worker/expo/processors/index.js +0 -1
- package/dist/esm/worker/expo/taskQueue.js +0 -37
- package/dist/esm/worker/expo/taskRunner.js +0 -69
- package/dist/esm/worker/messageBus.js +0 -469
- package/dist/types/adapters/asyncStorage.d.ts +0 -2
- package/dist/types/adapters/expo.d.ts +0 -4
- package/dist/types/adapters/fileSystem.d.ts +0 -2
- package/dist/types/adapters/indexedDB.d.ts +0 -2
- package/dist/types/adapters/localStorage.d.ts +0 -2
- package/dist/types/arkfee/celenv.d.ts +0 -25
- package/dist/types/arkfee/estimator.d.ts +0 -49
- package/dist/types/arkfee/index.d.ts +0 -2
- package/dist/types/arkfee/types.d.ts +0 -38
- package/dist/types/arknote/index.d.ts +0 -84
- package/dist/types/bip322/index.d.ts +0 -55
- package/dist/types/contracts/arkcontract.d.ts +0 -99
- package/dist/types/contracts/contractManager.d.ts +0 -381
- package/dist/types/contracts/contractWatcher.d.ts +0 -217
- package/dist/types/contracts/handlers/default.d.ts +0 -19
- package/dist/types/contracts/handlers/delegate.d.ts +0 -21
- package/dist/types/contracts/handlers/helpers.d.ts +0 -19
- package/dist/types/contracts/handlers/index.d.ts +0 -7
- package/dist/types/contracts/handlers/registry.d.ts +0 -65
- package/dist/types/contracts/handlers/vhtlc.d.ts +0 -32
- package/dist/types/contracts/index.d.ts +0 -14
- package/dist/types/contracts/types.d.ts +0 -233
- package/dist/types/contracts/vtxoOwnership.d.ts +0 -33
- package/dist/types/extension/asset/assetGroup.d.ts +0 -119
- package/dist/types/extension/asset/assetId.d.ts +0 -83
- package/dist/types/extension/asset/assetInput.d.ts +0 -64
- package/dist/types/extension/asset/assetOutput.d.ts +0 -54
- package/dist/types/extension/asset/assetRef.d.ts +0 -91
- package/dist/types/extension/asset/index.d.ts +0 -8
- package/dist/types/extension/asset/metadata.d.ts +0 -52
- package/dist/types/extension/asset/packet.d.ts +0 -41
- package/dist/types/extension/asset/types.d.ts +0 -16
- package/dist/types/extension/asset/utils.d.ts +0 -21
- package/dist/types/extension/index.d.ts +0 -56
- package/dist/types/extension/packet.d.ts +0 -21
- package/dist/types/forfeit.d.ts +0 -18
- package/dist/types/identity/descriptor.d.ts +0 -61
- package/dist/types/identity/descriptorProvider.d.ts +0 -35
- package/dist/types/identity/hdCapableIdentity.d.ts +0 -44
- package/dist/types/identity/index.d.ts +0 -56
- package/dist/types/identity/seedIdentity.d.ts +0 -254
- package/dist/types/identity/serialize.d.ts +0 -96
- package/dist/types/identity/singleKey.d.ts +0 -62
- package/dist/types/identity/staticDescriptorProvider.d.ts +0 -18
- package/dist/types/index.d.ts +0 -59
- package/dist/types/intent/index.d.ts +0 -86
- package/dist/types/musig2/index.d.ts +0 -4
- package/dist/types/musig2/keys.d.ts +0 -9
- package/dist/types/musig2/nonces.d.ts +0 -14
- package/dist/types/musig2/sign.d.ts +0 -27
- package/dist/types/networks.d.ts +0 -16
- package/dist/types/providers/ark.d.ts +0 -369
- package/dist/types/providers/delegator.d.ts +0 -82
- package/dist/types/providers/electrum.d.ts +0 -312
- package/dist/types/providers/errors.d.ts +0 -13
- package/dist/types/providers/expoArk.d.ts +0 -22
- package/dist/types/providers/expoIndexer.d.ts +0 -18
- package/dist/types/providers/expoUtils.d.ts +0 -18
- package/dist/types/providers/indexer.d.ts +0 -301
- package/dist/types/providers/onchain.d.ts +0 -148
- package/dist/types/providers/utils.d.ts +0 -12
- package/dist/types/repositories/contractRepository.d.ts +0 -32
- package/dist/types/repositories/inMemory/contractRepository.d.ts +0 -17
- package/dist/types/repositories/inMemory/walletRepository.d.ts +0 -29
- package/dist/types/repositories/index.d.ts +0 -9
- package/dist/types/repositories/indexedDB/contractRepository.d.ts +0 -21
- package/dist/types/repositories/indexedDB/db.d.ts +0 -4
- package/dist/types/repositories/indexedDB/manager.d.ts +0 -25
- package/dist/types/repositories/indexedDB/schema.d.ts +0 -9
- package/dist/types/repositories/indexedDB/walletRepository.d.ts +0 -28
- package/dist/types/repositories/indexedDB/websqlAdapter.d.ts +0 -49
- package/dist/types/repositories/migrations/contractRepositoryImpl.d.ts +0 -24
- package/dist/types/repositories/migrations/fromStorageAdapter.d.ts +0 -19
- package/dist/types/repositories/migrations/walletRepositoryImpl.d.ts +0 -27
- package/dist/types/repositories/realm/contractRepository.d.ts +0 -24
- package/dist/types/repositories/realm/index.d.ts +0 -4
- package/dist/types/repositories/realm/types.d.ts +0 -16
- package/dist/types/repositories/realm/walletRepository.d.ts +0 -34
- package/dist/types/repositories/scriptFromAddress.d.ts +0 -9
- package/dist/types/repositories/serialization.d.ts +0 -65
- package/dist/types/repositories/sqlite/contractRepository.d.ts +0 -33
- package/dist/types/repositories/sqlite/index.d.ts +0 -3
- package/dist/types/repositories/sqlite/types.d.ts +0 -18
- package/dist/types/repositories/walletRepository.d.ts +0 -72
- package/dist/types/script/address.d.ts +0 -67
- package/dist/types/script/base.d.ts +0 -105
- package/dist/types/script/default.d.ts +0 -44
- package/dist/types/script/delegate.d.ts +0 -40
- package/dist/types/script/tapscript.d.ts +0 -169
- package/dist/types/script/vhtlc.d.ts +0 -66
- package/dist/types/tree/signingSession.d.ts +0 -37
- package/dist/types/tree/txTree.d.ts +0 -28
- package/dist/types/tree/validation.d.ts +0 -15
- package/dist/types/utils/anchor.d.ts +0 -19
- package/dist/types/utils/arkTransaction.d.ts +0 -49
- package/dist/types/utils/bip21.d.ts +0 -38
- package/dist/types/utils/syncCursors.d.ts +0 -60
- package/dist/types/utils/timelock.d.ts +0 -9
- package/dist/types/utils/transaction.d.ts +0 -13
- package/dist/types/utils/transactionHistory.d.ts +0 -15
- package/dist/types/utils/txSizeEstimator.d.ts +0 -40
- package/dist/types/utils/unknownFields.d.ts +0 -83
- package/dist/types/wallet/asset-manager.d.ts +0 -69
- package/dist/types/wallet/asset.d.ts +0 -21
- package/dist/types/wallet/batch.d.ts +0 -107
- package/dist/types/wallet/delegator.d.ts +0 -48
- package/dist/types/wallet/expo/background.d.ts +0 -66
- package/dist/types/wallet/expo/index.d.ts +0 -4
- package/dist/types/wallet/hdDescriptorProvider.d.ts +0 -93
- package/dist/types/wallet/index.d.ts +0 -755
- package/dist/types/wallet/onchain.d.ts +0 -109
- package/dist/types/wallet/ramps.d.ts +0 -64
- package/dist/types/wallet/serviceWorker/wallet-message-handler.d.ts +0 -543
- package/dist/types/wallet/serviceWorker/wallet.d.ts +0 -238
- package/dist/types/wallet/unroll.d.ts +0 -114
- package/dist/types/wallet/utils.d.ts +0 -36
- package/dist/types/wallet/validation.d.ts +0 -24
- package/dist/types/wallet/vtxo-manager.d.ts +0 -476
- package/dist/types/wallet/wallet.d.ts +0 -360
- package/dist/types/worker/browser/service-worker-manager.d.ts +0 -32
- package/dist/types/worker/browser/utils.d.ts +0 -17
- package/dist/types/worker/errors.d.ts +0 -7
- package/dist/types/worker/expo/index.d.ts +0 -7
- package/dist/types/worker/expo/processors/contractPollProcessor.d.ts +0 -19
- package/dist/types/worker/expo/processors/index.d.ts +0 -1
- package/dist/types/worker/expo/taskQueue.d.ts +0 -50
- package/dist/types/worker/expo/taskRunner.d.ts +0 -66
- package/dist/types/worker/messageBus.d.ts +0 -188
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
import type { ElectrumWS } from "ws-electrumx-client";
|
|
2
|
-
import type { Network, NetworkName } from "../networks.js";
|
|
3
|
-
import type { Coin } from "../wallet/index.js";
|
|
4
|
-
import type { ExplorerTransaction, OnchainProvider } from "./onchain.js";
|
|
5
|
-
/**
|
|
6
|
-
* Default WebSocket Electrum endpoints. Mainnet, mutinynet, and signet
|
|
7
|
-
* point at Ark Labs–operated Fulcrum 2.1 deployments (which support
|
|
8
|
-
* `blockchain.transaction.broadcast_package` for atomic 1P1C TRUC
|
|
9
|
-
* relay; see `ElectrumOnchainProvider.broadcastTransaction`). Testnet
|
|
10
|
-
* defaults to Blockstream's public Fulcrum because Ark doesn't host
|
|
11
|
-
* it. Regtest assumes the `electrum-ws` websocat bridge from
|
|
12
|
-
* `vulpemventures/nigiri`.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```typescript
|
|
16
|
-
* import { ElectrumWS } from "ws-electrumx-client";
|
|
17
|
-
* import { ELECTRUM_WS_URL, ElectrumOnchainProvider, networks } from "@arkade-os/sdk";
|
|
18
|
-
*
|
|
19
|
-
* const ws = new ElectrumWS(ELECTRUM_WS_URL.bitcoin);
|
|
20
|
-
* const provider = new ElectrumOnchainProvider(ws, networks.bitcoin);
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare const ELECTRUM_WS_URL: Record<NetworkName, string>;
|
|
24
|
-
/**
|
|
25
|
-
* Hostnames for Electrum endpoints reachable over raw TCP. Provided as
|
|
26
|
-
* a reference for Node-side consumers — the SDK's
|
|
27
|
-
* {@link ElectrumOnchainProvider} only speaks WebSocket because it has
|
|
28
|
-
* to run in browsers, so this map is informational only and not
|
|
29
|
-
* consumed by any built-in provider.
|
|
30
|
-
*
|
|
31
|
-
* Public Ark Labs Fulcrum instances expose:
|
|
32
|
-
* - port 50001 — plain TCP (Electrum protocol)
|
|
33
|
-
* - port 50002 — TCP + TLS (Electrum protocol)
|
|
34
|
-
* - port 50003 — WebSocket (Electrum-over-WS, see {@link ELECTRUM_WS_URL})
|
|
35
|
-
*/
|
|
36
|
-
export declare const ELECTRUM_TCP_HOST: Record<NetworkName, string | null>;
|
|
37
|
-
export type TransactionHistory = {
|
|
38
|
-
tx_hash: string;
|
|
39
|
-
height: number;
|
|
40
|
-
fee?: number;
|
|
41
|
-
};
|
|
42
|
-
export type BlockHeader = {
|
|
43
|
-
height: number;
|
|
44
|
-
hex: string;
|
|
45
|
-
};
|
|
46
|
-
export type Unspent = {
|
|
47
|
-
txid: string;
|
|
48
|
-
vout: number;
|
|
49
|
-
witnessUtxo: {
|
|
50
|
-
script: Uint8Array;
|
|
51
|
-
value: bigint;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
type VerboseTransaction = {
|
|
55
|
-
txid: string;
|
|
56
|
-
confirmations: number;
|
|
57
|
-
blockhash?: string;
|
|
58
|
-
blocktime?: number;
|
|
59
|
-
time?: number;
|
|
60
|
-
/** Raw transaction hex. Bitcoin Core's getrawtransaction <tx> 1 always
|
|
61
|
-
* includes this; we use it to derive exact satoshi amounts instead of
|
|
62
|
-
* multiplying the floating-point `value` field by 1e8. */
|
|
63
|
-
hex?: string;
|
|
64
|
-
vout: {
|
|
65
|
-
n: number;
|
|
66
|
-
value: number;
|
|
67
|
-
scriptPubKey: {
|
|
68
|
-
addresses?: string[];
|
|
69
|
-
address?: string;
|
|
70
|
-
hex: string;
|
|
71
|
-
};
|
|
72
|
-
}[];
|
|
73
|
-
vin: {
|
|
74
|
-
txid: string;
|
|
75
|
-
vout: number;
|
|
76
|
-
}[];
|
|
77
|
-
};
|
|
78
|
-
type HeaderSubscribeResult = {
|
|
79
|
-
height: number;
|
|
80
|
-
hex: string;
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* WebSocket-based Electrum chain source using ws-electrumx-client.
|
|
84
|
-
* Provides low-level methods for the Electrum protocol.
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* ```typescript
|
|
88
|
-
* import { ElectrumWS } from "ws-electrumx-client";
|
|
89
|
-
* import { WsElectrumChainSource } from "./providers/electrum.js";
|
|
90
|
-
* import { networks } from "./networks.js";
|
|
91
|
-
*
|
|
92
|
-
* const ws = new ElectrumWS("wss://electrum.blockstream.info:50004");
|
|
93
|
-
* const chain = new WsElectrumChainSource(ws, networks.bitcoin);
|
|
94
|
-
*
|
|
95
|
-
* const history = await chain.fetchHistories([script]);
|
|
96
|
-
* await chain.close();
|
|
97
|
-
* ```
|
|
98
|
-
*/
|
|
99
|
-
export declare class WsElectrumChainSource {
|
|
100
|
-
private ws;
|
|
101
|
-
private network;
|
|
102
|
-
private cachedTip;
|
|
103
|
-
private headersSubscribePromise;
|
|
104
|
-
constructor(ws: ElectrumWS, network: Network);
|
|
105
|
-
/**
|
|
106
|
-
* Send N requests in parallel and aggregate the results, replacement
|
|
107
|
-
* for `ws.batchRequest`. The library's batchRequest is implemented as
|
|
108
|
-
* `Promise.all` over individual request promises — when one element
|
|
109
|
-
* rejects, the others remain pending. When their (often error)
|
|
110
|
-
* responses arrive later, the library rejects them too, and nobody is
|
|
111
|
-
* awaiting them: the rejections become unhandled and crash the test
|
|
112
|
-
* runner / pollute production logs.
|
|
113
|
-
*
|
|
114
|
-
* `safeBatchRequest` issues each request through `ws.request` (so each
|
|
115
|
-
* has its own request-promise lifecycle), waits for all of them via
|
|
116
|
-
* `Promise.allSettled` (every promise gets an explicit handler), and
|
|
117
|
-
* then surfaces the first error if any failed. Same wall-clock cost
|
|
118
|
-
* as the library's batch (parallel send), no orphan rejections.
|
|
119
|
-
*
|
|
120
|
-
* Use this in place of `ws.batchRequest` for any call where one or
|
|
121
|
-
* more elements may legitimately error (e.g. electrs index lag
|
|
122
|
-
* surfacing as `missingheight` for a subset of heights/txids).
|
|
123
|
-
*/
|
|
124
|
-
safeBatchRequest<T>(requests: {
|
|
125
|
-
method: string;
|
|
126
|
-
params: unknown[];
|
|
127
|
-
}[]): Promise<T[]>;
|
|
128
|
-
fetchTransactions(txids: string[]): Promise<{
|
|
129
|
-
txID: string;
|
|
130
|
-
hex: string;
|
|
131
|
-
}[]>;
|
|
132
|
-
fetchVerboseTransaction(txid: string): Promise<VerboseTransaction>;
|
|
133
|
-
fetchVerboseTransactions(txids: string[]): Promise<VerboseTransaction[]>;
|
|
134
|
-
/**
|
|
135
|
-
* Look up the block height of a confirmed transaction without relying
|
|
136
|
-
* on the verbose-tx endpoint. `blockchain.transaction.get_merkle` is
|
|
137
|
-
* part of the standard SPV protocol and is supported by both Fulcrum
|
|
138
|
-
* and electrs (whereas `blockchain.transaction.get` with verbose=true
|
|
139
|
-
* is Fulcrum-only). Returns `null` when the tx is in the mempool —
|
|
140
|
-
* electrs in that case rejects with a "not yet in a block" error.
|
|
141
|
-
*/
|
|
142
|
-
fetchTxMerkle(txid: string): Promise<{
|
|
143
|
-
blockHeight: number;
|
|
144
|
-
} | null>;
|
|
145
|
-
unsubscribeScriptStatus(script: Uint8Array): Promise<void>;
|
|
146
|
-
subscribeScriptStatus(script: Uint8Array, callback: (scripthash: string, status: string | null) => void): Promise<void>;
|
|
147
|
-
fetchHistories(scripts: Uint8Array[]): Promise<TransactionHistory[][]>;
|
|
148
|
-
fetchHistory(script: Uint8Array): Promise<TransactionHistory[]>;
|
|
149
|
-
fetchBlockHeaders(heights: number[]): Promise<BlockHeader[]>;
|
|
150
|
-
fetchBlockHeader(height: number): Promise<BlockHeader>;
|
|
151
|
-
/**
|
|
152
|
-
* Returns the current chain tip and keeps it fresh via a single
|
|
153
|
-
* server-side subscription. Subsequent calls return the cached tip
|
|
154
|
-
* (updated by background notifications) without round-tripping to the
|
|
155
|
-
* server. Previously each call issued `blockchain.headers.subscribe` as
|
|
156
|
-
* a regular request, leaving a stale subscription on the server every
|
|
157
|
-
* time — under polling that adds up. ws-electrumx-client deduplicates
|
|
158
|
-
* `subscribe()` by method+params, so registering once is enough.
|
|
159
|
-
*/
|
|
160
|
-
subscribeHeaders(): Promise<HeaderSubscribeResult>;
|
|
161
|
-
estimateFees(targetNumberBlocks: number): Promise<number>;
|
|
162
|
-
broadcastTransaction(txHex: string): Promise<string>;
|
|
163
|
-
/**
|
|
164
|
-
* Submit a package of raw transactions atomically via Fulcrum's
|
|
165
|
-
* `blockchain.transaction.broadcast_package` method, the on-the-wire
|
|
166
|
-
* equivalent of bitcoind's `submitpackage` RPC.
|
|
167
|
-
*
|
|
168
|
-
* Required for TRUC (BIP 431) 1P1C relay where the parent has zero
|
|
169
|
-
* (or below-minfee) fee and depends on the child to pay for both via
|
|
170
|
-
* CPFP — sequential broadcast cannot work in that case because the
|
|
171
|
-
* parent would be rejected from the mempool on its own.
|
|
172
|
-
*
|
|
173
|
-
* @param txHexes - Topologically sorted raw transactions; child must
|
|
174
|
-
* be the last element. Currently must be a 1P1C pair
|
|
175
|
-
* (length 2). Parents may not depend on each other.
|
|
176
|
-
* @returns The child transaction id (the last entry in the array),
|
|
177
|
-
* computed locally — `broadcast_package` itself returns
|
|
178
|
-
* `{success, errors}` rather than a txid.
|
|
179
|
-
* @throws If the server does not implement `broadcast_package` (e.g.
|
|
180
|
-
* ElectrumX, or older Fulcrum, or Fulcrum backed by bitcoind
|
|
181
|
-
* < v28.0.0). Callers must surface this clearly to users —
|
|
182
|
-
* this method does NOT silently fall back to sequential
|
|
183
|
-
* broadcasts because doing so would let TRUC packages fail
|
|
184
|
-
* in subtle ways.
|
|
185
|
-
* @throws If the server returns `success=false`, surfacing the
|
|
186
|
-
* underlying mempool rejection in the error message.
|
|
187
|
-
*/
|
|
188
|
-
broadcastPackage(txHexes: string[]): Promise<string>;
|
|
189
|
-
getRelayFee(): Promise<number>;
|
|
190
|
-
close(): Promise<void>;
|
|
191
|
-
waitForAddressReceivesTx(addr: string): Promise<void>;
|
|
192
|
-
listUnspents(addr: string): Promise<Unspent[]>;
|
|
193
|
-
/**
|
|
194
|
-
* Get the address string for a script output, if decodable.
|
|
195
|
-
*/
|
|
196
|
-
addressForScript(scriptHex: string): string | undefined;
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Electrum-based implementation of the {@link OnchainProvider} interface.
|
|
200
|
-
*
|
|
201
|
-
* Built around the subset of the Electrum protocol that both **Fulcrum**
|
|
202
|
-
* and **electrs** support — listunspent, get_history, transaction.get
|
|
203
|
-
* (non-verbose), transaction.get_merkle, block.header,
|
|
204
|
-
* headers.subscribe, scripthash.subscribe, estimatefee, relayfee, and
|
|
205
|
-
* broadcast. The verbose form of `transaction.get` is **not** used (it's
|
|
206
|
-
* Fulcrum-only and rejected by electrs); confirmation status is derived
|
|
207
|
-
* from `transaction.get_merkle` plus parsed block headers.
|
|
208
|
-
*
|
|
209
|
-
* Output amounts are derived from parsed raw transaction bytes (exact
|
|
210
|
-
* bigints), never the floating-point `value` fields some servers return.
|
|
211
|
-
*
|
|
212
|
-
* Atomic 1P1C package broadcast (TRUC / BIP 431) is supported via
|
|
213
|
-
* Fulcrum's `blockchain.transaction.broadcast_package`. There is **no
|
|
214
|
-
* fallback** to sequential parent-then-child broadcasts — TRUC packages
|
|
215
|
-
* with a zero-fee parent would silently fail, so the call surfaces an
|
|
216
|
-
* error against servers that don't support the method.
|
|
217
|
-
*
|
|
218
|
-
* @example Default URL via {@link ELECTRUM_WS_URL}
|
|
219
|
-
* ```typescript
|
|
220
|
-
* import { ElectrumWS } from "ws-electrumx-client";
|
|
221
|
-
* import {
|
|
222
|
-
* ElectrumOnchainProvider,
|
|
223
|
-
* ELECTRUM_WS_URL,
|
|
224
|
-
* networks,
|
|
225
|
-
* } from "@arkade-os/sdk";
|
|
226
|
-
*
|
|
227
|
-
* const ws = new ElectrumWS(ELECTRUM_WS_URL.bitcoin);
|
|
228
|
-
* const provider = new ElectrumOnchainProvider(ws, networks.bitcoin);
|
|
229
|
-
*
|
|
230
|
-
* const coins = await provider.getCoins("bc1q...");
|
|
231
|
-
* await provider.close();
|
|
232
|
-
* ```
|
|
233
|
-
*
|
|
234
|
-
* @example Custom server
|
|
235
|
-
* ```typescript
|
|
236
|
-
* const ws = new ElectrumWS("wss://my-fulcrum.example:50004");
|
|
237
|
-
* const provider = new ElectrumOnchainProvider(ws, networks.bitcoin);
|
|
238
|
-
* ```
|
|
239
|
-
*/
|
|
240
|
-
export declare class ElectrumOnchainProvider implements OnchainProvider {
|
|
241
|
-
private ws;
|
|
242
|
-
private network;
|
|
243
|
-
private chain;
|
|
244
|
-
constructor(ws: ElectrumWS, network: Network);
|
|
245
|
-
getCoins(address: string): Promise<Coin[]>;
|
|
246
|
-
getFeeRate(): Promise<number | undefined>;
|
|
247
|
-
/**
|
|
248
|
-
* Broadcast a single transaction or a TRUC (BIP 431) 1P1C package
|
|
249
|
-
* atomically.
|
|
250
|
-
*
|
|
251
|
-
* **Server requirements for 1P1C packages:** the backing Electrum
|
|
252
|
-
* server must implement `blockchain.transaction.broadcast_package`
|
|
253
|
-
* (Fulcrum ≥ 1.10) and be backed by bitcoind ≥ v28.0.0. ElectrumX
|
|
254
|
-
* does not implement this method. There is **no fallback** to
|
|
255
|
-
* sequential parent-then-child broadcast: TRUC packages typically
|
|
256
|
-
* have a zero-fee parent and would be rejected from the mempool on
|
|
257
|
-
* their own, so a fallback would silently fail in subtle ways.
|
|
258
|
-
* Callers receiving a "method not found" error here should route
|
|
259
|
-
* through a different provider for that submission.
|
|
260
|
-
*
|
|
261
|
-
* @param txs - One transaction (single broadcast) or two
|
|
262
|
-
* topologically-sorted transactions (parent first,
|
|
263
|
-
* child last) for 1P1C package relay.
|
|
264
|
-
* @returns The broadcast txid (or the child txid for 1P1C packages).
|
|
265
|
-
*/
|
|
266
|
-
broadcastTransaction(...txs: string[]): Promise<string>;
|
|
267
|
-
getTxOutspends(txid: string): Promise<{
|
|
268
|
-
spent: boolean;
|
|
269
|
-
txid: string;
|
|
270
|
-
}[]>;
|
|
271
|
-
getTransactions(address: string): Promise<ExplorerTransaction[]>;
|
|
272
|
-
/**
|
|
273
|
-
* Resolve a list of `{tx_hash, height}` entries (as returned by the
|
|
274
|
-
* scripthash history endpoint) into ExplorerTransaction shape **without
|
|
275
|
-
* using the verbose-tx endpoint**, which only Fulcrum implements. We
|
|
276
|
-
* reconstruct everything the verbose response would have given us:
|
|
277
|
-
* - vouts ← parse the raw tx (exact sat amounts, no float precision risk)
|
|
278
|
-
* - block_time ← batch-fetch the block headers for the heights present
|
|
279
|
-
* - addresses ← decode each output's scriptPubKey via @scure/btc-signer
|
|
280
|
-
*/
|
|
281
|
-
private historyToExplorerTxs;
|
|
282
|
-
/**
|
|
283
|
-
* Build an ExplorerTransaction from a history entry plus the raw tx hex
|
|
284
|
-
* (when known) and a height→block_time map. Parse errors propagate —
|
|
285
|
-
* silently returning an empty vout would hide real outputs (e.g. a
|
|
286
|
-
* deposit) and is far worse for protocol-level money handling than
|
|
287
|
-
* failing the whole batch.
|
|
288
|
-
*/
|
|
289
|
-
private buildExplorerTx;
|
|
290
|
-
/**
|
|
291
|
-
* Decode `address` into its scriptPubKey, throwing a clear error if the
|
|
292
|
-
* input is malformed. @scure/btc-signer raises a generic decode error
|
|
293
|
-
* which is hard to map back to user input — this wraps it.
|
|
294
|
-
*/
|
|
295
|
-
private encodeAddress;
|
|
296
|
-
getTxStatus(txid: string): Promise<{
|
|
297
|
-
confirmed: false;
|
|
298
|
-
} | {
|
|
299
|
-
confirmed: true;
|
|
300
|
-
blockTime: number;
|
|
301
|
-
blockHeight: number;
|
|
302
|
-
}>;
|
|
303
|
-
getChainTip(): Promise<{
|
|
304
|
-
height: number;
|
|
305
|
-
time: number;
|
|
306
|
-
hash: string;
|
|
307
|
-
}>;
|
|
308
|
-
watchAddresses(addresses: string[], eventCallback: (txs: ExplorerTransaction[]) => void): Promise<() => void>;
|
|
309
|
-
/** Close the underlying WebSocket connection. */
|
|
310
|
-
close(): Promise<void>;
|
|
311
|
-
}
|
|
312
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare class ArkError extends Error {
|
|
2
|
-
readonly code: number;
|
|
3
|
-
readonly message: string;
|
|
4
|
-
readonly name: string;
|
|
5
|
-
readonly metadata?: Record<string, string> | undefined;
|
|
6
|
-
constructor(code: number, message: string, name: string, metadata?: Record<string, string> | undefined);
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Try to convert an error to an ArkError class, returning undefined if the error is not an ArkError
|
|
10
|
-
* @param error - The error to parse
|
|
11
|
-
* @returns The parsed ArkError, or undefined if the error is not an ArkError
|
|
12
|
-
*/
|
|
13
|
-
export declare function maybeArkError(error: any): ArkError | undefined;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { RestArkProvider, SettlementEvent, TxNotification } from "./ark.js";
|
|
2
|
-
/**
|
|
3
|
-
* Expo-compatible Arkade provider implementation using expo/fetch for SSE support.
|
|
4
|
-
* This provider works specifically in React Native/Expo environments where
|
|
5
|
-
* standard EventSource is not available but expo/fetch provides SSE capabilities.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```typescript
|
|
9
|
-
* import { ExpoArkProvider } from '@arkade-os/sdk/providers/expo';
|
|
10
|
-
*
|
|
11
|
-
* const provider = new ExpoArkProvider('https://arkade.computer');
|
|
12
|
-
* const info = await provider.getInfo();
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
export declare class ExpoArkProvider extends RestArkProvider {
|
|
16
|
-
constructor(serverUrl: string);
|
|
17
|
-
getEventStream(signal: AbortSignal, topics: string[]): AsyncIterableIterator<SettlementEvent>;
|
|
18
|
-
getTransactionsStream(signal: AbortSignal): AsyncIterableIterator<{
|
|
19
|
-
commitmentTx?: TxNotification;
|
|
20
|
-
arkTx?: TxNotification;
|
|
21
|
-
}>;
|
|
22
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { RestIndexerProvider, SubscriptionResponse } from "./indexer.js";
|
|
2
|
-
/**
|
|
3
|
-
* Expo-compatible Indexer provider implementation using expo/fetch for streaming support.
|
|
4
|
-
* This provider works specifically in React Native/Expo environments where
|
|
5
|
-
* standard fetch streaming may not work properly but expo/fetch provides streaming capabilities.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```typescript
|
|
9
|
-
* import { ExpoIndexerProvider } from '@arkade-os/sdk/adapters/expo';
|
|
10
|
-
*
|
|
11
|
-
* const provider = new ExpoIndexerProvider('https://indexer.example.com');
|
|
12
|
-
* const vtxos = await provider.getVtxos({ scripts: ['script1'] });
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
export declare class ExpoIndexerProvider extends RestIndexerProvider {
|
|
16
|
-
constructor(serverUrl: string);
|
|
17
|
-
getSubscription(subscriptionId: string, abortSignal: AbortSignal): AsyncIterableIterator<SubscriptionResponse>;
|
|
18
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dynamically imports expo/fetch with fallback to standard fetch.
|
|
3
|
-
* @returns A fetch function suitable for SSE streaming
|
|
4
|
-
*/
|
|
5
|
-
export declare function getExpoFetch(options?: {
|
|
6
|
-
requireExpo?: boolean;
|
|
7
|
-
}): Promise<typeof fetch>;
|
|
8
|
-
/**
|
|
9
|
-
* Generic SSE stream processor using fetch API with ReadableStream.
|
|
10
|
-
* Handles SSE format parsing, buffer management, and abort signals.
|
|
11
|
-
*
|
|
12
|
-
* @param url - The SSE endpoint URL
|
|
13
|
-
* @param abortSignal - Signal to abort the stream
|
|
14
|
-
* @param fetchFn - Fetch function to use (defaults to standard fetch)
|
|
15
|
-
* @param headers - Additional headers to send
|
|
16
|
-
* @param parseData - Function to parse and yield data from SSE events
|
|
17
|
-
*/
|
|
18
|
-
export declare function sseStreamIterator<T>(url: string, abortSignal: AbortSignal, fetchFn: typeof fetch, headers: Record<string, string>, parseData: (data: any) => T | null): AsyncGenerator<T, void, unknown>;
|
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
import { AssetDetails, Outpoint, VirtualCoin } from "../wallet/index.js";
|
|
2
|
-
export type PaginationOptions = {
|
|
3
|
-
pageIndex?: number;
|
|
4
|
-
pageSize?: number;
|
|
5
|
-
};
|
|
6
|
-
export declare enum IndexerTxType {
|
|
7
|
-
INDEXER_TX_TYPE_UNSPECIFIED = 0,
|
|
8
|
-
INDEXER_TX_TYPE_RECEIVED = 1,
|
|
9
|
-
INDEXER_TX_TYPE_SENT = 2
|
|
10
|
-
}
|
|
11
|
-
export declare enum ChainTxType {
|
|
12
|
-
UNSPECIFIED = "INDEXER_CHAINED_TX_TYPE_UNSPECIFIED",
|
|
13
|
-
COMMITMENT = "INDEXER_CHAINED_TX_TYPE_COMMITMENT",
|
|
14
|
-
ARK = "INDEXER_CHAINED_TX_TYPE_ARK",
|
|
15
|
-
TREE = "INDEXER_CHAINED_TX_TYPE_TREE",
|
|
16
|
-
CHECKPOINT = "INDEXER_CHAINED_TX_TYPE_CHECKPOINT"
|
|
17
|
-
}
|
|
18
|
-
export interface PageResponse {
|
|
19
|
-
/** Current page index **/
|
|
20
|
-
current: number;
|
|
21
|
-
/** Next page index **/
|
|
22
|
-
next: number;
|
|
23
|
-
/** Total pages given the page-size used in the query **/
|
|
24
|
-
total: number;
|
|
25
|
-
}
|
|
26
|
-
export interface BatchInfo {
|
|
27
|
-
totalOutputAmount: string;
|
|
28
|
-
totalOutputVtxos: number;
|
|
29
|
-
expiresAt: string;
|
|
30
|
-
swept: boolean;
|
|
31
|
-
}
|
|
32
|
-
export interface ChainTx {
|
|
33
|
-
txid: string;
|
|
34
|
-
expiresAt: string;
|
|
35
|
-
type: ChainTxType;
|
|
36
|
-
/** IDs of the transactions in the chain used as input of the current transaction. */
|
|
37
|
-
spends: string[];
|
|
38
|
-
}
|
|
39
|
-
export interface CommitmentTx {
|
|
40
|
-
startedAt: string;
|
|
41
|
-
endedAt: string;
|
|
42
|
-
batches: {
|
|
43
|
-
[key: string]: BatchInfo;
|
|
44
|
-
};
|
|
45
|
-
totalInputAmount: string;
|
|
46
|
-
totalInputVtxos: number;
|
|
47
|
-
totalOutputAmount: string;
|
|
48
|
-
totalOutputVtxos: number;
|
|
49
|
-
}
|
|
50
|
-
export interface Tx {
|
|
51
|
-
txid: string;
|
|
52
|
-
children: Record<number, string>;
|
|
53
|
-
}
|
|
54
|
-
export interface TxHistoryRecord {
|
|
55
|
-
commitmentTxid?: string;
|
|
56
|
-
virtualTxid?: string;
|
|
57
|
-
type: IndexerTxType;
|
|
58
|
-
amount: string;
|
|
59
|
-
createdAt: string;
|
|
60
|
-
isSettled: boolean;
|
|
61
|
-
settledBy: string;
|
|
62
|
-
}
|
|
63
|
-
export interface VtxoAsset {
|
|
64
|
-
assetId: string;
|
|
65
|
-
amount: string;
|
|
66
|
-
}
|
|
67
|
-
export interface Vtxo {
|
|
68
|
-
outpoint: Outpoint;
|
|
69
|
-
createdAt: string;
|
|
70
|
-
expiresAt: string | null;
|
|
71
|
-
amount: string;
|
|
72
|
-
script: string;
|
|
73
|
-
isPreconfirmed: boolean;
|
|
74
|
-
isSwept: boolean;
|
|
75
|
-
isUnrolled: boolean;
|
|
76
|
-
isSpent: boolean;
|
|
77
|
-
spentBy: string | null;
|
|
78
|
-
commitmentTxids: string[];
|
|
79
|
-
settledBy?: string;
|
|
80
|
-
arkTxid?: string;
|
|
81
|
-
assets?: VtxoAsset[];
|
|
82
|
-
}
|
|
83
|
-
export interface VtxoChain {
|
|
84
|
-
chain: ChainTx[];
|
|
85
|
-
page?: PageResponse;
|
|
86
|
-
}
|
|
87
|
-
export interface SubscriptionResponse {
|
|
88
|
-
txid?: string;
|
|
89
|
-
scripts: string[];
|
|
90
|
-
newVtxos: VirtualCoin[];
|
|
91
|
-
spentVtxos: VirtualCoin[];
|
|
92
|
-
sweptVtxos: VirtualCoin[];
|
|
93
|
-
tx?: string;
|
|
94
|
-
checkpointTxs?: Record<string, {
|
|
95
|
-
txid: string;
|
|
96
|
-
tx: string;
|
|
97
|
-
}>;
|
|
98
|
-
}
|
|
99
|
-
export interface SubscriptionHeartbeat {
|
|
100
|
-
type: "heartbeat";
|
|
101
|
-
}
|
|
102
|
-
export interface SubscriptionEvent extends SubscriptionResponse {
|
|
103
|
-
type: "event";
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Filters accepted by `IndexerProvider.getVtxos`.
|
|
107
|
-
*
|
|
108
|
-
* @remarks
|
|
109
|
-
* Exactly one of `scripts` or `outpoints` must be supplied.
|
|
110
|
-
*
|
|
111
|
-
* @see IndexerProvider.getVtxos
|
|
112
|
-
*/
|
|
113
|
-
export type GetVtxosOptions = PaginationOptions & {
|
|
114
|
-
/** Only return spendable virtual outputs. */
|
|
115
|
-
spendableOnly?: boolean;
|
|
116
|
-
/** Only return spent virtual outputs. */
|
|
117
|
-
spentOnly?: boolean;
|
|
118
|
-
/** Only return recoverable virtual outputs. */
|
|
119
|
-
recoverableOnly?: boolean;
|
|
120
|
-
/** Only return pending/preconfirmed virtual outputs. */
|
|
121
|
-
pendingOnly?: boolean;
|
|
122
|
-
/** Only return virtual outputs created after this timestamp. */
|
|
123
|
-
after?: number;
|
|
124
|
-
/** Only return virtual outputs created before this timestamp. */
|
|
125
|
-
before?: number;
|
|
126
|
-
} & ({
|
|
127
|
-
/** Scripts to search for matching virtual outputs. */
|
|
128
|
-
scripts: string[];
|
|
129
|
-
outpoints?: never;
|
|
130
|
-
} | {
|
|
131
|
-
/** Explicit outpoints to fetch. */
|
|
132
|
-
outpoints: Outpoint[];
|
|
133
|
-
scripts?: never;
|
|
134
|
-
});
|
|
135
|
-
export interface IndexerProvider {
|
|
136
|
-
/**
|
|
137
|
-
* Fetch the virtual output tree for a batch outpoint.
|
|
138
|
-
*
|
|
139
|
-
* @param batchOutpoint - Batch outpoint whose tree should be fetched
|
|
140
|
-
* @param opts - Optional pagination settings
|
|
141
|
-
* @returns virtual output tree nodes and optional pagination state
|
|
142
|
-
*/
|
|
143
|
-
getVtxoTree(batchOutpoint: Outpoint, opts?: PaginationOptions): Promise<{
|
|
144
|
-
vtxoTree: Tx[];
|
|
145
|
-
page?: PageResponse;
|
|
146
|
-
}>;
|
|
147
|
-
/**
|
|
148
|
-
* Fetch the leaf outpoints for a batch virtual output tree.
|
|
149
|
-
*
|
|
150
|
-
* @param batchOutpoint - Batch outpoint whose leaf outpoints should be fetched
|
|
151
|
-
* @param opts - Optional pagination settings
|
|
152
|
-
* @returns Leaf outpoints and optional pagination state
|
|
153
|
-
*/
|
|
154
|
-
getVtxoTreeLeaves(batchOutpoint: Outpoint, opts?: PaginationOptions): Promise<{
|
|
155
|
-
leaves: Outpoint[];
|
|
156
|
-
page?: PageResponse;
|
|
157
|
-
}>;
|
|
158
|
-
/**
|
|
159
|
-
* Fetch sweep transactions that spent a batch.
|
|
160
|
-
*
|
|
161
|
-
* @param batchOutpoint - Batch outpoint to inspect
|
|
162
|
-
* @returns Sweep transaction ids
|
|
163
|
-
*/
|
|
164
|
-
getBatchSweepTransactions(batchOutpoint: Outpoint): Promise<{
|
|
165
|
-
sweptBy: string[];
|
|
166
|
-
}>;
|
|
167
|
-
/**
|
|
168
|
-
* Fetch a commitment transaction by txid.
|
|
169
|
-
*
|
|
170
|
-
* @param txid - Commitment transaction id
|
|
171
|
-
* @returns Commitment transaction details
|
|
172
|
-
*/
|
|
173
|
-
getCommitmentTx(txid: string): Promise<CommitmentTx>;
|
|
174
|
-
/**
|
|
175
|
-
* Fetch connector transactions for a commitment transaction.
|
|
176
|
-
*
|
|
177
|
-
* @param txid - Commitment transaction id
|
|
178
|
-
* @param opts - Optional pagination settings
|
|
179
|
-
* @returns Connector transactions and optional pagination state
|
|
180
|
-
*/
|
|
181
|
-
getCommitmentTxConnectors(txid: string, opts?: PaginationOptions): Promise<{
|
|
182
|
-
connectors: Tx[];
|
|
183
|
-
page?: PageResponse;
|
|
184
|
-
}>;
|
|
185
|
-
/**
|
|
186
|
-
* Fetch forfeit transaction ids for a commitment transaction.
|
|
187
|
-
*
|
|
188
|
-
* @param txid - Commitment transaction id
|
|
189
|
-
* @param opts - Optional pagination settings
|
|
190
|
-
* @returns Forfeit transaction ids and optional pagination state
|
|
191
|
-
*/
|
|
192
|
-
getCommitmentTxForfeitTxs(txid: string, opts?: PaginationOptions): Promise<{
|
|
193
|
-
txids: string[];
|
|
194
|
-
page?: PageResponse;
|
|
195
|
-
}>;
|
|
196
|
-
/**
|
|
197
|
-
* Open a streamed subscription for a previously created subscription id.
|
|
198
|
-
*
|
|
199
|
-
* @param subscriptionId - Subscription identifier returned by `subscribeForScripts`
|
|
200
|
-
* @param abortSignal - Signal used to terminate the stream
|
|
201
|
-
* @returns Async iterator of subscription responses
|
|
202
|
-
*/
|
|
203
|
-
getSubscription(subscriptionId: string, abortSignal: AbortSignal): AsyncIterableIterator<SubscriptionResponse>;
|
|
204
|
-
/**
|
|
205
|
-
* Fetch raw virtual transactions by txid.
|
|
206
|
-
*
|
|
207
|
-
* @param txids - Virtual transaction ids to fetch
|
|
208
|
-
* @param opts - Optional pagination settings
|
|
209
|
-
* @returns Raw virtual transactions and optional pagination state
|
|
210
|
-
*/
|
|
211
|
-
getVirtualTxs(txids: string[], opts?: PaginationOptions): Promise<{
|
|
212
|
-
txs: string[];
|
|
213
|
-
page?: PageResponse;
|
|
214
|
-
}>;
|
|
215
|
-
/**
|
|
216
|
-
* Fetch the ancestry chain for a virtual output.
|
|
217
|
-
*
|
|
218
|
-
* @param vtxoOutpoint - Virtual output outpoint to inspect
|
|
219
|
-
* @param opts - Optional pagination settings
|
|
220
|
-
* @returns Chain data and optional pagination state
|
|
221
|
-
*/
|
|
222
|
-
getVtxoChain(vtxoOutpoint: Outpoint, opts?: PaginationOptions): Promise<VtxoChain>;
|
|
223
|
-
/**
|
|
224
|
-
* Fetch virtual outputs by script set or outpoints.
|
|
225
|
-
*
|
|
226
|
-
* @param opts - Virtual output filters and pagination settings
|
|
227
|
-
* @returns Virtual outputs and optional pagination state
|
|
228
|
-
*/
|
|
229
|
-
getVtxos(opts?: GetVtxosOptions): Promise<{
|
|
230
|
-
vtxos: VirtualCoin[];
|
|
231
|
-
page?: PageResponse;
|
|
232
|
-
}>;
|
|
233
|
-
/**
|
|
234
|
-
* Fetch metadata for a specific asset id.
|
|
235
|
-
*
|
|
236
|
-
* @param assetId - Asset identifier
|
|
237
|
-
* @returns Asset details
|
|
238
|
-
*/
|
|
239
|
-
getAssetDetails(assetId: string): Promise<AssetDetails>;
|
|
240
|
-
/**
|
|
241
|
-
* Create or extend a subscription for a set of scripts.
|
|
242
|
-
*
|
|
243
|
-
* @param scripts - Scripts to monitor
|
|
244
|
-
* @param subscriptionId - Existing subscription id to extend
|
|
245
|
-
* @returns Subscription id
|
|
246
|
-
*/
|
|
247
|
-
subscribeForScripts(scripts: string[], subscriptionId?: string): Promise<string>;
|
|
248
|
-
/**
|
|
249
|
-
* Remove some or all scripts from an existing subscription.
|
|
250
|
-
*
|
|
251
|
-
* @param subscriptionId - Subscription identifier to update
|
|
252
|
-
* @param scripts - Scripts to remove, or omit to remove all
|
|
253
|
-
*/
|
|
254
|
-
unsubscribeForScripts(subscriptionId: string, scripts?: string[]): Promise<void>;
|
|
255
|
-
}
|
|
256
|
-
/**
|
|
257
|
-
* REST-based indexer provider implementation.
|
|
258
|
-
* @see https://buf.build/arkade-os/arkd/docs/main:ark.v1#ark.v1.IndexerService
|
|
259
|
-
* @example
|
|
260
|
-
* ```typescript
|
|
261
|
-
* const provider = new RestIndexerProvider('https://arkade.computer');
|
|
262
|
-
* const commitmentTx = await provider.getCommitmentTx("6686af8f3be3517880821f62e6c3d749b9d6713736a1d8e229a55daa659446b2");
|
|
263
|
-
* ```
|
|
264
|
-
*/
|
|
265
|
-
export declare class RestIndexerProvider implements IndexerProvider {
|
|
266
|
-
serverUrl: string;
|
|
267
|
-
constructor(serverUrl: string);
|
|
268
|
-
getVtxoTree(batchOutpoint: Outpoint, opts?: PaginationOptions): Promise<{
|
|
269
|
-
vtxoTree: Tx[];
|
|
270
|
-
page?: PageResponse;
|
|
271
|
-
}>;
|
|
272
|
-
getVtxoTreeLeaves(batchOutpoint: Outpoint, opts?: PaginationOptions): Promise<{
|
|
273
|
-
leaves: Outpoint[];
|
|
274
|
-
page?: PageResponse;
|
|
275
|
-
}>;
|
|
276
|
-
getBatchSweepTransactions(batchOutpoint: Outpoint): Promise<{
|
|
277
|
-
sweptBy: string[];
|
|
278
|
-
}>;
|
|
279
|
-
getCommitmentTx(txid: string): Promise<CommitmentTx>;
|
|
280
|
-
getCommitmentTxConnectors(txid: string, opts?: PaginationOptions): Promise<{
|
|
281
|
-
connectors: Tx[];
|
|
282
|
-
page?: PageResponse;
|
|
283
|
-
}>;
|
|
284
|
-
getCommitmentTxForfeitTxs(txid: string, opts?: PaginationOptions): Promise<{
|
|
285
|
-
txids: string[];
|
|
286
|
-
page?: PageResponse;
|
|
287
|
-
}>;
|
|
288
|
-
getSubscription(subscriptionId: string, abortSignal: AbortSignal): AsyncIterableIterator<SubscriptionResponse>;
|
|
289
|
-
getVirtualTxs(txids: string[], opts?: PaginationOptions): Promise<{
|
|
290
|
-
txs: string[];
|
|
291
|
-
page?: PageResponse;
|
|
292
|
-
}>;
|
|
293
|
-
getVtxoChain(vtxoOutpoint: Outpoint, opts?: PaginationOptions): Promise<VtxoChain>;
|
|
294
|
-
getVtxos(opts?: GetVtxosOptions): Promise<{
|
|
295
|
-
vtxos: VirtualCoin[];
|
|
296
|
-
page?: PageResponse;
|
|
297
|
-
}>;
|
|
298
|
-
getAssetDetails(assetId: string): Promise<AssetDetails>;
|
|
299
|
-
subscribeForScripts(scripts: string[], subscriptionId?: string): Promise<string>;
|
|
300
|
-
unsubscribeForScripts(subscriptionId: string, scripts?: string[]): Promise<void>;
|
|
301
|
-
}
|