Skip to content

Commit 9ec14cf

Browse files
authored
Merge pull request #154 from KomodoPlatform/netid-8762
update netid for streaming release
2 parents 6b34fdd + f77c004 commit 9ec14cf

File tree

18 files changed

+149
-145
lines changed

18 files changed

+149
-145
lines changed

data-for-gpts/all-content.txt

+17-17
Original file line numberDiff line numberDiff line change
@@ -35165,7 +35165,7 @@ The `orderbook` method requests from the network the currently available orders
3516535165
]
3516635166
}
3516735167
],
35168-
"netid": 7777,
35168+
"netid": 8762,
3516935169
"numasks": 2,
3517035170
"numbids": 6,
3517135171
"rel": "MARTY",
@@ -41288,7 +41288,7 @@ The v2 `orderbook` method requests from the network the currently available orde
4128841288
}
4128941289
}
4129041290
],
41291-
"net_id": 7777,
41291+
"net_id": 8762,
4129241292
"num_asks": 3,
4129341293
"num_bids": 3,
4129441294
"rel": "DASH",
@@ -42109,7 +42109,7 @@ To set this up, you can add some additional parameters to your MM2.json as shown
4210942109
```json
4211042110
{
4211142111
"gui": "MarketMakerBot",
42112-
"netid": 7777,
42112+
"netid": 8762,
4211342113
"rpc_password": "YOUR_PASSWORD",
4211442114
"passphrase": "YOUR SEED PHRASE",
4211542115
"dbdir": "/path/to/your/atomicdex/DB",
@@ -49287,16 +49287,16 @@ When running the AtomicDEX API via commandline with the `mm2` binary, some basic
4928749287

4928849288
| Parameter | Type | Description |
4928949289
| ----------------------- | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
49290-
| gui | string | Information to identify which app, tool or product is using the API, e.g. `AtomicDEX iOS 1.0.1`. Helps developers identify if an issue is related to specific builds or operating systems etc. |
49291-
| netid | integer | Nework ID number, telling the AtomicDEX-API which network to join. 7777 is the current main network, though alternative netids can be used for testing or "private" trades as long as seed nodes exist to support it. |
49290+
| gui | string | Information to identify which app, tool or product is using the API, e.g. `AtomicDEX iOS 2.0.0`. Helps developers identify if an issue is related to specific builds or operating systems etc. |
49291+
| netid | integer | Nework ID number, telling the AtomicDEX-API which network to join. 8762 is the current main network, though alternative netids can be used for testing or "private" trades as long as seed nodes exist to support it. |
4929249292
| passphrase | string | Your passphrase; this is the source of each of your coins private keys. [**KEEP IT SAFE!**](https://www.youtube.com/watch?v=WFpxVbTqhB8) |
4929349293
| rpc\_password | string | For RPC requests that need authentication, this will need to match the `userpass` value in the request body. |
4929449294
| allow\_weak\_password | boolean | Optional, defaults to `false`. If `true`, will allow low entropy rpc\_password. If `false` rpc\_password must not have 3 of the same characters in a row, must be between 8-32 characters in length, must contain at least one of each of the following: numeric, uppercase, lowercase, special character (e.g. !#$\*). It also can not contain the word "password", or the chars `<`, `>`, or `&`. |
4929549295
| dbdir | string | Optional, defaults to a subfolder named `DB` in the path of your `mm2` binary. This path will store the AtomicDEX-API database data. |
4929649296
| rpcip | string | Optional, defaults to `127.0.0.1`. IP address to bind to for RPC server. |
4929749297
| rpcport | integer | Optional, defaults to `7783`. Port to use for RPC communication. |
4929849298
| rpc\_local\_only | boolean | Optional, defaults to `true`. If `false` the AtomicDEX API will allow rpc methods sent from external IP addresses. **Warning:** Only use this if you know what you are doing, and have put the appropriate security measures in place. |
49299-
| i\_am\_seed | boolean | Optional, defaults to `false`. Runs AtomicDEX API as a seed node mode (acting as a relay for AtomicDEX API clients). Use of this mode is not reccomended on the main network (7777) as it could result in a pubkey ban if non-compliant. On alternative testing or private networks, at least one seed node is required to relay information to other AtomicDEX API clients using the same netID. |
49299+
| i\_am\_seed | boolean | Optional, defaults to `false`. Runs AtomicDEX API as a seed node mode (acting as a relay for AtomicDEX API clients). Use of this mode is not reccomended on the main network (8762) as it could result in a pubkey ban if non-compliant. On alternative testing or private networks, at least one seed node is required to relay information to other AtomicDEX API clients using the same netID. |
4930049300
| seednodes | list of strings | Optional. If operating on a test or private netID, the IP address of at least one seed node is required (on the main network, these are already hardcoded) |
4930149301
| hd\_account\_id | integer | Optional. If this value is set, the AtomicDEX-API will work in only the [HD derivation mode](/atomicdex/api/v20-dev/hd_wallets_overview/), and coins will need to have a coin derivation path entry in the `coins` file for activation. The `hd_account_id` value effectively takes its place in the full derivation as follows: `m/44'/COIN_ID'/<hd_account_id>'/CHAIN/ADDRESS_ID` |
4930249302
| message\_service\_cfg | object | Optional. This data is used to configure [Telegram](https://telegram.org/) messenger alerts for swap events when running using the [makerbot functionality](/atomicdex/api/v20/start_simple_market_maker_bot/). For more information check out the [telegram alerts guide](/atomicdex/api/v20/telegram_alerts/) |
@@ -49309,7 +49309,7 @@ When running the AtomicDEX API via commandline with the `mm2` binary, some basic
4930949309
```json
4931049310
{
4931149311
"gui": "DEVDOCS_CLI",
49312-
"netid": 7777,
49312+
"netid": 8762,
4931349313
"rpc_password": "ENTER_UNIQUE_PASSWORD",
4931449314
"passphrase": "ENTER_UNIQUE_SEED_PHRASE_DONT_USE_THIS_CHANGE_IT_OR_FUNDS_NOT_SAFU",
4931549315
"allow_weak_password": true,
@@ -49322,7 +49322,7 @@ When running the AtomicDEX API via commandline with the `mm2` binary, some basic
4932249322
```json
4932349323
{
4932449324
"gui": "DEVDOCS_CLI",
49325-
"netid": 7777,
49325+
"netid": 8762,
4932649326
"rpc_password": "Ent3r_Un1Qu3_Pa$$w0rd",
4932749327
"passphrase": "ENTER_UNIQUE_SEED_PHRASE_DONT_USE_THIS_CHANGE_IT_OR_FUNDS_NOT_SAFU",
4932849328
"allow_weak_password": false,
@@ -49347,7 +49347,7 @@ If you are using HD wallets, you will need to add the `hd_account_id` value to y
4934749347
```json
4934849348
{
4934949349
"gui": "DEVDOCS_CLI",
49350-
"netid": 7777,
49350+
"netid": 8762,
4935149351
"rpc_password": "Ent3r_Un1Qu3_Pa$$w0rd",
4935249352
"passphrase": "ENTER_UNIQUE_SEED_PHRASE_DONT_USE_THIS_CHANGE_IT_OR_FUNDS_NOT_SAFU",
4935349353
"allow_weak_password": false,
@@ -50297,7 +50297,7 @@ We also need to create an MM2.json file in the same directory as the `coins` fil
5029750297
| Parameter | Type | Description |
5029850298
| ------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
5029950299
| gui | string | Information to identify which app, tool or product is using the API, e.g. `AtomicDEX iOS 1.0.1`. Helps developers identify if an issue is related to specific builds or operating systems etc. |
50300-
| netid | integer | Nework ID number, telling the AtomicDEX API which network to join. 7777 is the current main network, though alternative netids can be used for testing or "private" trades as long as seed nodes exist to support it. |
50300+
| netid | integer | Nework ID number, telling the AtomicDEX API which network to join. 8762 is the current main network, though alternative netids can be used for testing or "private" trades as long as seed nodes exist to support it. |
5030150301
| passphrase | string | Your passphrase; this is the source of each of your coins private keys. KEEP IT SAFE! |
5030250302
| rpc\_password | string | For RPC requests that need authentication, this will need to match the `userpass` value in the request body. |
5030350303

@@ -50313,7 +50313,7 @@ We also need to create an MM2.json file in the same directory as the `coins` fil
5031350313
The MM2.json configuration commands can also be supplied at runtime, as below:
5031450314

5031550315
```bash
50316-
stdbuf -oL ./mm2 "{\"gui\":\"Docs_Walkthru\",\"netid\":7777, \"passphrase\":\"YOUR_PASSPHRASE_HERE\", \"rpc_password\":\"YOUR_PASSWORD_HERE\"}" &
50316+
stdbuf -oL ./mm2 "{\"gui\":\"Docs_Walkthru\",\"netid\":8762, \"passphrase\":\"YOUR_PASSPHRASE_HERE\", \"rpc_password\":\"YOUR_PASSWORD_HERE\"}" &
5031750317
```
5031850318

5031950319
Replace `YOUR_PASSPHRASE_HERE` and `YOUR_PASSWORD_HERE` with your actual passphrase and password, and then execute the command in the terminal.
@@ -50358,7 +50358,7 @@ If you see something similar, the AtomicDEX API is up and running!
5035850358
When using the AtomicDEX API on a VPS without accompanying tools such as `tmux` or `screen`, it is recommended to use [`nohup`](https://www.digitalocean.com/community/tutorials/nohup-command-in-linux) when launching the AtomicDEX-API. This will ensure that the AtomicDEX-API instance is not shutdown when the user logs out.
5035950359

5036050360
```bash
50361-
stdbuf -oL nohup ./mm2 "{\"gui\":\"Docs_Walkthru\",\"netid\":7777, \"passphrase\":\"YOUR_PASSPHRASE_HERE\", \"rpc_password\":\"YOUR_PASSWORD_HERE\"}" &
50361+
stdbuf -oL nohup ./mm2 "{\"gui\":\"Docs_Walkthru\",\"netid\":8762, \"passphrase\":\"YOUR_PASSPHRASE_HERE\", \"rpc_password\":\"YOUR_PASSWORD_HERE\"}" &
5036250362
```
5036350363
</Note>
5036450364

@@ -50522,7 +50522,7 @@ The response below shows a list of users willing to send DOC in exchange for MAR
5052250522

5052350523
<CollapsibleSection expandedText="Hide Response" collapsedText="Show Response">
5052450524
```json
50525-
{"bids": [],"numbids": 0,"biddepth": 0,"asks": [{"coin": "DOC","address": "RJTYiYeJ8eVvJ53n2YbrVmxWNNMVZjDGLh","price": "0.89999998","price_rat": [[1, [813957463, 471859]],[1, [0, 524288]]],"price_fraction": {"numer": "2026619787280727","denom": "2251799813685248"},"maxvolume": "10855.85028615","max_volume_rat": [[1, [3593286463, 1389548]],[1, [0, 128]]],"max_volume_fraction": {"numer": "5968066809508671","denom": "549755813888"},"pubkey": "5a2f1c468b7083c4f7649bf68a50612ffe7c38b1d62e1ece3829ca88e7e7fd12","age": 5,"uuid": "5bff6021-b086-477e-b874-f45d898933fe","is_mine": false}],"numasks": 1,"askdepth": 0,"base": "DOC","rel": "MARTY","timestamp": 1549319941,"netid": 7777}
50525+
{"bids": [],"numbids": 0,"biddepth": 0,"asks": [{"coin": "DOC","address": "RJTYiYeJ8eVvJ53n2YbrVmxWNNMVZjDGLh","price": "0.89999998","price_rat": [[1, [813957463, 471859]],[1, [0, 524288]]],"price_fraction": {"numer": "2026619787280727","denom": "2251799813685248"},"maxvolume": "10855.85028615","max_volume_rat": [[1, [3593286463, 1389548]],[1, [0, 128]]],"max_volume_fraction": {"numer": "5968066809508671","denom": "549755813888"},"pubkey": "5a2f1c468b7083c4f7649bf68a50612ffe7c38b1d62e1ece3829ca88e7e7fd12","age": 5,"uuid": "5bff6021-b086-477e-b874-f45d898933fe","is_mine": false}],"numasks": 1,"askdepth": 0,"base": "DOC","rel": "MARTY","timestamp": 1549319941,"netid": 8762}
5052650526
```
5052750527
</CollapsibleSection>
5052850528

@@ -50585,7 +50585,7 @@ Try again this time adding ` | jq` to the end of the `bash` example below:
5058550585
"base": "DOC",
5058650586
"rel": "MARTY",
5058750587
"timestamp": 1549320152,
50588-
"netid": 7777
50588+
"netid": 8762
5058950589
}
5059050590
```
5059150591
</CollapsibleSection>
@@ -51189,7 +51189,7 @@ Display the KMD/LTC Orderbook.
5118951189
"is_mine": false
5119051190
}
5119151191
],
51192-
"netid": 7777,
51192+
"netid": 8762,
5119351193
"numasks": 1,
5119451194
"numbids": 1,
5119551195
"rel": "LTC",
@@ -51270,7 +51270,7 @@ Display the LTC/KMD Orderbook.
5127051270
"is_mine": false
5127151271
}
5127251272
],
51273-
"netid": 7777,
51273+
"netid": 8762,
5127451274
"numasks": 1,
5127551275
"numbids": 1,
5127651276
"rel": "KMD",
@@ -52395,7 +52395,7 @@ apt-get install -y unzip jq curl
5239552395
wget $(curl --silent https://api.github.com/repos/KomodoPlatform/atomicDEX-API/releases | jq -r '.[0].assets[] | select(.name | endswith("Linux-Release.zip")).browser_download_url')
5239652396
wget https://raw.githubusercontent.com/KomodoPlatform/coins/master/coins
5239752397
unzip *Linux-Release.zip
52398-
./mm2 "{\"netid\":7777,\"gui\":\"aws_cli\",\"passphrase\":\"SEED_WORDS_PLEASE_REPLACE\",\"rpc_password\":\"RPC_PASS_PLEASE_REPLACE\",\"myipaddr\":\"0.0.0.0\"}"
52398+
./mm2 "{\"netid\":8762,\"gui\":\"aws_cli\",\"passphrase\":\"SEED_WORDS_PLEASE_REPLACE\",\"rpc_password\":\"RPC_PASS_PLEASE_REPLACE\",\"myipaddr\":\"0.0.0.0\"}"
5239952399
```
5240052400

5240152401
## Install AWS CLI , get AWS access credentials

0 commit comments

Comments
 (0)