Module iota_lib_rs::iri_api [−][src]
Provides methods to call IRI APIs
Modules
responses |
IRI responses are parsed into typed structs contained in this module |
Structs
MAX_TIMESTAMP_VALUE |
This is a computed constant that represent the maximum allowed timestamp value |
Functions
add_neighbors |
Add a list of neighbors to your node. It should be noted that this is only temporary, and the added neighbors will be removed from your set of neighbors after you relaunch IRI. |
attach_to_tangle |
Performs proof of work |
broadcast_transactions |
Broadcast a list of transactions to all neighbors. The input trytes for this call are provided by attachToTangle. |
check_consistency |
Checks for consistency of given hashes, not part of the public api |
find_transactions |
Finds transactions the match any of the provided parameters |
get_balances |
Returns the balance based on the latest confirmed milestone. In addition to the balances, it also returns the referencing tips (or milestone), as well as the index with which the confirmed balance was determined. The balances is returned as a list in the same order as the addresses were provided as input. |
get_inclusion_states |
Get the inclusion states of a set of transactions. This is for determining if a transaction was accepted and confirmed by the network or not. You can search for multiple tips (and thus, milestones) to get past inclusion states of transactions. |
get_neighbors |
Returns the set of neighbors you are connected with, as well as their activity count. The activity counter is reset after restarting IRI. |
get_node_info |
Gets information about the specified node |
get_tips |
Returns the list of tups |
get_transactions_to_approve |
Tip selection which returns |
get_trytes |
Returns the raw transaction data (trytes) of a specific transaction. These trytes can then be easily converted into the actual transaction object. See utility functions for more details. |
interrupt_attaching_to_tangle |
Interupts an existing PoW request if you made one |
remove_neighbors |
Removes a list of neighbors to your node. This is only temporary, and if you have your neighbors added via the command line, they will be retained after you restart your node. |
store_transactions |
Store transactions into the local storage. The trytes to be used for this call are returned by attachToTangle. |
were_addresses_spent_from |
Check if a list of addresses was ever spent from. |