Questions tagged [iri-api]

For questions related to IOTA's Application Programming Interface (API)

6
votes
1answer
185 views

How does a client detect new IOTA transactions?

I am trying to understand IOTA at code level and the APIs. 1) How does a client know that there is a new transaction that it needs to fetch from a node? Does it keep calling findTransactions and ...
9
votes
1answer
488 views

How to know a transaction is “confirmed”?

I'm building a little IOTA test project with TypeScript + Node.js. I want to start an action when IOTAs are received on an certain address. I've tried the findTransactionObjects function, but I don'...
3
votes
1answer
118 views

What commands are available via the API?

Where can I find a list of all the commands that the API accepts?
4
votes
1answer
79 views

How do I configure a public node?

How can I configure my node such that it is secure for public access? I am aware that I can use either the --remote-limit-api launch argument, or by setting it in my ini; REMOTE_LIMIT_API=...
4
votes
1answer
63 views

Why can I not run commands on a node?

I am trying to query a node: curl http://my.node.addr:14265 \ > -X POST \ > -H 'Content-Type: application/json' \ > -H 'X-IOTA-API-Version: 1' \ > -d '{"command": "getNodeInfo"}'...