-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b2aa8c5
commit 2e8e7bc
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
/** | ||
* Simple proxy server for IOTA. | ||
* Relays commands to the IOTA Tangle, but intercepts attachToTangle commands and performs PoW locally. | ||
* | ||
* This proxy server useful for when you want to perform transfers with iota.lib.js in Node but do not have access to a full node that grants you to perform the PoW. | ||
*/ | ||
|
||
var iotaProxy = require('./lib/iotaproxy.js'); | ||
|
||
iotaProxy.start( | ||
{ | ||
host: 'http://iota.bitfinex.com', | ||
port: 80, | ||
localPort: 14265, | ||
overrideAttachToTangle: true | ||
} | ||
); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "iotaproxy", | ||
"version": "1.0.0", | ||
"description": "Simple IOTA Proxy server with attachToTangle/PoW support", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"no test specified\" && exit 1" | ||
}, | ||
"author": { | ||
"name": "Tim Samshuijzen" | ||
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"ffi": "^2.2.0", | ||
"iota.lib.js": "^0.3.8" | ||
} | ||
} |