Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [iri-api]

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

8
votes
0answers
147 views

How to get the cumulative weight (and score, height, depth) of a transaction?

I know that I can get the weight of a transaction by converting the transaction hash into trits and count the trailing number of zeros. import iota def get_transaction_weight(transaction_hash): ...
4
votes
0answers
109 views

How to connect cli-app with IOTA Javascript Library

I installed IOTA CLI Wallet and executing 'iota-cli' works after iri is executed. I get NodeInfo command run on iota-cli from my terminal also. So I guess a stand alone IOTA wallet core is now ...
2
votes
0answers
33 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}, ...
1
vote
0answers
53 views

What does the new parameter 'reference' do in sendTrytes?

PR #112 added a second parameter, namely String reference, to GetTransactionsToApproveResponse. This parameter can also be set in sendTrytes. The Javadoc there says Hash of transaction to start ...
0
votes
0answers
26 views

How to understand if a transfer is an ingoing or an outgoing one by calling getAccountData?

I'd like to know how I can check if a transfer is an ingoing or an outgoing one, and know the respective sent/received amount by calling getAccountData from the Iota JavaScript library.