Questions tagged [javascript]
Tag for questions on the javascript library of Iota and related subjects.
9
questions with no upvoted or accepted answers
3
votes
0
answers
46
views
Why do I need to create an IOTA instance to use the library functions?
Let the IOTA node instance be iota variable in the following context:
var IOTA=require("./node_modules/iota.lib.js/lib/iota")
var iota=new IOTA({ 'provider': 'https://iotanode.us:443'})
If I want to ...
2
votes
2
answers
193
views
Receiving JSON messages from ZMQ feed using an IRI fullnode
I am trying to use ZMQ feeds to monitor IRI nodes and addresses, but I am having trouble obtaining the "Message" in text and/or JSON.
I am using this code:
let zmq = require('zeromq')
let sock = zmq....
2
votes
0
answers
38
views
Caching account data
Reading through the documentation for the IOTA Javascript Library I realized the method iota.api.getAccountData can be provided with an starting index:
iota.api.getAccountData(seed, {start: 123}, ...
2
votes
0
answers
75
views
Invalid response from server using iota.lib.js
I try the sendTransfer command on my full node. After long time, I get this error:
Error: Invalid Response:
at Object.invalidResponse (/home/atena/iota/node_modules/iota.lib.js/lib/errors/...
1
vote
0
answers
42
views
Can't connect to custom hornet node using nodejs clientbuilder
Have a hornet node set up on AWS, able to access the dashboard and interact with the REST API just fine. However when trying to build a connection to it using nodejs @iota/client ClientBuilder cannot ...
1
vote
0
answers
116
views
How to attach a message multiple times (say 200 times) with the tangle using MAM
What I am trying to do is to attach a payload to the tangle using MAM protocol. If I run this loop for k=5 times it works fine i.e., data is attached to the Tangle. I confirmed that the data is ...
0
votes
1
answer
127
views
How to publish messages using MAM to my private tangle?
I have a private tangle with 2 hornet nodes. I tried MAM using one of the devnet nodes by following the example on the official IOTA webpage. Can someone please tell me how do I publish and fetch ...
0
votes
0
answers
23
views
What is an “apiEndpoint” in poc-ipfs config file
In the poc-ipfs app blueprint from IOTA’s GitHub, they have a config file on the client side (link below), one of the parts of the script contains “apiEndpoint”, I do not know what would go there for ...
0
votes
0
answers
46
views
getAccountData returns undefined
it is a few days ago that getAccountData has stopped returning value (returns always undefined). Does any of you know why?
This is the code:
iota.getAccountData(seed, {start: 0,security: 2})
...