Hot answers tagged

8 votes
Accepted

How to know a transaction is "confirmed"?

You can call the GetLatestInclusion convenience function in iota.lib.js. Under the hood, this will first call getNodeInfo to find out the latest solid subtangle milestone hash, and then call ...
user avatar
  • 7,254
7 votes

Extracting data from the tangle

Basically there are three ways to get to the data (depending on what you want): Query the API of your node to find transactions and walk along them. This might be slow (depending on what you are ...
user avatar
  • 7,254
7 votes
Accepted

What commands are available via the API?

The API command reference is available here: https://iota.readme.io/v1.2.0/reference At the time of answering, the commands are: getNodeInfo getNeighbors addNeighbors removeNeighbors getTips ...
user avatar
  • 1,358
7 votes
Accepted

Why can I not run commands on a node?

This occurs when you launch the full node with the --remote-limit-api flag and disallow the use of certain commands. Normally it is used to disallow access to attachToTangle, but the same could happen ...
user avatar
  • 1,358
6 votes

How does a client detect new IOTA transactions?

1) Every fullnode must reference neighbors and must be referenced by (same) neighbors. When a new transaction is submited to a fullnode: it immediately broadcast it to all it's neighbors. So a node ...
user avatar
  • 5,344
6 votes
Accepted

Iota ZeroMQ consumer

Each record represents one transaction which was newly received by the node. I'll take apart one single line (which represents this transaction - so you can compare the values there). The Java code in ...
user avatar
  • 7,254
5 votes

Invalid address input returned by findTransactions() though TX is avail on thetangle.org

Found the problem myself. Addresses must be 81 in length. The address above has a length of 90 because it includes the checksum. The Tangle obviously is clever enough to strip the last 9 digits.
user avatar
  • 1,063
5 votes
Accepted

How do I configure a public node?

If possible, you should make it available via HTTPS as well (as some wallets will only talk to HTTPS nodes). You should definitely disable commands related to neighbors, otherwise others could remove ...
user avatar
  • 7,254
5 votes

Get approvers of transaction using api?

There is the findTransactions api (with the approvees parameter) that return the list of all transactions directly approving the one (or the multiple) passed in parameter : curl <NODE_URL> \ -...
user avatar
  • 5,344
4 votes
Accepted

What does the `security` param for `getNewAddress` do?

It's the "Security level to be used for the private key / address. Can be 1, 2 or 3." A security level determines the number of rounds for hashing, or in other words the length of the private key. ...
user avatar
  • 5,344
4 votes
Accepted

Does "transactionsToRequest==0" mean a node is fully synced with its immediate peers?

When your node recieve a transaction from one of it's neighbors: this transaction is referencing 2 other transactions : t1 and t2 (trunk and branch transaction). If either t1 or t2 (or both) is not ...
user avatar
  • 5,344
4 votes
Accepted

Is it safe to expose the API to the public?

Exposing your API to the public has risks, but is not necessarily a problem. Some of the risks include a higher likelihood of a Denial of Service attack, additional attempts to port-scan your IP (for ...
user avatar
4 votes

How do I find out whether a TX has been reattached?

When you reattach a transaction bundle, you will have two or more sets of transactions (the bundles) with identical bundle hash. Therefore, query transactions by bundle hash, and then group the ...
user avatar
  • 7,254
4 votes
Accepted

How to get child transactions?

Call findTransactions and pass the hash of the "certain" transaction in the approvees parameter: curl http://localhost:14265 \ -X POST \ -H 'Content-Type: application/json' \ -H 'X-IOTA-API-...
user avatar
  • 7,254
4 votes
Accepted

How to get the sender address from an IOTA transfer

Zero value transactions don't have a sender address. If you wan't to get them for value transactions you can get them through the input of the bundle which had that transaction.
user avatar
  • 56
4 votes

How do you find addresses with balance with the seed?

You don't need to generate million of addresses at least if your seed was use properly. Normally, a wallet should use addresses one after the other by just incrementing by one the index of the ...
user avatar
  • 5,344
3 votes
Accepted

Is it correct that a wallet which does PoW never needs to call attachToTangle?

Yes, this is all correct. Don't forget to storeTrnsactions before you broadcast them, or your own node may not have them later for reference.
user avatar
  • 7,254
3 votes
Accepted

Javascript Transaction object Message versus Tag

The Tag field is short and can be used to search transactions (so you can search the tangle for transactions with tag "GUS9GORMAN", but not for transactions with message "GUS9GORMAN"). The Message ...
user avatar
  • 7,254
3 votes
Accepted

How to restrict access to certain API commands so that only certain clients can call them?

When you limit the allowed API calls with remote-limit-api option, this will only be valid when the caller is remote (i. e. not on the loopback interface). So if you run scripts on your own host, they ...
user avatar
  • 7,254
3 votes
Accepted

How to attach an address to tangle programmatically?

Attaching an address is just sending a 0 value tx to this address. You can use the sendTransfer method of the JavaScript library. It handles the tip-selection (branch- and trunkTransaction) and ...
user avatar
  • 1,468
3 votes
Accepted

Attaching an address to the tangle via the API

Unlike other systems like Bitcoin, IOTA transactions do not distinguish between source and destination addresses. Every transaction in a bundle has exactly one address. If the transaction value is ...
user avatar
  • 7,254
3 votes
Accepted

What IRI API commands should only be executed on a node that is synced to the latest milestone?

Here is the list of all API calls (except nodeInfo and neighbors related calls), with a brief description of what it does. Hope it helps. (don't hesitate to edit, or leave a comment is something is ...
user avatar
  • 5,344
2 votes

ProxyPass a path to IRI's API

Probably depends on what library is used to access your node. The Java library (as well as the Android wallet) uses three parameters for protocol, hostname and port, and therefore would require some ...
user avatar
  • 7,254
2 votes

ProxyPass a path to IRI's API

This is definitely just an issue with the IOTA Wallet. You can create an issue on GitHub. It's probably very easy to add functionality for this and just nobody needed it until now. I assume it just ...
user avatar
  • 4,459
2 votes

API Validation failed: Could not complete request

The problem is related to the default limits encountered. Most users might be presented with a disconnected message after attempting to login. To understand why, let's review some of the code. Here ...
user avatar
2 votes

Authenticated remote IRI API calls. Fullnode startup flags and config

IRI API currently uses HTTP Basic Authentication which transports username and password in an unencrypted form. I believe the documentation is implicitly suggesting that you shouldn't use your regular ...
user avatar
2 votes
Accepted

Attaching an address generated by an old version of the library?

Attaching such old (Curl) addresses might work, but it is by design that it does not most of the time, because usually this is not what you want to do (if you do not want to lose your funds). Read ...
user avatar
  • 7,254
2 votes
Accepted

How to save the bundle trytes to reattach after a snapshot?

Starting from the bundle hash, call the findTransactions API to get the transaction hashes of all transactions in your bundle. Pass the hashes to getTrytes to retrieve the transactions as tryte-...
user avatar
  • 7,254
2 votes

Attaching an address to the tangle via the API

The following Python code can be used to attach an address to the tangle import time from iota import Iota from iota import Address from iota import ProposedTransaction ''' both work, with and ...
user avatar
  • 921
2 votes

findTransaction not finding tag

The problem is caused by the fact that a transaction has two "tag" fields. The traditional/obsolete one (called either "tag" or "obsoleteTag"), and a "new tag" which is not part of the signature. ...
user avatar
  • 7,254

Only top scored, non community-wiki answers of a minimum length are eligible