Skip to content

Commit ddb6f72

Browse files
committed
docs: cleaning up the readme verbiage dx-2014
1 parent ca63a45 commit ddb6f72

File tree

7 files changed

+37
-40
lines changed

7 files changed

+37
-40
lines changed

examples/js/trx/consolidate-account-balances.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Tron wallet can't send funds from their receive addresses.
33
* Account balance consolidation is used to sweep funds from the
44
* receive addresses into the wallet's base address for sending.
5-
* @see {@link https://app.bitgo.com/docs/#operation/v2.wallet.consolidateaccount.build}
5+
* @see {@link https://developers.bitgo.com/reference/v2walletconsolidateaccountbuild#/}
66
*/
77
const BitGoJS = require('bitgo');
88

examples/js/xtz/consolidate-account-balances.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Tezos wallet can't send funds from their receive addresses.
33
* Account balance consolidation is used to sweep funds from the
44
* receive addresses into the wallet's base address for sending.
5-
* @see {@link https://app.bitgo.com/docs/#operation/v2.wallet.consolidateaccount.build}
5+
* @see {@link https://developers.bitgo.com/reference/v2walletconsolidateaccountbuild#/}
66
*/
77
const BitGoJS = require('bitgo');
88
const Promise = require('bluebird');

examples/ts/trx/consolidate-hot-account-balances.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Tron wallets can't send funds from their receive addresses.
33
* Account balance consolidation is used to sweep funds from the
44
* receive addresses into the wallet's base address for sending.
5-
* @see {@link https://app.bitgo.com/docs/#operation/v2.wallet.consolidateaccount.build}
5+
* @see {@link https://developers.bitgo.com/reference/v2walletconsolidateaccountbuild#/}
66
*/
77
import { BitGo, WalletCoinSpecific } from 'bitgo';
88

examples/ts/xtz/consolidate-account-balances.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Tezos wallet can't send funds from their receive addresses.
33
* Account balance consolidation is used to sweep funds from the
44
* receive addresses into the wallet's base address for sending.
5-
* @see {@link https://app.bitgo.com/docs/#operation/v2.wallet.consolidateaccount.build}
5+
* @see {@link https://developers.bitgo.com/reference/v2walletconsolidateaccountbuild#/}
66
*/
77
import { BitGo, WalletCoinSpecific } from 'bitgo';
88

modules/bitgo/README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
# BitGo JavaScript SDK
22

3-
The BitGo Platform and SDK makes it easy to build multi-signature crypto-currency applications today with support for Bitcoin, Ethereum and many other coins.
4-
The SDK is fully integrated with the BitGo co-signing service for managing all of your BitGo wallets.
3+
The BitGo Platform enables you to build multisignature and MPC cryptocurrency applications for over a thousand digital assets. You can view all BitGo supported assets on the [Developer Portal](https://assets.bitgo.com/coins). The SDK is fully integrated with the BitGo co-signing service for managing all of your BitGo wallets.
54

6-
Included in the SDK are examples for how to use the API to manage your multi-signature wallets.
5+
The SDK includes examples for how to use the API to manage your wallets.
76

8-
Please email us at [email protected] if you have questions or comments about this API.
7+
If you have questions or comments about this API, email [email protected].
98

109
[![Known Vulnerabilities](https://snyk.io/test/github/BitGo/BitGoJS/badge.svg)](https://snyk.io/test/github/BitGo/BitGoJS)
1110
[![BitGo SDK](https://github.com/BitGo/BitGoJS/actions/workflows/ci.yml/badge.svg)](https://github.com/BitGo/BitGoJS/actions/workflows/ci.yml)
1211

1312
# Installation
1413

15-
Please make sure you are running at least Node version 20 (the latest LTS release is recommended) and NPM version 10.
16-
We recommend using `nvm`, the [Node Version Manager](https://github.com/creationix/nvm/blob/master/README.markdown#installation), for setting your Node version.
14+
Ensure you're running Node version 20 or higher (preferably the latest LTS release) and NPM version 10.
15+
For setting your Node version, we recommend using `nvm` - the [Node Version Manager](https://github.com/creationix/nvm/blob/master/README.markdown#installation).
1716

1817
`npm install --save bitgo`
1918

2019
# Full Documentation
2120

22-
For more general information about the BitGo API and various integration guides, please see our [Developer Portal](https://developers.bitgo.com/).
21+
For more comprehensive information about the BitGo API, including integration guides, see the BitGo [Developer Portal](https://developers.bitgo.com/).
2322

2423
# Release Notes
2524

26-
You can find the complete release notes (since version 4.44.0) [here](https://github.com/BitGo/BitGoJS/blob/master/modules/bitgo/CHANGELOG.md).
25+
- [API changelog](https://github.com/BitGo/api-changelog/)
26+
- [SDK changelog](https://github.com/BitGo/BitGoJS/blob/master/modules/bitgo/CHANGELOG.md) (since version 4.44.0)
2727

2828
# Example Usage
2929

30-
Examples and integration guides for BitGoJS or BitGo Express can be found in the [Developer Portal](https://developers.bitgo.com/guides/get-started/intro) or the [examples directory](https://github.com/BitGo/BitGoJS/tree/master/examples).
30+
You can view examples in the [examples directory](https://github.com/BitGo/BitGoJS/tree/master/examples). You can view integration guides in the [Developer Portal](https://developers.bitgo.com/guides/get-started/intro).
3131

3232
# Enabling additional debugging output
3333

3434
`bitgo` uses the `debug` package to emit extra information, which can be useful when debugging issues with BitGoJS or BitGo Express.
3535

36-
When using the `bitgo` npm package, the easiest way to enable debug output is by setting the `DEBUG` environment variable to one or more of the debug namespaces in the table below. Multiple debug namespaces can be enabled by giving a comma-separated list or by using `*` as a wildcard. See the [debug package documentation](https://github.com/visionmedia/debug#readme) for more details.
36+
When using the `bitgo` npm package, the easiest way to enable debug output is to set the `DEBUG` environment variable to one or more of the debug namespaces in the table below. You can enable multiple debug namespaces by using a comma-separated list or by using `*` as a wildcard. See the [debug package documentation](https://github.com/visionmedia/debug#readme) for more details.
3737

3838
## Available Debug Namespaces
3939

@@ -47,32 +47,32 @@ When using the `bitgo` npm package, the easiest way to enable debug output is by
4747
| `bitgo:v2:eth` | Ethereum specific output. Currently only failures to require the optional Ethereum libraries are reported |
4848
| `bitgo:v2:util` | SDK utilities specific output. Currently only failures to require the optional Ethereum libraries are reported |
4949

50-
Another debug namespace which is not provided by BitGoJS but is helpful nonetheless is the `superagent` namespace, which will output all HTTP requests and responses (only the URL, not bodies).
50+
Another debug namespace that BitGoJS doesn't provide but is helpful nonetheless is the `superagent` namespace. This outputs all HTTP requests and responses (only the URL, not bodies).
5151

5252
## Example
5353

54-
To run an SDK script with debug output enabled, export the DEBUG environment variable before running.
54+
To run an SDK script with debug output enabled, export the `DEBUG` environment variable before running.
5555

5656
```shell script
5757
export DEBUG='bitgo:*' # enable all bitgo debug namespaces
5858
node myScript.js
5959
```
6060

61-
To set debug namespaces in the browser, you should set `localStorage.debug` property instead of the `DEBUG` environment variable using your browser's development tools console.
61+
To set debug namespaces in a browser, set the `localStorage.debug` property instead of the `DEBUG` environment variable using your browser's development tools console.
6262

6363
```js
6464
localStorage.debug = 'bitgo:*'; // enable all bitgo debug namespaces
6565
```
6666

6767
# Using with TypeScript
6868

69-
`bitgo` is not yet compatible with the `noImplicitAny` compiler option. If you want to use this option in your project (and we recommend that you do), you must set the `skipLibCheck` option to supress errors about missing type definitions for dependencies of `bitgo`.
69+
`bitgo` is not yet compatible with the `noImplicitAny` compiler option. To use this option in your project (and we recommend that you do), you must set the `skipLibCheck` option to suppress errors about missing type definitions for dependencies of `bitgo`.
7070

71-
# Usage in Browser
71+
# Usage in browser
7272

73-
Since version 6, `bitgo` includes a minified, browser-compatible bundle by default at `dist/browser/BitGoJS.min.js`. It can be copied from there directly into your project.
73+
Since version 6, `bitgo` includes a minified, browser-compatible bundle by default at `dist/browser/BitGoJS.min.js`. You can copy the bundle from there and paste it directly into your project.
7474

75-
BitGoJS can also be bundled with any module bundler. There is a Webpack configuration file already included, which can be triggered with package scripts.
75+
You can also bundle BitGoJS with any module bundler. There's a Webpack configuration file already included, which you can use to trigger with package scripts.
7676

7777
For a production build: `npm run-script compile`
7878

modules/express/README.md

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
# BitGo Express Local Signing Server (REST API)
1+
# BitGo Express local signing server (REST API)
22

3-
Suitable for developers working in a language without an official BitGo SDK.
3+
BitGo Express is suitable for developers working in a language without an official BitGo SDK.
44

5-
BitGo Express runs as a service in your own datacenter, and handles the client-side operations involving your own keys, such as partially signing transactions before submitting to BitGo.
6-
This ensures your keys never leave your network, and are not seen by BitGo. BitGo Express can also proxy the standard BitGo REST APIs, providing a unified interface to BitGo through a single REST API.
5+
BitGo Express runs as a service in your own datacenter, and handles the client-side operations involving your own keys, such as partially signing transactions before submitting to BitGo. This ensures your keys never leave your network, and are not seen by BitGo. BitGo Express can also proxy the standard BitGo REST APIs, providing a unified interface to BitGo through a single REST API.
76

87
# Documentation
98

10-
Comprehensive documentation on the APIs provided by BitGo Express can be found at our [Platform API Reference](https://app.bitgo.com/docs/#tag/Express).
9+
View comprehensive documentation on the BitGo [Developer Portal](https://developers.bitgo.com/docs/get-started-express-install/).
1110

1211
# Running BitGo Express
1312

1413
## Docker
1514

16-
For most users, we recommend running BitGo Express as a docker container, since this is the most secure way to run BitGo Express.
15+
For most users, we recommend running BitGo Express as a Docker container, since this's the most secure way to run BitGo Express.
1716

1817
> Deprecation Warning: bitgosdk/express will no longer receive updates. Please use the official bitgo/express images.
1918
@@ -73,13 +72,13 @@ $ openssl req -newkey rsa:2048 -nodes -keyout cert.key -x509 -days 3650 -out cer
7372

7473
This will output a key file `cert.key` and certificate file `cert.crt`
7574

76-
Finally you can run your docker container like this (note, replace `/path/to` with the full path to your `certs` folder):
75+
Finally you can run your Docker container like this (note, replace `/path/to` with the full path to your `certs` folder):
7776

7877
```bash
7978
$ docker run -it --volume /path/to/certs:/private -p 4000:4000 bitgo/express:latest -p 4000 -k /private/cert.key -c /private/cert.crt -e prod
8079
```
8180

82-
An alternative way to provide the ssl certification is to export them as environment variables.
81+
An alternative way to provide the SSL certification is to export them as environment variables.
8382

8483
```bash
8584
$ export BITGO_SSL_KEY=$(cat /private/cert.key)
@@ -98,9 +97,9 @@ Environment: prod
9897
Base URI: https://0.0.0.0:4000
9998
```
10099

101-
### Building the docker container
100+
### Building the Docker container
102101

103-
If you'd like to build the BitGo Express docker container yourself from the source code, first check out the latest **master** branch, then run `docker build` from the project root. Here's the commands:
102+
To build the BitGo Express Docker container yourself from the source code, check out the latest **master** branch and run `docker build` from the project root.
104103

105104
```bash
106105
$ git clone https://github.com/bitgo/bitgojs
@@ -109,7 +108,7 @@ $ docker build -t bitgo-express:latest .
109108
$ docker run -it bitgo-express:latest
110109
```
111110

112-
Another way to build the BitGo Express docker container if you have `yarn` installed:
111+
You can also build the BitGo Express Docker container using `yarn`:
113112

114113
```bash
115114
$ git clone https://github.com/bitgo/bitgojs
@@ -120,17 +119,15 @@ $ docker run -it bitgo-express:latest
120119

121120
## From source
122121

123-
For users who are unable to run BitGo Express as a docker container, we recommend building and running from the source code.
122+
For users who are unable to run BitGo Express as a Docker container, we recommend building and running from the source code.
124123

125124
### Prerequisites
126125

127-
Please make sure you are running at least Node version 16.
128-
We recommend using `nvm`, the [Node Version Manager](https://github.com/creationix/nvm/blob/master/README.markdown#installation), for setting your Node version.
129-
BitGo Express has become a first class citizen of the monorepo so we recommend using `yarn` for local setup.
126+
Ensure you're running at least Node version 16. We recommend using `nvm`, the [Node Version Manager](https://github.com/creationix/nvm/blob/master/README.markdown#installation), for setting your Node version. BitGo Express has become a first class citizen of the monorepo so we recommend using `yarn` for local setup.
130127

131128
### Cloning the repository and installing dependencies
132129

133-
First, clone the latest **master** branch, then run `yarn install` in the project root directory.
130+
Clone the latest **master** branch and run `yarn install` in the project root directory.
134131

135132
```bash
136133
$ git clone https://github.com/bitgo/bitgojs
@@ -140,7 +137,7 @@ $ yarn install --frozen-lockfile && yarn install --production --frozen-lockfile
140137

141138
### Running BitGo Express
142139

143-
From the express module folder (`modules/express`), run this command:
140+
From the Express module folder (`modules/express`), run this command:
144141

145142
```bash
146143
$ yarn run start
@@ -235,7 +232,7 @@ BitGo Express is able to take configuration options from either command line arg
235232
| N/A | --disableproxy | `BITGO_DISABLE_PROXY` <sup>0</sup> | N/A | Disable proxying of routes not explicitly handled by bitgo-express |
236233
| N/A | --disableenvcheck | `BITGO_DISABLE_ENV_CHECK` <sup>0</sup> | N/A | Disable checking for correct `NODE_ENV` environment variable when running against BitGo production environment. |
237234
| -i | --ipc | `BITGO_IPC` | N/A | If set, bind to the given IPC (unix domain) socket. Binding to an IPC socket can be useful if the caller of bitgo-express resides on the same host as the bitgo-express instance itself, since the socket can be secured using normal file permissions and ownership semantics. Note: This is not supported on Windows platforms. |
238-
| N/A | --authversion | `BITGO_AUTH_VERSION` | 2 | BitGo Authentication scheme version which should be used form making requests to the BitGo server. Please see the [BitGo API documentation](https://app.bitgo.com/docs) for more info on authentication scheme versions. |
235+
| N/A | --authversion | `BITGO_AUTH_VERSION` | 2 | BitGo Authentication scheme version which should be used form making requests to the BitGo server. For more info on authentication scheme versions, view the API reference on the BitGo [Developer Portal](https://developers.bitgo.com/reference/overview#/). |
239236
| N/A | --externalSignerUrl | `BITGO_EXTERNAL_SIGNER_URL` | N/A | URL specifying the external API to call for remote signing. |
240237
| N/A | --signerMode | `BITGO_SIGNER_MODE ` | N/A | If set, run Express as a remote signer. |
241238
| N/A | --signerFileSystemPath | `BITGO_SIGNER_FILE_SYSTEM_PATH ` | N/A | Local path specifying where an Express signer machine keeps the encrypted user private keys. Required when signerMode is set. |

modules/sdk-coin-iota/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ const iota = sdk.coin('iota');
3636

3737
## Documentation
3838

39-
For detailed API documentation, see the [BitGo API reference](https://app.bitgo.com/docs/).
39+
For detailed API documentation, view the BitGo [Developer Portal](https://developers.bitgo.com/reference/overview#/).

0 commit comments

Comments
 (0)