Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
22388o committed Jun 27, 2024
1 parent e04a5c1 commit 1989d5c
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 18 deletions.
8 changes: 8 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"network": {
"mainnet": "https://mempool.space/",
"testnet4": "https://mempool.space/testnet4",
"signet": "https://mempool.space/signet"
}
}

42 changes: 24 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
{
"name":"javascript-frost",
"vesion":"1.0.10-beta",
"license":"MIT",
"description": "Javascript Frost",
"main": "index.jsx",
"scripts": {
"start": "node index.jsx"
"start": "node index.js"
},
"dependencies": {
"bitcoinjs-lib": "^6.1.6",
"bitcoinjs-message": "^6.0.0",
"bip39": "^2.5.0",
"bs58check": "^2.1.2"
},
"devDependencies": {},
"author": "FDK" }

"name": "javascript-frost",
"version": "1.0.10-beta",
"license": "MIT",
"description": "Javascript Frost",
"main": "index.jsx",
"scripts": {
"start": "node index.js"
},
"dependencies": {
"bitcoinjs-lib": "^6.1.6",
"bitcoinjs-message": "^2.0.0",
"bip39": "^2.5.0",
"bs58check": "^2.1.2"
},
"author": "FDK",
"repository": {
"type": "git",
"url": "git+https://github.com/FrostDevKit/javascript-frost.git"
},
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public"
}
}
6 changes: 6 additions & 0 deletions src/bitcoind/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const config = require('./config.json');

// Accessing network URLs
console.log('Mainnet URL:', config.network.mainnet);
console.log('Testnet4 URL:', config.network.testnet4);
console.log('Signet URL:', config.network.signet);

0 comments on commit 1989d5c

Please sign in to comment.