Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSamshuijzen authored Aug 26, 2017
1 parent b2aa8c5 commit 2e8e7bc
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
19 changes: 19 additions & 0 deletions index.js
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
}
);

17 changes: 17 additions & 0 deletions package.json
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"
}
}

0 comments on commit 2e8e7bc

Please sign in to comment.