Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yarn start command #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Developers getting to know [iota.lib.js](https://github.com/iotaledger/iota.lib.
"_COMMAND attachToTangle is not available on this node_" response after calling iota.api.sendTransfer().
Some others may have experienced the same error message when calling the REST API [attachToTangle](https://iota.readme.io/docs/attachtotangle) command.
The attachToTangle command is a request to perform the PoW that is necessary when doing a transaction.

Most public full nodes in the IOTA network do not support the [attachToTangle](https://iota.readme.io/docs/attachtotangle) command.
By design it is expected that you do the PoW locally on your device, the network is not required to do this for you.

Expand All @@ -30,7 +30,7 @@ and [ccurl](https://github.com/iotaledger/ccurl.git), and override the iota.api.

> This repository contains code and precompiled libraries from [iotaledger/wallet](https://github.com/iotaledger/wallet).
> Licence: GNU General Public License v3.0

---

## Prerequisites
Expand Down Expand Up @@ -64,8 +64,8 @@ and [ccurl](https://github.com/iotaledger/ccurl.git), and override the iota.api.
var iotaProxy = require('./lib/iotaproxy.js');
iotaProxy.start(
{
host: 'http://iota.bitfinex.com',
port: 80,
host: 'http://iota.bitfinex.com',
port: 80,
localPort: 14265,
overrideAttachToTangle: true
}
Expand All @@ -74,9 +74,15 @@ and [ccurl](https://github.com/iotaledger/ccurl.git), and override the iota.api.

5. Run the proxy server:

manually

```
node --harmony index.js
```
or use yarn or npm
```
yarn start
```

6. Proxy server is now ready to use. It will start off displaying this in the console:

Expand All @@ -97,7 +103,7 @@ and [ccurl](https://github.com/iotaledger/ccurl.git), and override the iota.api.
'port': 14265
});
```





---
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Simple IOTA Proxy server with attachToTangle/PoW support",
"main": "index.js",
"scripts": {
"test": "echo \"no test specified\" && exit 1"
"test": "echo \"no test specified\" && exit 1",
"start": "node --harmony index.js"
},
"author": {
"name": "Tim Samshuijzen"
Expand Down