You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 13, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: src/data/tutorials/bitbox-cli.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ publishedAt: 2018-07-06
5
5
updatedAt: 2018-07-06
6
6
---
7
7
8
-
BITBOX aims to be the go-to toolset for $BCH developers. We want you to be able to run your code and tests against your BITBOX before deploying to live environments and aim for 100% Bitcoin Cash JSON RPC API coverage.
8
+
BITBOX aims to be the go-to toolset for \$BCH developers. We want you to be able to run your code and tests against your BITBOX before deploying to live environments and aim for 100% Bitcoin Cash JSON RPC API coverage.
9
9
10
10
Today we’re happy to announce that `bitbox-sdk` has 100% of the Bitcoin ABC JSON RPC. You can now use `bitbox-sdk` to have your code interface directly w/ your live running Bitcoin ABC node. Here’s how that would look.
11
11
@@ -27,7 +27,7 @@ You can now have `bitbox` stub out an app scaffold and configuration. Here we’
27
27
bitbox new myApp
28
28
```
29
29
30
-
This will create a scaffold directory structure for a new $BCH app along w/ a configuration file which looks like:
30
+
This will create a scaffold directory structure for a new \$BCH app along w/ a configuration file which looks like:
31
31
32
32
```json
33
33
networks: {
@@ -39,13 +39,13 @@ networks: {
39
39
40
40
### Console
41
41
42
-
Now you can fire up `bitbox`’s console to send some commands to your running $BCH node.
42
+
Now you can fire up `bitbox`’s console to send some commands to your running \$BCH node.
43
43
44
44
```bash
45
45
bitbox console
46
46
```
47
47
48
-
This will load the console and create a `BITBOX` object w/ the entire $BCH JSON RPC available. That `BITBOX` object can send commands to the running Bitcoin ABC node that you configured in the previous step.
48
+
This will load the console and create a `BITBOX` object w/ the entire \$BCH JSON RPC available. That `BITBOX` object can send commands to the running Bitcoin ABC node that you configured in the previous step.
Next you need to `require` or `import` `BITBOXSDK` into your app depending on if you are transpiling ES6 or not. Once you `require` `BITBOXSDK` into your app you then create an instance of `BITBOX` and pass in a config object w/ the same values you used at the command line in the previous steps.
102
102
103
103
```javascript
104
-
let BITBOXSDK = require('bitbox-sdk/lib/bitbox-sdk').default
0 commit comments