TimSamshuijzen / iotaproxy

A simple proxy server for the IOTA tangle network, supporting the attachToTangle command (PoW).
GNU General Public License v3.0
43 stars 18 forks source link

Not able to access attachToTangle on own full IOTA node #17

Open tx0b opened 6 years ago

tx0b commented 6 years ago

I followed your advice: "Install and run your own full IOTA node, configured to grant you access to the attachToTangle command."

My configuration in die iota.ini: REMOTE_LIMIT_API = "removeNeighbors, addNeighbors, getNeighbors, setApiRateLimit" Still not able to access the attachToTangle command. When I execute the following code I get nothing back and no time out:

// Generate a single address deterministically with seed 'ABCDFG'
iota.api.getNewAddress('<seed>', function(e, address) {

  console.log(e, address);
    if (!e) {
        console.log(address);

            var transfer = [{
            'address': address,
            'value': 0
        }];

        iota.api.sendTransfer('<seed>', 3, 18, transfer, function(e,s) {

            if (!e) {
                console.log("Successfully generated and attached address");
            } else {
                console.log(e);
            }
        });
    } else {
        console.log(e);
    }

});
nicoschtein commented 6 years ago

Does this relate to the proxy? Are you running this code locally on the same host as the full node? If not try adding REMOTE=true the same way you added REMOTE_LIMIT_API.