{"_id":"@btc-connect/core","_rev":"22-8dc7522323e226946796989af12b49fb","name":"@btc-connect/core","dist-tags":{"latest":"0.5.1"},"versions":{"1.0.0":{"name":"@btc-connect/core","version":"1.0.0","author":{"name":"IceHugh"},"_id":"@btc-connect/core@1.0.0","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"dist":{"shasum":"9caa5eee95a18f8cfec73fe015e1d9f65639141f","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-1.0.0.tgz","fileCount":71,"integrity":"sha512-I0LIuvdYPNeZnI5HbcwZm5nMhv42ad/h5Duh49INMzdgE5PGhHLF4FkKChsVl0A4aNlZfccWCFFXAEvuiXsJyw==","signatures":[{"sig":"MEQCIB6o7RSti1d+oSXhHga+9qGvOG+vA6iiWRPbIVeeKqh1AiBbdVIptXJe2H9b30KMe5UNme0YyO/efi5I1+cIuIH6Nw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1132558},"config":{"commitizen":{"path":"node_modules/cz-git"}},"gitHead":"b135a89d438fff6b44d9e8db059cf96a17c83e76","scripts":{"prepare":"husky || true","pre-commit":"lint-staged"},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"workspaces":["apps/*","packages/*"],"_npmVersion":"10.9.3","description":"<div align=\"center\">   <a href=\"https://github.com/IceHugh/btc-connect/blob/main/README_ZH.md\">中文</a>   <span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>   <a href=\"https://github.com/IceHugh/btc-connect/blob/main/doc.md\">Document</a>   <span>&nbsp;&nbsp;•&nbsp;&nbs","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.6","cz-git":"^1.10.1","prettier":"^3.3.3","@types/bun":"latest","lint-staged":"^15.2.10","@commitlint/cli":"^19.5.0","@commitlint/config-conventional":"^19.5.0"},"peerDependencies":{"typescript":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/core_1.0.0_1759122611611_0.9564414544062216","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@btc-connect/core","version":"0.1.0","keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"author":{"name":"btc-connect"},"license":"MIT","_id":"@btc-connect/core@0.1.0","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"homepage":"https://github.com/IceHugh/btc-connect#readme","bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"dist":{"shasum":"fbffeb2f00d07407611408b02538d804a765a576","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-0.1.0.tgz","fileCount":22,"integrity":"sha512-62fL5m1Mtqp9Ft2wTUiL0NTpnMkWLJ3SgxA078FgffTTRfVqRgl1qXRjJFzoK7IFayOPe8Y9OWUtJ+lZ93/VaQ==","signatures":[{"sig":"MEQCIFLqwhxqtQFyRQ08KBapGL/7PufaJZ5yzPyAml5bVnHJAiBbMKKoIYqu+F/CVDS70q4T5KkYiffKxKummeGF1hecPg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":74155},"main":"dist/index.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.js"}},"gitHead":"b3c0fd954d795e06901735b7831e737f1e18111d","scripts":{"dev":"bun run build --watch","lint":"biome check --write .","test":"bun test --config tsconfig.test.json","build":"tsc --emitDeclarationOnly && bun run build.js","format":"biome format --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"repository":{"url":"git+https://github.com/IceHugh/btc-connect.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.3","description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","directories":{},"sideEffects":false,"_nodeVersion":"22.18.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0","bun-plugin-dts":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.1.0_1759122854143_0.5586960990041174","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@btc-connect/core","version":"0.1.1","keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"author":{"name":"btc-connect"},"license":"MIT","_id":"@btc-connect/core@0.1.1","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"homepage":"https://github.com/IceHugh/btc-connect#readme","bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"dist":{"shasum":"e2088f6ae53cc64e6fcbee407b3fb976dae264cb","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-0.1.1.tgz","fileCount":22,"integrity":"sha512-uzPC1tP6x8qsrmZbVv7gAVA7oXAvREDONi5smJFdlx+axVkygXoyfkkSgo+Uyh5O1htlqrDKe/IeBkHvj4Ue1A==","signatures":[{"sig":"MEUCIDZacTOurxm6zMXN1Ae+2AyG/uhevE5QJ+VBUbgMFtc1AiEAhdQe4UA4dP8XBLGurfsARlyFpCDK35lDohwOlm4szrY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":74129},"main":"dist/index.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.js"}},"gitHead":"b3c0fd954d795e06901735b7831e737f1e18111d","scripts":{"dev":"bun run build --watch","lint":"biome check --write .","test":"bun test --config tsconfig.test.json","build":"tsc --emitDeclarationOnly && bun run build.js","format":"biome format --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"repository":{"url":"git+https://github.com/IceHugh/btc-connect.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.3","description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","directories":{},"sideEffects":false,"_nodeVersion":"22.18.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0","bun-plugin-dts":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.1.1_1759124431947_0.6693773111262651","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@btc-connect/core","version":"0.2.0","keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"author":"btc-connect","license":"MIT","_id":"@btc-connect/core@0.2.0","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"homepage":"https://github.com/IceHugh/btc-connect#readme","bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"dist":{"shasum":"b3def6c41070f4b3666ad820efc8bc07a443abd1","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-0.2.0.tgz","fileCount":32,"integrity":"sha512-NBZLSXgyOoUumqYwJrmFoLYyx/6knCnkwT0z3Ala8aIee52Hept0AREgYZQZIy5HgpjrMW4P6jgI2TWsLo85bQ==","signatures":[{"sig":"MEQCIFOtSZJJgxglgAhdorg6euJ4vCV9nyJ6bP6n+bIR1FYyAiB90M9rEBWBTClkCWt8KNPgXdj5jF5j3seSta9Pb2IUpA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":153886},"main":"dist/index.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.js","shasum":"b3def6c41070f4b3666ad820efc8bc07a443abd1","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"bun run build --watch","lint":"biome check --write .","test":"bun test --config tsconfig.test.json","build":"tsc --emitDeclarationOnly && bun run build.js","format":"biome format --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"_integrity":"sha512-NBZLSXgyOoUumqYwJrmFoLYyx/6knCnkwT0z3Ala8aIee52Hept0AREgYZQZIy5HgpjrMW4P6jgI2TWsLo85bQ==","repository":{"url":"https://github.com/IceHugh/btc-connect.git","type":"git","directory":"packages/core"},"_npmVersion":"10.8.3","description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","directories":{},"sideEffects":false,"_nodeVersion":"24.3.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0","bun-plugin-dts":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.2.0_1760803014534_0.9488863995291044","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@btc-connect/core","version":"0.3.0","keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"author":{"name":"btc-connect"},"license":"MIT","_id":"@btc-connect/core@0.3.0","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"homepage":"https://github.com/IceHugh/btc-connect#readme","bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"dist":{"shasum":"fde7af5bc5c1c05b2884c01066862b82a8215e95","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-0.3.0.tgz","fileCount":32,"integrity":"sha512-I1nx6EgKZ0vTClhxAIDLmI9xdI0V+bqXUaBErro5f/Pz/aUuSED+n+SCPCSDSeRNOEnHNZZa2vpO26R7c87rqQ==","signatures":[{"sig":"MEUCIFmQMi5Kdjfr7SsfIZwfwcb49A9DVDfLQBdV2QHwa+RoAiEA0JXYiVYJDU33KHgmqI9NuvWEyFUxEfiP7k0eCQmXGZ8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":153828},"main":"dist/index.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.js"}},"gitHead":"e9e7034b655501483f1bf82a6d492c0c0d828cdd","scripts":{"dev":"bun run build --watch","lint":"biome check --write .","test":"bun test","build":"tsc --emitDeclarationOnly && bun run build.js","format":"biome format --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"repository":{"url":"git+https://github.com/IceHugh/btc-connect.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.3","description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0","bun-plugin-dts":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.3.0_1760845218784_0.7303373614179498","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@btc-connect/core","version":"0.3.1","keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"author":{"name":"btc-connect"},"license":"MIT","_id":"@btc-connect/core@0.3.1","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"homepage":"https://github.com/IceHugh/btc-connect#readme","bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"dist":{"shasum":"aa47719881051813221d9b14f63ba934d6e284b1","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-0.3.1.tgz","fileCount":4,"integrity":"sha512-sn6uL2AM6nYSbW11VJakOhUALu3s7ECx5gsiJYoUGN3WNpkV/dgMEvq7WJQ9qckTf7c0pOVfx6HVI4Dp0hzjzA==","signatures":[{"sig":"MEUCIAzy9N5U1iHvrXesZI6F3tVgkY7/Ewn62n1OUSodMwqgAiEAwowbQTCEX0+fhIa6hT0I2kbbxuoDBO8RdMWLGSqwOs8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":62212},"main":"dist/index.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.js"}},"gitHead":"7a0e38d8ad9b34fd1f3cbf084fbc43a3b506b13d","scripts":{"dev":"bun run build --watch","lint":"biome check --write .","test":"bun test","build":"tsc --emitDeclarationOnly && bun run build.js","format":"biome format --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"repository":{"url":"git+https://github.com/IceHugh/btc-connect.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.3","description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0","bun-plugin-dts":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.3.1_1760845450440_0.7040388068732439","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@btc-connect/core","version":"0.3.2","keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"author":{"name":"btc-connect"},"license":"MIT","_id":"@btc-connect/core@0.3.2","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"homepage":"https://github.com/IceHugh/btc-connect#readme","bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"dist":{"shasum":"bb4177993a3bee797973e5ee7a10213b8c13a88a","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-0.3.2.tgz","fileCount":4,"integrity":"sha512-Pvj03z8zhqv/H8NwoAM9+eEMxL9RhmqCj3/nj+hel485+YN9XCVvqxpOR4WN8YRzeMoGs+9JPGyT0gIXay/aow==","signatures":[{"sig":"MEUCIDgEtWfEixR4NfFIgguHm98MpCWB5B8SKb+gpw7QOl8CAiEA35MBvY765RT37iB+FQHXclFMX1J+hhyINbOeTJO//OA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":62212},"main":"dist/index.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.js"}},"gitHead":"f714c6dc2045e4c9cfc546f50bce97b5ad32ff13","scripts":{"dev":"bun run build --watch","lint":"biome check --write .","test":"bun test","build":"tsc --emitDeclarationOnly && bun run build.js","format":"biome format --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"repository":{"url":"git+https://github.com/IceHugh/btc-connect.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.3","description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0","bun-plugin-dts":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.3.2_1760845868407_0.8571647692775362","host":"s3://npm-registry-packages-npm-production"}},"0.3.4":{"name":"@btc-connect/core","version":"0.3.4","keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"author":{"name":"btc-connect"},"license":"MIT","_id":"@btc-connect/core@0.3.4","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"homepage":"https://github.com/IceHugh/btc-connect#readme","bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"dist":{"shasum":"6e9044d39739c4d542ba330b2e9350d8532b1504","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-0.3.4.tgz","fileCount":4,"integrity":"sha512-OIr4va5xIETiw6DIJjLkZzGroGdY2itJg+D8nfYxj4ByM4fAY0NaeuHxuQqSFRuzI68YlAXlJZdoOuN3DL8drA==","signatures":[{"sig":"MEYCIQCF7Mv0AYyBFDUWs1G+QdCZUySVLCzlgJ6kiKzvpTmeyAIhAO/ohSv5UnovlJKJs5HDAOxg54Ir2ayaVr0Q46fxaP9H","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":62212},"main":"dist/index.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.js"}},"gitHead":"6baf5a236ceef2605f8184047a54c1301ab0218d","scripts":{"dev":"bun run build --watch","lint":"biome check --write .","test":"bun test","build":"tsc --emitDeclarationOnly && bun run build.js","format":"biome format --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"repository":{"url":"git+https://github.com/IceHugh/btc-connect.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.3","description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0","bun-plugin-dts":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.3.4_1760856742294_0.07077450285585263","host":"s3://npm-registry-packages-npm-production"}},"0.3.5":{"name":"@btc-connect/core","version":"0.3.5","keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"author":{"name":"btc-connect"},"license":"MIT","_id":"@btc-connect/core@0.3.5","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"homepage":"https://github.com/IceHugh/btc-connect#readme","bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"dist":{"shasum":"8bbc02b23b940cec53c8f535bbc255c53999b599","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-0.3.5.tgz","fileCount":23,"integrity":"sha512-/dlGy98I3vODe2lj3p0ovKiCc9s79NasABV6EFENZgaWWp0MUBHOb2EWRti9hb2ciePtlLJHgKkt4IGvkco19g==","signatures":[{"sig":"MEUCICl7hZJZsNoMCYm3iT6rwVhvIGuT0BxRpmRk+RrEyw+WAiEA5DM4Qe9rxobrmo2hpFPpzogG+XNGPP4FuhdbvUiQhlY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":119132},"main":"dist/index.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.js"}},"gitHead":"f36240fbbfc7da476de097a91476ab77498b8ffb","scripts":{"dev":"bun run build --watch","lint":"biome check --write .","test":"bun test","build":"tsc --emitDeclarationOnly && bun run build.js","format":"biome format --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"repository":{"url":"git+https://github.com/IceHugh/btc-connect.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.3","description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0","bun-plugin-dts":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.3.5_1760969638576_0.16371735982736024","host":"s3://npm-registry-packages-npm-production"}},"0.3.6":{"name":"@btc-connect/core","version":"0.3.6","keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"author":{"name":"btc-connect"},"license":"MIT","_id":"@btc-connect/core@0.3.6","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"homepage":"https://github.com/IceHugh/btc-connect#readme","bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"dist":{"shasum":"2ba7832f35589234d8f3655ba4759e018201cc45","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-0.3.6.tgz","fileCount":8,"integrity":"sha512-ziHC1ZkiKf1HOGaD62IY1b23D3z8u6KlWb3NxQAkSkn45YmP+FFJGV3XTdaVwxkQkwB3bPjAggZ8OiqOrNTxlA==","signatures":[{"sig":"MEYCIQDmg6X8Abj/Dm9yTc55e6kOt8STsMYEImvnFpffEFd1qwIhAOVXKlzlrVrNG5qNcDsukKZrErhrgP5cixyb3zrmjgqt","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":66579},"main":"dist/index.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.js"}},"gitHead":"ad6f9eba5dbbfebad0f365ac84d593824a695a2a","scripts":{"dev":"bun run build --watch","lint":"biome check --write .","test":"bun test","build":"tsc --emitDeclarationOnly && bun run build.js","format":"biome format --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"repository":{"url":"git+https://github.com/IceHugh/btc-connect.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.3","description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0","bun-plugin-dts":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.3.6_1760971930052_0.8253725926593463","host":"s3://npm-registry-packages-npm-production"}},"0.3.7":{"name":"@btc-connect/core","version":"0.3.7","keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"author":{"name":"btc-connect"},"license":"MIT","_id":"@btc-connect/core@0.3.7","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"homepage":"https://github.com/IceHugh/btc-connect#readme","bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"dist":{"shasum":"837f4f9fdcfb4f412e6d657ec697aed25191bfc6","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-0.3.7.tgz","fileCount":8,"integrity":"sha512-rAaCWvWFJ06lnVj5oGUyx8NnLeLl3RuOrF9osWlS6GiOhnaM61fFVkC/fdOOn7v0ZHiCo0e7QWAioBLexsMxCw==","signatures":[{"sig":"MEUCIQCjq5KWmZy0nD8xfHlHb7PTpvoBP5Q1pbh+oSMITfk7JgIgPRrinxaJYl+/+wsKew4GcOGQrhnVPwYaNYueKoKlGYw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":66625},"main":"dist/index.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.js"}},"gitHead":"48fabaa65ff4ca4aba9b1bc0bd0f81830e3d541d","scripts":{"dev":"bun run build --watch","lint":"biome check --write .","test":"bun test","build":"tsc --emitDeclarationOnly && bun run build.js","format":"biome format --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"repository":{"url":"git+https://github.com/IceHugh/btc-connect.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.3","description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0","bun-plugin-dts":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.3.7_1761058611737_0.9713873708916956","host":"s3://npm-registry-packages-npm-production"}},"0.3.8":{"name":"@btc-connect/core","version":"0.3.8","keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"author":{"name":"btc-connect"},"license":"MIT","_id":"@btc-connect/core@0.3.8","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"homepage":"https://github.com/IceHugh/btc-connect#readme","bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"dist":{"shasum":"e267c90add2e9d652e7fdb7198ebaf8a6b647950","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-0.3.8.tgz","fileCount":8,"integrity":"sha512-hrzToY9oOHBNvcXWFB+vfwnRus8Rm8oNGV8nnTcd7yChRJQqmfh9OTHnFliMtbisuwOuEmVKjB6scchq8/XZMQ==","signatures":[{"sig":"MEUCIG2V/5ItbOBLYq/iK94mHheMJbxQOo2ASk6hEKGToBZvAiEAzg+L2pXi0A57aPhSHROi6tchxeCzrCWACGSwJCiUwQA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":66625},"main":"dist/index.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.js"}},"gitHead":"d71d1d37e63dd4709b7f23cd38ed12f884f788f4","scripts":{"dev":"bun run build --watch","lint":"biome check --write .","test":"bun test","build":"tsc --emitDeclarationOnly && bun run build.js","format":"biome format --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"repository":{"url":"git+https://github.com/IceHugh/btc-connect.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.3","description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0","bun-plugin-dts":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.3.8_1761270528805_0.7659236417040178","host":"s3://npm-registry-packages-npm-production"}},"0.3.9":{"name":"@btc-connect/core","version":"0.3.9","keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"author":{"name":"btc-connect"},"license":"MIT","_id":"@btc-connect/core@0.3.9","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"homepage":"https://github.com/IceHugh/btc-connect#readme","bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"dist":{"shasum":"6d4abb57c2db5e399b6da311a909206c89a1fff5","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-0.3.9.tgz","fileCount":4,"integrity":"sha512-lpmsrcWNeJvE/zU1TrIPdDYBvWvzyDBJXg7FCGjpWpjX2xhP8ObgZLycmcqVGXp2a5y6Qwc2D4Z1kbWuop1yJQ==","signatures":[{"sig":"MEYCIQDiR/F5v67sNtt5UFUUM5H64E2QnpfNAQxBZqINTBUu7gIhAJKMuyqeLqlT2d4/Rr089fujwcSii+x/5miR81pDpvZW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":62823},"main":"dist/index.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.js"}},"gitHead":"fc0a835cfcbd9b2af9b8acf229855c2499373a37","scripts":{"dev":"bun run build --watch","lint":"biome check --write .","test":"bun test","build":"tsc --emitDeclarationOnly && bun run build.js","format":"biome format --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"repository":{"url":"git+https://github.com/IceHugh/btc-connect.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.3","description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0","bun-plugin-dts":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.3.9_1761290593237_0.15593237920460656","host":"s3://npm-registry-packages-npm-production"}},"0.3.10":{"name":"@btc-connect/core","version":"0.3.10","keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"author":{"name":"btc-connect"},"license":"MIT","_id":"@btc-connect/core@0.3.10","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"homepage":"https://github.com/IceHugh/btc-connect#readme","bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"dist":{"shasum":"dcb253622fcd2d36330f03dd11fcb536f8754f93","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-0.3.10.tgz","fileCount":4,"integrity":"sha512-Aqlxl182Y2s9aRUHN5XUgyuHqrpoYJfZG/inSMmQ5NUbmXzP2DevehB/oNxiuhjvIfzapAG2SPrO/gtHRWWpiA==","signatures":[{"sig":"MEYCIQChp+oZJbhvpVYm15bitQTzOHQs+HE9wGxJ/H95ueNekgIhAL+p837u1DArqV53ZI89QYwJAEeLykl0EOfdq3zCqj1B","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":62824},"main":"dist/index.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.js"}},"gitHead":"00d2954d2d80f2bd755935815daf620448582ba8","scripts":{"dev":"bun run build --watch","lint":"biome check --write .","test":"bun test","build":"tsc --emitDeclarationOnly && bun run build.js","format":"biome format --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"repository":{"url":"git+https://github.com/IceHugh/btc-connect.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.3","description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0","bun-plugin-dts":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.3.10_1761291655978_0.8523130154950773","host":"s3://npm-registry-packages-npm-production"}},"0.3.11":{"name":"@btc-connect/core","version":"0.3.11","keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"author":{"name":"btc-connect"},"license":"MIT","_id":"@btc-connect/core@0.3.11","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"homepage":"https://github.com/IceHugh/btc-connect#readme","bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"dist":{"shasum":"15449148e481d2fd7d5a7c7e223a115ec02cf06e","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-0.3.11.tgz","fileCount":4,"integrity":"sha512-RkEBjgUfJ73LvoHxEdgRWRPxH2DJPEJNG7aGsu7HnzKYkaHf80niJYgI5KRZp2pNC7GNm0KCKErfZWqrlfchaA==","signatures":[{"sig":"MEQCIBKqVhF5YMYbzZ82EPfECbK1M62RdwrHWEF8Lg3qABFSAiAYcsIntwBy8ApgkakPHhyiCp2BfwEt5qE/8/o7pB2pxw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":63994},"main":"dist/index.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.js"}},"gitHead":"5a1626dbdc04cfb54ddb308b31ca18d32b51ef78","scripts":{"dev":"bun run build --watch","lint":"biome check --write .","test":"bun test","build":"tsc --emitDeclarationOnly && bun run build.js","format":"biome format --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"repository":{"url":"git+https://github.com/IceHugh/btc-connect.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.3","description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0","bun-plugin-dts":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.3.11_1761494283261_0.6179056181241009","host":"s3://npm-registry-packages-npm-production"}},"0.3.12":{"name":"@btc-connect/core","version":"0.3.12","keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"author":{"name":"btc-connect"},"license":"MIT","_id":"@btc-connect/core@0.3.12","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"homepage":"https://github.com/IceHugh/btc-connect#readme","bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"dist":{"shasum":"b40e494b79ca770b82958df7fe5f629b7a335dd8","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-0.3.12.tgz","fileCount":4,"integrity":"sha512-+c0CY74dxiw/YLtIPSHtrHX9oppIr/sV1KpNeE7/64rMp/ckrQxH0HxYSNqxRHKo4h5GdTRU+5ueejHR24W6GQ==","signatures":[{"sig":"MEYCIQDoHIHc9+1QDHgVJWE/qNX4XrGh96OsY2lz/L48ZpnjVAIhAIK1GjtQRIxbQwYzi0E7oT4kWy6+LB+/He75ImZ3IfSY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":63994},"main":"dist/index.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.js"}},"gitHead":"c8b8885d3ce64eaf458d86566330957bc4df6a9e","scripts":{"dev":"bun run build --watch","lint":"biome check --write .","test":"bun test","build":"tsc --emitDeclarationOnly && bun run build.js","format":"biome format --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"repository":{"url":"git+https://github.com/IceHugh/btc-connect.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.3","description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0","bun-plugin-dts":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.3.12_1761497986304_0.6366964285786005","host":"s3://npm-registry-packages-npm-production"}},"0.3.13":{"name":"@btc-connect/core","version":"0.3.13","keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"author":{"name":"btc-connect"},"license":"MIT","_id":"@btc-connect/core@0.3.13","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"homepage":"https://github.com/IceHugh/btc-connect#readme","bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"dist":{"shasum":"5f0f46dd9a3075c48905bbc623f829c518e41e92","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-0.3.13.tgz","fileCount":4,"integrity":"sha512-kLTwCXx+myyGikdVU6oi7nCjQBGTBUDgKPaPbakHhydfoDws18uRS+NkH8xO4rRl33nrvIt2STxGY7dn+XyVjg==","signatures":[{"sig":"MEQCIF6aj6Yy9xCThNKmZes9+l+eN2JnnwCSEETt2P4Upr3nAiAO+BklV/gDkEx2y47xAjsoOpiGMYpHgqBSGUU2ZRTDxA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":63994},"main":"dist/index.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.js"}},"gitHead":"5cb624f8fe31688a2c200190a757c1a088602cad","scripts":{"dev":"bun run build --watch","lint":"biome check --write .","test":"bun test","build":"tsc --emitDeclarationOnly && bun run build.js","format":"biome format --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"repository":{"url":"git+https://github.com/IceHugh/btc-connect.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.3","description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0","bun-plugin-dts":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.3.13_1761523949312_0.008165777706152344","host":"s3://npm-registry-packages-npm-production"}},"0.3.14":{"name":"@btc-connect/core","version":"0.3.14","keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"author":{"name":"btc-connect"},"license":"MIT","_id":"@btc-connect/core@0.3.14","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"homepage":"https://github.com/IceHugh/btc-connect#readme","bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"dist":{"shasum":"e7ed5297971dde8f95210752d7b3018aa6c7d3ef","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-0.3.14.tgz","fileCount":4,"integrity":"sha512-+SXDnw6RIm4oBlMzR2WGJyUfgGipMogSz5VX8IPk7gwO+mWxB5RJNmB6O+fzBsuGloRcLMZpSSfgrhGKflxRkg==","signatures":[{"sig":"MEUCIB505nMXg2D/60SU7RWB69hvw4STItDz7fr22WQQm3yTAiEAxoTkahTj0hFAtVViMG33PtQLvQz1QWD0ciNqQMeNoHQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":64153},"main":"dist/index.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.js"}},"gitHead":"fd75b04db917c1ebaf0593924d160480409a249f","scripts":{"dev":"bun run build --watch","lint":"biome check --write .","test":"bun test","build":"tsc --emitDeclarationOnly && bun run build.js","format":"biome format --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"repository":{"url":"git+https://github.com/IceHugh/btc-connect.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.3","description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0","bun-plugin-dts":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.3.14_1761526893660_0.47087360768266606","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@btc-connect/core","version":"0.4.0","keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"author":{"name":"btc-connect"},"license":"MIT","_id":"@btc-connect/core@0.4.0","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"homepage":"https://github.com/IceHugh/btc-connect#readme","bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"dist":{"shasum":"510f3b62005455ed42a50b63241aaef8ec60be47","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-0.4.0.tgz","fileCount":4,"integrity":"sha512-qYv4TJez7zukRhlwjvqwwd/8iI1Y05TObjMeIHjZkeKMmq4T3HOtlhpLdsFXM4OKWpTdTeGc1CY2M0UkXU4OwQ==","signatures":[{"sig":"MEYCIQDj4lpoH4h3QbvTKj8CpVPyRG2xFqxj5JZ4SRDNMtpclQIhAL8hYpHVNuNMiYwESuRPDqUwlH6TELOI5U7pyPJsQKUS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":70165},"main":"dist/index.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.js"}},"gitHead":"1be0a12a9abb5077d7c4cc9d26e2cc74198c25e8","scripts":{"dev":"bun run build --watch","lint":"biome check --write .","test":"bun test","build":"tsc --emitDeclarationOnly && bun run build.js","format":"biome format --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"repository":{"url":"git+https://github.com/IceHugh/btc-connect.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.4","description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","directories":{},"sideEffects":false,"_nodeVersion":"22.21.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0","bun-plugin-dts":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.4.0_1761982793630_0.9111917912528582","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@btc-connect/core","version":"0.4.1","keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"author":{"name":"btc-connect"},"license":"MIT","_id":"@btc-connect/core@0.4.1","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"homepage":"https://github.com/IceHugh/btc-connect#readme","bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"dist":{"shasum":"caa33a6416b5605a56530274a4def903b0e12b0b","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-0.4.1.tgz","fileCount":4,"integrity":"sha512-yesCRTzdatZDyzFVRmQWldsIE2mfV9tbl1OnetjGFWKdxqN5IF0vWhNJ+ED7bcxu0SQEpgc1YfSKZ6vA30Wdig==","signatures":[{"sig":"MEUCIAno5RezshFZxkrQiDq8FeOP/alIa4vo7rc5DIhPQDsaAiEA64InGwHYpgb/AdjbUXm+BPvqT1dM9EO7vPrhGNilvfo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":70165},"main":"dist/index.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.js"}},"gitHead":"d50a0eb63d633f30bfcb18eabdb8a9fe9b80b0eb","scripts":{"dev":"bun run build --watch","lint":"biome check --write .","test":"bun test","build":"tsc --emitDeclarationOnly && bun run build.js","format":"biome format --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"repository":{"url":"git+https://github.com/IceHugh/btc-connect.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.4","description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","directories":{},"sideEffects":false,"_nodeVersion":"22.21.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0","bun-plugin-dts":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.4.1_1761993520213_0.8160714177259387","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@btc-connect/core","version":"0.5.0","keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"author":{"name":"btc-connect"},"license":"MIT","_id":"@btc-connect/core@0.5.0","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"homepage":"https://github.com/IceHugh/btc-connect#readme","bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"dist":{"shasum":"a17e873af96b6933495efd707fd7f23731fe1aff","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-0.5.0.tgz","fileCount":6,"integrity":"sha512-cFP/jake5bK6aFfYBKpr2Nb9pn+KmZmm0Z4pWOD2p1K6qBODrhcHv2Meqo2TlYqzp9JcmpRiurp3Je3CHkDI2A==","signatures":[{"sig":"MEUCICGE4EeOl7HWcohNqAs4rnDAnMl/R9YIMUfyYUehbD/hAiEA5WiBlgL8WhPzSRJYzm0y/5iyjpdGrvgg57Ec9IaaQDw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":71586},"main":"dist/index.js","type":"module","types":"dist/types/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/types/index.d.ts","import":"./dist/index.js"}},"gitHead":"8063a3375e7e8aef37e125a7fc8df924788df927","scripts":{"dev":"bun run build --watch","lint":"biome check --write .","test":"bun test","build":"tsc --emitDeclarationOnly && bun run build.js","format":"biome format --write .","typecheck":"tsc --noEmit"},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"repository":{"url":"git+https://github.com/IceHugh/btc-connect.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.4","description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","directories":{},"sideEffects":false,"_nodeVersion":"22.21.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^20.0.0","bun-plugin-dts":"^0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.5.0_1762225892591_0.16416383061943973","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"name":"@btc-connect/core","version":"0.5.1","description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","type":"module","main":"dist/index.js","module":"dist/index.js","types":"dist/types/index.d.ts","publishConfig":{"access":"public"},"sideEffects":false,"exports":{".":{"import":"./dist/index.js","types":"./dist/types/index.d.ts"}},"scripts":{"build":"tsc --emitDeclarationOnly && bun run build.js","dev":"bun run build --watch","test":"bun test","lint":"biome check --write .","format":"biome format --write .","typecheck":"tsc --noEmit"},"dependencies":{},"devDependencies":{"@types/node":"^20.0.0","bun-plugin-dts":"^0.3.0","typescript":"^5.0.0"},"keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"author":{"name":"btc-connect"},"license":"MIT","homepage":"https://github.com/IceHugh/btc-connect#readme","bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"repository":{"type":"git","url":"git+https://github.com/IceHugh/btc-connect.git","directory":"packages/core"},"_id":"@btc-connect/core@0.5.1","gitHead":"5f1a45e8a0bcba7301f02834719e7d9c6570dfd6","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-3PuqMxEOrT3DoELZF3wAFhYcjTTITz+/iOmrnxFbNdmT+BsK0x/JgcoNnc2sxuCfqTE8vb3jNGrZCgZLEsm/YA==","shasum":"a4fffb2bc87b305209d3445164dd3b2803ac39fb","tarball":"https://registry.npmjs.org/@btc-connect/core/-/core-0.5.1.tgz","fileCount":4,"unpackedSize":70165,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD4HCjl/DEjHfa+/CEcdIDzsYKhQhQvpIyqC2LSFGUIDAIgX4BRp+RQAdBmdLJA21Wxy0gagJ03pVGr9IX2lOKt8M0="}]},"_npmUser":{"name":"icehugh","email":"ygz0425@gmail.com"},"directories":{},"maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_0.5.1_1762227152649_0.868755101121272"},"_hasShrinkwrap":false}},"time":{"created":"2025-09-29T05:10:11.520Z","modified":"2025-11-04T03:32:33.058Z","1.0.0":"2025-09-29T05:10:11.902Z","0.1.0":"2025-09-29T05:14:14.354Z","0.1.1":"2025-09-29T05:40:32.157Z","0.2.0":"2025-10-18T15:56:54.804Z","0.3.0":"2025-10-19T03:40:19.005Z","0.3.1":"2025-10-19T03:44:10.663Z","0.3.2":"2025-10-19T03:51:08.584Z","0.3.4":"2025-10-19T06:52:22.473Z","0.3.5":"2025-10-20T14:13:58.779Z","0.3.6":"2025-10-20T14:52:10.211Z","0.3.7":"2025-10-21T14:56:51.935Z","0.3.8":"2025-10-24T01:48:49.012Z","0.3.9":"2025-10-24T07:23:13.410Z","0.3.10":"2025-10-24T07:40:56.174Z","0.3.11":"2025-10-26T15:58:03.490Z","0.3.12":"2025-10-26T16:59:46.563Z","0.3.13":"2025-10-27T00:12:29.529Z","0.3.14":"2025-10-27T01:01:33.862Z","0.4.0":"2025-11-01T07:39:53.826Z","0.4.1":"2025-11-01T10:38:40.412Z","0.5.0":"2025-11-04T03:11:32.783Z","0.5.1":"2025-11-04T03:32:32.856Z"},"bugs":{"url":"https://github.com/IceHugh/btc-connect/issues"},"author":{"name":"btc-connect"},"license":"MIT","homepage":"https://github.com/IceHugh/btc-connect#readme","keywords":["bitcoin","btc","wallet","web3","connect","unisat","okx","xverse"],"repository":{"type":"git","url":"git+https://github.com/IceHugh/btc-connect.git","directory":"packages/core"},"description":"The framework-agnostic core module for BTC Connect, providing a wallet adapter layer.","maintainers":[{"name":"icehugh","email":"ygz0425@gmail.com"}],"readme":"# @btc-connect/core\n\nEnglish | [中文文档](./README.zh-CN.md)\n\n<p align=\"center\">\n  <strong>框架无关的比特币钱包连接工具包</strong>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/@btc-connect/core\">\n    <img src=\"https://img.shields.io/npm/v/@btc-connect/core.svg\" alt=\"NPM 版本\">\n  </a>\n  <a href=\"https://github.com/IceHugh/btc-connect/actions\">\n    <img src=\"https://github.com/IceHugh/btc-connect/workflows/CI/badge.svg\" alt=\"CI\">\n  </a>\n  <a href=\"https://codecov.io/gh/IceHugh/btc-connect\">\n    <img src=\"https://codecov.io/gh/IceHugh/btc-connect/branch/main/graph/badge.svg\" alt=\"覆盖率\">\n  </a>\n  <a href=\"https://bundlephobia.com/result?p=@btc-connect/core\">\n    <img src=\"https://img.shields.io/bundlephobia/minzip/@btc-connect/core.svg\" alt=\"包大小\">\n  </a>\n</p>\n\n## 概述\n\n`@btc-connect/core` 是一个框架无关的比特币钱包连接库，为各种比特币钱包提供统一的接口。它采用适配器模式来抽象钱包特定的实现，使得在不同钱包提供商之间切换变得简单。\n\n## 特性\n\n- 🔌 **多钱包支持**: UniSat、OKX、Xverse（以及更多）\n- 🎯 **框架无关**: 可与任何JavaScript框架配合使用\n- 🔄 **事件驱动**: 内置事件系统，支持实时状态更新\n- 🛡️ **类型安全**: 完整的TypeScript支持和严格类型检查\n- 📦 **轻量级**: 最小化包大小，支持Tree Shaking\n- 🧪 **测试完备**: 全面的测试套件，100%覆盖率\n\n## 安装\n\n```bash\nnpm install @btc-connect/core\n```\n\n## 快速开始\n\n```typescript\nimport { BTCWalletManager, createWalletManager } from '@btc-connect/core';\n\n// 创建钱包管理器\nconst manager = new BTCWalletManager({\n  onStateChange: (state) => console.log('状态变化:', state),\n  onError: (error) => console.error('钱包错误:', error)\n});\n\n// 初始化钱包适配器\nmanager.initializeAdapters();\n\n// 获取可用钱包\nconst availableWallets = manager.getAvailableWallets();\nconsole.log('可用钱包:', availableWallets);\n\n// 连接钱包\ntry {\n  const accounts = await manager.connect('unisat');\n  console.log('已连接的账户:', accounts);\n} catch (error) {\n  console.error('连接失败:', error);\n}\n```\n\n## 核心概念\n\n### 钱包管理器\n\n`BTCWalletManager` 是管理钱包连接和状态的核心组件。\n\n```typescript\ninterface WalletManager {\n  // 配置\n  readonly config: WalletManagerConfig;\n\n  // 适配器管理\n  register(adapter: BTCWalletAdapter): void;\n  unregister(walletId: string): void;\n  getAdapter(walletId: string): BTCWalletAdapter | null;\n  getAllAdapters(): BTCWalletAdapter[];\n  getAvailableWallets(): WalletInfo[];\n\n  // 连接管理\n  connect(walletId: string): Promise<AccountInfo[]>;\n  disconnect(): Promise<void>;\n  switchWallet(walletId: string): Promise<AccountInfo[]>;\n\n  // 网络管理\n  switchNetwork(network: string): Promise<void>;\n\n  assumeConnected(walletId: string): Promise<AccountInfo[] | null>;\n\n  // 状态管理\n  getState(): WalletState;\n  getCurrentAdapter(): BTCWalletAdapter | null;\n  getCurrentWallet(): WalletInfo | null;\n\n  // 事件处理\n  on(event: WalletEvent, handler: EventHandler): void;\n  off(event: WalletEvent, handler: EventHandler): void;\n}\n```\n\n### 钱包适配器\n\n钱包适配器实现 `BTCWalletAdapter` 接口来提供钱包特定的功能。\n\n```typescript\ninterface BTCWalletAdapter {\n  // 基本信息\n  readonly id: string;\n  readonly name: string;\n  readonly icon: string;\n\n  // 状态检查\n  isReady(): boolean;\n  getState(): WalletState;\n\n  // 连接管理\n  connect(): Promise<AccountInfo[]>;\n  disconnect(): Promise<void>;\n\n  // 账户管理\n  getAccounts(): Promise<AccountInfo[]>;\n  getCurrentAccount(): Promise<AccountInfo | null>;\n\n  // 网络管理\n  getNetwork(): Promise<Network>;\n  switchNetwork(network: Network): Promise<void>;\n\n  // 事件\n  on(event: WalletEvent, handler: EventHandler): void;\n  off(event: WalletEvent, handler: EventHandler): void;\n\n  // 比特币操作\n  signMessage(message: string): Promise<string>;\n  signPsbt(psbt: string): Promise<string>;\n  sendBitcoin(toAddress: string, amount: number): Promise<string>;\n}\n```\n\n### 状态管理\n\n钱包状态表示当前的连接状态和账户信息。\n\n```typescript\ninterface WalletState {\n  status: ConnectionStatus; // 'disconnected' | 'connecting' | 'connected' | 'error'\n  accounts: AccountInfo[];\n  currentAccount?: AccountInfo;\n  network?: Network; // 'livenet' | 'testnet' | 'regtest' | 'mainnet'\n  error?: Error;\n}\n\ninterface AccountInfo {\n  address: string;\n  publicKey?: string;\n  balance?: number;\n  network?: Network;\n}\n```\n\n## API 参考\n\n### 创建钱包管理器\n\n```typescript\nimport { BTCWalletManager, createWalletManager } from '@btc-connect/core';\n\n// 方法1: 直接实例化\nconst manager = new BTCWalletManager({\n  onStateChange: (state) => {\n    console.log('状态变化:', state.status);\n  },\n  onError: (error) => {\n    console.error('钱包错误:', error);\n  }\n});\n\n// 方法2: 工厂函数\nconst manager = createWalletManager({\n  onStateChange: handleStateChange,\n  onError: handleError\n});\n```\n\n### 适配器管理\n\n```typescript\n// 注册自定义适配器\nimport { BaseWalletAdapter } from '@btc-connect/core';\n\nclass MyCustomAdapter extends BaseWalletAdapter {\n  id = 'my-wallet';\n  name = '我的自定义钱包';\n  icon = 'https://example.com/icon.png';\n\n  async connect(): Promise<AccountInfo[]> {\n    // 实现连接逻辑\n    return [{\n      address: 'tb1qexample...',\n      publicKey: '02abcdef...',\n      balance: 100000,\n      network: 'testnet'\n    }];\n  }\n\n  // 实现其他必需方法...\n}\n\n// 注册适配器\nmanager.register(new MyCustomAdapter());\n\n// 获取所有注册的适配器\nconst allAdapters = manager.getAllAdapters();\n\n// 获取特定适配器\nconst adapter = manager.getAdapter('my-wallet');\n```\n\n### 连接管理\n\n```typescript\n// 获取可用钱包（已安装且就绪）\nconst availableWallets = manager.getAvailableWallets();\nconsole.log('可用钱包:', availableWallets);\n// 输出: [{ id: 'unisat', name: 'UniSat', icon: '...' }, ...]\n\n// 连接钱包\ntry {\n  const accounts = await manager.connect('unisat');\n  console.log('已连接的账户:', accounts);\n\n  // 获取当前状态\n  const state = manager.getState();\n  console.log('当前状态:', state);\n} catch (error) {\n  if (error instanceof WalletNotInstalledError) {\n    console.log('钱包未安装');\n  } else if (error instanceof WalletConnectionError) {\n    console.log('连接失败:', error.message);\n  }\n}\n\n// 切换到不同的钱包\nconst newAccounts = await manager.switchWallet('okx');\n\n// 断开连接\nawait manager.disconnect();\n```\n\n### 网络切换\n\n```typescript\n// 切换网络 (v0.3.11+)\ntry {\n  await manager.switchNetwork('testnet');\n  console.log('已切换到测试网');\n} catch (error) {\n  console.error('网络切换失败:', error.message);\n}\n\n// 切换到主网\nawait manager.switchNetwork('mainnet');\n\n// 切换到回归测试网\nawait manager.switchNetwork('regtest');\n\n// 监听网络变化事件\nmanager.on('networkChange', ({ walletId, network }) => {\n  console.log(`钱包 ${walletId} 切换到 ${network} 网络`);\n});\n```\n\n### 事件处理\n\n```typescript\n// 监听连接事件\nmanager.on('connect', (accounts) => {\n  console.log('钱包已连接:', accounts);\n});\n\nmanager.on('disconnect', () => {\n  console.log('钱包已断开连接');\n});\n\nmanager.on('accountChange', (accounts) => {\n  console.log('账户已更改:', accounts);\n});\n\nmanager.on('networkChange', (network) => {\n  console.log('网络已更改:', network);\n});\n\nmanager.on('error', (error) => {\n  console.error('钱包错误:', error);\n});\n\n// 移除事件监听器\nconst handler = (accounts) => console.log('已连接:', accounts);\nmanager.on('connect', handler);\nmanager.off('connect', handler);\n```\n\n### 比特币操作\n\n```typescript\n// 获取当前适配器\nconst adapter = manager.getCurrentAdapter();\nif (!adapter) {\n  console.log('没有连接的钱包');\n  return;\n}\n\n// 签名消息\nconst message = 'Hello, Bitcoin!';\nconst signature = await adapter.signMessage(message);\nconsole.log('消息签名:', signature);\n\n// 签名PSBT\nconst psbtHex = '70736274ff...';\nconst signedPsbt = await adapter.signPsbt(psbtHex);\nconsole.log('已签名的PSBT:', signedPsbt);\n\n// 发送比特币\nconst txid = await adapter.sendBitcoin('tb1qrecipient...', 1000); // 1000聪\nconsole.log('交易ID:', txid);\n```\n\n### 增强钱包检测\n\n```typescript\nimport { detectAvailableWallets } from '@btc-connect/core';\n\n// 增强的钱包检测，支持轮询检测延迟注入的钱包\nconst result = await detectAvailableWallets({\n  timeout: 20000,        // 20秒超时\n  interval: 300,         // 300ms检测间隔\n  onProgress: (wallets, time) => {\n    console.log(`检测到钱包: ${wallets.join(', ')} (${time}ms)`);\n  }\n});\n\nconsole.log('检测结果:', {\n  wallets: result.wallets,     // 检测到的钱包ID\n  adapters: result.adapters,   // 可用的适配器实例\n  elapsedTime: result.elapsedTime, // 总耗时\n  isComplete: result.isComplete   // 是否完成检测\n});\n```\n\n**检测配置参数:**\n- `timeout?: number` - 检测超时时间（毫秒），默认20000\n- `interval?: number` - 轮询间隔（毫秒），默认300\n- `onProgress?: (detectedWallets: string[], elapsedTime: number) => void` - 进度回调\n\n**检测结果:**\n- `wallets: string[]` - 检测到的钱包ID列表\n- `adapters: BTCWalletAdapter[]` - 可用的适配器实例\n- `elapsedTime: number` - 总耗时\n- `isComplete: boolean` - 是否完成检测\n\n### 自动连接\n\n```typescript\n// 尝试恢复之前的连接\nconst previousWalletId = localStorage.getItem('last-connected-wallet');\nif (previousWalletId) {\n  try {\n    const accounts = await manager.assumeConnected(previousWalletId);\n    if (accounts && accounts.length > 0) {\n      console.log('自动连接的账户:', accounts);\n    }\n  } catch (error) {\n    console.log('自动连接失败:', error);\n  }\n}\n```\n\n## 支持的钱包\n\n### UniSat\n\n```typescript\n// 连接到UniSat\nconst accounts = await manager.connect('unisat');\n\n// UniSat特定功能\nconst unisatAdapter = manager.getAdapter('unisat');\nif (unisatAdapter) {\n  // UniSat可用\n}\n```\n\n### OKX钱包\n\n```typescript\n// 连接到OKX\nconst accounts = await manager.connect('okx');\n\n// OKX特定功能\nconst okxAdapter = manager.getAdapter('okx');\nif (okxAdapter) {\n  // OKX可用\n}\n```\n\n## 错误处理\n\n库为不同的场景提供了特定的错误类型：\n\n```typescript\nimport {\n  WalletError,\n  WalletNotInstalledError,\n  WalletConnectionError,\n  WalletDisconnectedError,\n  NetworkError,\n  TransactionError\n} from '@btc-connect/core';\n\ntry {\n  await manager.connect('unisat');\n} catch (error) {\n  if (error instanceof WalletNotInstalledError) {\n    console.log('请安装UniSat钱包');\n  } else if (error instanceof WalletConnectionError) {\n    console.log('连接钱包失败:', error.message);\n  } else if (error instanceof NetworkError) {\n    console.log('网络错误:', error.message);\n  }\n}\n```\n\n## 高级用法\n\n### 自定义适配器实现\n\n```typescript\nimport { BaseWalletAdapter, WalletState, AccountInfo } from '@btc-connect/core';\n\nclass CustomWalletAdapter extends BaseWalletAdapter {\n  id = 'custom-wallet';\n  name = '自定义钱包';\n  icon = 'https://example.com/icon.png';\n\n  isReady(): boolean {\n    // 检查钱包是否可用\n    return typeof window !== 'undefined' && !!(window as any).customWallet;\n  }\n\n  getState(): WalletState {\n    // 返回当前钱包状态\n    return {\n      status: 'disconnected',\n      accounts: [],\n      network: 'livenet'\n    };\n  }\n\n  async connect(): Promise<AccountInfo[]> {\n    if (!this.isReady()) {\n      throw new WalletNotInstalledError(this.id);\n    }\n\n    try {\n      // 连接到钱包\n      const wallet = (window as any).customWallet;\n      await wallet.connect();\n\n      const accounts = await wallet.getAccounts();\n      return accounts.map(account => ({\n        address: account.address,\n        publicKey: account.publicKey,\n        balance: account.balance,\n        network: account.network\n      }));\n    } catch (error) {\n      throw new WalletConnectionError(`无法连接到${this.name}`);\n    }\n  }\n\n  async disconnect(): Promise<void> {\n    const wallet = (window as any).customWallet;\n    if (wallet) {\n      await wallet.disconnect();\n    }\n  }\n\n  // 实现其他必需方法...\n}\n\n// 注册自定义适配器\nmanager.register(new CustomWalletAdapter());\n```\n\n### 状态持久化\n\n```typescript\n// 将钱包状态保存到localStorage\nmanager.on('connect', (accounts) => {\n  localStorage.setItem('btc-connect-accounts', JSON.stringify(accounts));\n  localStorage.setItem('btc-connect-wallet', manager.getCurrentWallet()?.id || '');\n});\n\n// 页面加载时恢复状态\nconst savedWalletId = localStorage.getItem('btc-connect-wallet');\nif (savedWalletId) {\n  manager.assumeConnected(savedWalletId);\n}\n```\n\n## 最佳实践\n\n1. **错误处理**: 始终将钱包操作包装在try-catch块中\n2. **事件监听器**: 不再需要时清理事件监听器\n3. **状态管理**: 使用事件来响应状态变化，而不是轮询\n4. **网络检测**: 在操作前检查网络兼容性\n5. **用户体验**: 为连接状态提供清晰的反馈\n\n## 迁移指南\n\n### 从版本0.1.x迁移到0.2.x\n\n```typescript\n// 旧方式（已弃用）\nconst manager = new WalletManager();\n\n// 新方式\nconst manager = new BTCWalletManager({\n  onStateChange: handleStateChange,\n  onError: handleError\n});\n```\n\n## 贡献\n\n请阅读我们的[贡献指南](../../CONTRIBUTING.zh-CN.md)了解我们的行为准则和提交拉取请求的流程。\n\n## 许可证\n\n本项目采用MIT许可证 - 查看[LICENSE](../../LICENSE)文件了解详情。\n\n## 支持\n\n- 📧 邮箱: support@btc-connect.dev\n- 💬 [Discord](https://discord.gg/btc-connect)\n- 🐛 [问题反馈](https://github.com/IceHugh/btc-connect/issues)","readmeFilename":"README.zh-CN.md"}