https://github.com/cryptogarageinc/wallet-for-testing-js
testing bitcoin wallet
https://github.com/cryptogarageinc/wallet-for-testing-js
bitcoin cfd nodejs test wallet
Last synced: 5 months ago
JSON representation
testing bitcoin wallet
- Host: GitHub
- URL: https://github.com/cryptogarageinc/wallet-for-testing-js
- Owner: cryptogarageinc
- License: mit
- Created: 2020-01-31T07:07:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2026-01-18T23:08:51.000Z (5 months ago)
- Last Synced: 2026-01-19T08:44:06.383Z (5 months ago)
- Topics: bitcoin, cfd, nodejs, test, wallet
- Language: JavaScript
- Size: 1.39 MB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wallet-for-testing-js
## build
npm install
## use library
```nodejs
const WalletManager = require('wallet-for-testing-js');
```
## use wallet console app
```nodejs
node wallet-console.js
```
## use single console app
- windows
```bat
debug_tx.bat xxxxx
```
- macos or linux
```sh
debug_tx.sh xxxxx
```
## test
docker-compose run wallet-test
## note
### When using node.js 18 or higher
In node.js 18 or higher, emscripten for cfd-js-wasm does not work properly.
Therefore, it is necessary to run with the '--no-experimental-fetch' option.
```sh
# shell
NODE_OPTIONS="--no-experimental-fetch" npm run test
# power shell
$env:NODE_OPTIONS="--no-experimental-fetch"
npm run test
# command prompt
set NODE_OPTIONS="--no-experimental-fetch"
npm run test
```