Questions tagged [iri-api]

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

5 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
0answers
153 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
121 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
34 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
61 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
30 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.