{"__v":1,"_id":"5809cdde8a22912500ad3277","api":{"results":{"codes":[{"name":"","code":"{}","language":"json","status":200},{"name":"","code":"{}","language":"json","status":400}]},"settings":"","auth":"required","params":[],"url":""},"body":"[IOTA](https://iotatoken.com) is a revolutionary new transactional settlement and data transfer layer for the Internet of Things. It’s based on a new distributed ledger, the Tangle, which overcomes the inefficiencies of current Blockchain designs and introduces a new way of reaching consensus in a decentralized peer-to-peer system. For the first time ever, through IOTA people can transfer money without any fees. This means that even infinitesimally small nanopayments can be made through IOTA.\n\nIOTA is the missing puzzle piece for the Machine Economy to fully emerge and reach its desired potential. We envision IOTA to be the public, permissionless backbone for the Internet of Things that enables true interoperability between all devices. \n\n[block:callout]\n{\n  \"type\": \"danger\",\n  \"title\": \"IOTA IS CURRENTLY IN BETA\",\n  \"body\": \"It should be noted that IOTA is currently still in Beta. This means that the current Java implementation is an **unoptimized reference implementation**. Major improvements to performance, features as well as ease of use will be made over the coming months.\"\n}\n[/block]","category":"5809cdde8a22912500ad3253","createdAt":"2016-07-02T11:37:56.216Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":0,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"what-is-iota","sync_unique":"","title":"What is IOTA?","type":"basic","updates":["586d0e19e86a4e1900db401c"],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

What is IOTA?


[IOTA](https://iotatoken.com) is a revolutionary new transactional settlement and data transfer layer for the Internet of Things. It’s based on a new distributed ledger, the Tangle, which overcomes the inefficiencies of current Blockchain designs and introduces a new way of reaching consensus in a decentralized peer-to-peer system. For the first time ever, through IOTA people can transfer money without any fees. This means that even infinitesimally small nanopayments can be made through IOTA. IOTA is the missing puzzle piece for the Machine Economy to fully emerge and reach its desired potential. We envision IOTA to be the public, permissionless backbone for the Internet of Things that enables true interoperability between all devices. [block:callout] { "type": "danger", "title": "IOTA IS CURRENTLY IN BETA", "body": "It should be noted that IOTA is currently still in Beta. This means that the current Java implementation is an **unoptimized reference implementation**. Major improvements to performance, features as well as ease of use will be made over the coming months." } [/block]
[IOTA](https://iotatoken.com) is a revolutionary new transactional settlement and data transfer layer for the Internet of Things. It’s based on a new distributed ledger, the Tangle, which overcomes the inefficiencies of current Blockchain designs and introduces a new way of reaching consensus in a decentralized peer-to-peer system. For the first time ever, through IOTA people can transfer money without any fees. This means that even infinitesimally small nanopayments can be made through IOTA. IOTA is the missing puzzle piece for the Machine Economy to fully emerge and reach its desired potential. We envision IOTA to be the public, permissionless backbone for the Internet of Things that enables true interoperability between all devices. [block:callout] { "type": "danger", "title": "IOTA IS CURRENTLY IN BETA", "body": "It should be noted that IOTA is currently still in Beta. This means that the current Java implementation is an **unoptimized reference implementation**. Major improvements to performance, features as well as ease of use will be made over the coming months." } [/block]
{"__v":0,"_id":"5809cdde8a22912500ad3278","api":{"results":{"codes":[{"name":"","code":"{}","language":"json","status":200},{"name":"","code":"{}","language":"json","status":400}]},"settings":"","auth":"required","params":[],"url":""},"body":"Because IOTA introduces some rather new concepts to the Blockchain-space, we will list a couple of terms which are important to understand in order to fully grasp IOTA.\n\nThis Glossary is work in progress. If you are uncertain about a term, please suggest [one here](https://iota.readme.io/discuss) so we can add it to this glossary. \n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Generic Terms\"\n}\n[/block]\n* **`Peer to Peer Network`**: Decentralized network consisting of peers (or nodes) which are connected with each other and perform some form of data sharing with each other. \n* **`Proof of Work`**: Algorithm which prevents Denial of Service and spam attacks on a network. Computationally hard puzzle, but easy to verify.\n* **`Trinary`**: Alternative to binary, which consists of three states: true, false and unknown. Read more [here](https://en.wikipedia.org/wiki/Balanced_ternary) \n* **`DAG`**: Directed Acyclic Graph. Is a specific data structure based on a graph without any directed cycles. Instead of having a single branch with nodes having only one edge, in a DAG there can be multiple branches. Refer to [Wikipedia](https://en.wikipedia.org/wiki/Directed_acyclic_graph) for more information.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"IOTA Terms\"\n}\n[/block]\n* **`Tangle`**: A directed acyclic graph (DAG) as a distributed ledger which stores all transaction data of the IOTA network. It is a Blockchain without the blocks and the chain (so is it really a Blockchain?). The Tangle is the first distributed ledger to achieve **scalability**, **no fee transactions**, **data integrity and transmission** as well as **quantum-computing protection**. Contrary to today’s Blockchains, consensus is no-longer decoupled but instead an intrinsic part of the system, leading to a completely decentralized and self-regulating peer-to-peer network.\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/v2GmVOXhRw6tOxXMDSDg_Screen%20Shot%202016-07-03%20at%2014.14.56.png\",\n        \"Screen Shot 2016-07-03 at 14.14.56.png\",\n        \"1178\",\n        \"388\",\n        \"#323232\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n* **`Seed`**: String consisting only of uppercase latin letters and 9's which is used to access an account. A seed is like a private key/password. **Keep it secure and don't share it with anyone.** If someone has access to your seed they can access your account. The maximum security level for seed is 81-trytes (81 chars), but you can choose longer seeds, the security of it just won't increase.\n* **`Tips`**: transactions which have no other transactions referencing them.\n* **`Confirm/Validate`**: In order to broadcast a new transaction in IOTA, you must first validate two previous transactions. This confirmation happens by validating the transaction trytes, the signatures and cross-checking for conflicting transactions as well as the completion of a Proof of Work puzzle.\n* **`Branch/Trunk Transactions`**: Two transactions which were referenced and validated by another transaction.\n* **`Bundle`**: Transactions which are bundled (or grouped) together during the creation of a transfer.","category":"5809cdde8a22912500ad3253","createdAt":"2016-07-02T11:43:52.781Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":1,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"glossary","sync_unique":"","title":"Glossary","type":"basic","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

Glossary


Because IOTA introduces some rather new concepts to the Blockchain-space, we will list a couple of terms which are important to understand in order to fully grasp IOTA. This Glossary is work in progress. If you are uncertain about a term, please suggest [one here](https://iota.readme.io/discuss) so we can add it to this glossary. [block:api-header] { "type": "basic", "title": "Generic Terms" } [/block] * **`Peer to Peer Network`**: Decentralized network consisting of peers (or nodes) which are connected with each other and perform some form of data sharing with each other. * **`Proof of Work`**: Algorithm which prevents Denial of Service and spam attacks on a network. Computationally hard puzzle, but easy to verify. * **`Trinary`**: Alternative to binary, which consists of three states: true, false and unknown. Read more [here](https://en.wikipedia.org/wiki/Balanced_ternary) * **`DAG`**: Directed Acyclic Graph. Is a specific data structure based on a graph without any directed cycles. Instead of having a single branch with nodes having only one edge, in a DAG there can be multiple branches. Refer to [Wikipedia](https://en.wikipedia.org/wiki/Directed_acyclic_graph) for more information. [block:api-header] { "type": "basic", "title": "IOTA Terms" } [/block] * **`Tangle`**: A directed acyclic graph (DAG) as a distributed ledger which stores all transaction data of the IOTA network. It is a Blockchain without the blocks and the chain (so is it really a Blockchain?). The Tangle is the first distributed ledger to achieve **scalability**, **no fee transactions**, **data integrity and transmission** as well as **quantum-computing protection**. Contrary to today’s Blockchains, consensus is no-longer decoupled but instead an intrinsic part of the system, leading to a completely decentralized and self-regulating peer-to-peer network. [block:image] { "images": [ { "image": [ "https://files.readme.io/v2GmVOXhRw6tOxXMDSDg_Screen%20Shot%202016-07-03%20at%2014.14.56.png", "Screen Shot 2016-07-03 at 14.14.56.png", "1178", "388", "#323232", "" ] } ] } [/block] * **`Seed`**: String consisting only of uppercase latin letters and 9's which is used to access an account. A seed is like a private key/password. **Keep it secure and don't share it with anyone.** If someone has access to your seed they can access your account. The maximum security level for seed is 81-trytes (81 chars), but you can choose longer seeds, the security of it just won't increase. * **`Tips`**: transactions which have no other transactions referencing them. * **`Confirm/Validate`**: In order to broadcast a new transaction in IOTA, you must first validate two previous transactions. This confirmation happens by validating the transaction trytes, the signatures and cross-checking for conflicting transactions as well as the completion of a Proof of Work puzzle. * **`Branch/Trunk Transactions`**: Two transactions which were referenced and validated by another transaction. * **`Bundle`**: Transactions which are bundled (or grouped) together during the creation of a transfer.
Because IOTA introduces some rather new concepts to the Blockchain-space, we will list a couple of terms which are important to understand in order to fully grasp IOTA. This Glossary is work in progress. If you are uncertain about a term, please suggest [one here](https://iota.readme.io/discuss) so we can add it to this glossary. [block:api-header] { "type": "basic", "title": "Generic Terms" } [/block] * **`Peer to Peer Network`**: Decentralized network consisting of peers (or nodes) which are connected with each other and perform some form of data sharing with each other. * **`Proof of Work`**: Algorithm which prevents Denial of Service and spam attacks on a network. Computationally hard puzzle, but easy to verify. * **`Trinary`**: Alternative to binary, which consists of three states: true, false and unknown. Read more [here](https://en.wikipedia.org/wiki/Balanced_ternary) * **`DAG`**: Directed Acyclic Graph. Is a specific data structure based on a graph without any directed cycles. Instead of having a single branch with nodes having only one edge, in a DAG there can be multiple branches. Refer to [Wikipedia](https://en.wikipedia.org/wiki/Directed_acyclic_graph) for more information. [block:api-header] { "type": "basic", "title": "IOTA Terms" } [/block] * **`Tangle`**: A directed acyclic graph (DAG) as a distributed ledger which stores all transaction data of the IOTA network. It is a Blockchain without the blocks and the chain (so is it really a Blockchain?). The Tangle is the first distributed ledger to achieve **scalability**, **no fee transactions**, **data integrity and transmission** as well as **quantum-computing protection**. Contrary to today’s Blockchains, consensus is no-longer decoupled but instead an intrinsic part of the system, leading to a completely decentralized and self-regulating peer-to-peer network. [block:image] { "images": [ { "image": [ "https://files.readme.io/v2GmVOXhRw6tOxXMDSDg_Screen%20Shot%202016-07-03%20at%2014.14.56.png", "Screen Shot 2016-07-03 at 14.14.56.png", "1178", "388", "#323232", "" ] } ] } [/block] * **`Seed`**: String consisting only of uppercase latin letters and 9's which is used to access an account. A seed is like a private key/password. **Keep it secure and don't share it with anyone.** If someone has access to your seed they can access your account. The maximum security level for seed is 81-trytes (81 chars), but you can choose longer seeds, the security of it just won't increase. * **`Tips`**: transactions which have no other transactions referencing them. * **`Confirm/Validate`**: In order to broadcast a new transaction in IOTA, you must first validate two previous transactions. This confirmation happens by validating the transaction trytes, the signatures and cross-checking for conflicting transactions as well as the completion of a Proof of Work puzzle. * **`Branch/Trunk Transactions`**: Two transactions which were referenced and validated by another transaction. * **`Bundle`**: Transactions which are bundled (or grouped) together during the creation of a transfer.
{"__v":0,"_id":"5809cdde8a22912500ad3279","api":{"results":{"codes":[{"name":"","code":"{}","language":"json","status":200},{"name":"","code":"{}","language":"json","status":400}]},"settings":"","auth":"required","params":[],"url":""},"body":"### Is IOTA inflationary? Can I mine IOTA's?\n\nAll IOTA's which will ever exist have been created with the genesis transaction. This means that the total supply of IOTA's will always stay the same and you cannot \"mine\" IOTA's. Therefore keep in mind, if you do Proof of Work in IOTA you are not generating new IOTA tokens, you're simply verifying other transactions.\n\n### What is the total supply of IOTA?\n\nThe total supply of IOTA is `(3^33-1) / 2`, which equals to a total number of IOTA's of `2779530283277761`. IOTA is specifically designed for machines, so this high supply makes IOTA optimal for tiny nanotransactions while still keeping efficiency in mind. It also nicely fits into the `MAX_SAFE_INTEGER` value in Javascript.\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"WORK IN PROGRESS!\",\n  \"body\": \"This page is currently being worked on and improved. If you have any questions, feel free to submit them via https://iota.readme.io/discuss\"\n}\n[/block]","category":"5809cdde8a22912500ad3253","createdAt":"2016-07-02T11:45:41.653Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":2,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"frequently-asked-questions","sync_unique":"","title":"Frequently Asked Questions","type":"basic","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

Frequently Asked Questions


### Is IOTA inflationary? Can I mine IOTA's? All IOTA's which will ever exist have been created with the genesis transaction. This means that the total supply of IOTA's will always stay the same and you cannot "mine" IOTA's. Therefore keep in mind, if you do Proof of Work in IOTA you are not generating new IOTA tokens, you're simply verifying other transactions. ### What is the total supply of IOTA? The total supply of IOTA is `(3^33-1) / 2`, which equals to a total number of IOTA's of `2779530283277761`. IOTA is specifically designed for machines, so this high supply makes IOTA optimal for tiny nanotransactions while still keeping efficiency in mind. It also nicely fits into the `MAX_SAFE_INTEGER` value in Javascript. [block:callout] { "type": "warning", "title": "WORK IN PROGRESS!", "body": "This page is currently being worked on and improved. If you have any questions, feel free to submit them via https://iota.readme.io/discuss" } [/block]
### Is IOTA inflationary? Can I mine IOTA's? All IOTA's which will ever exist have been created with the genesis transaction. This means that the total supply of IOTA's will always stay the same and you cannot "mine" IOTA's. Therefore keep in mind, if you do Proof of Work in IOTA you are not generating new IOTA tokens, you're simply verifying other transactions. ### What is the total supply of IOTA? The total supply of IOTA is `(3^33-1) / 2`, which equals to a total number of IOTA's of `2779530283277761`. IOTA is specifically designed for machines, so this high supply makes IOTA optimal for tiny nanotransactions while still keeping efficiency in mind. It also nicely fits into the `MAX_SAFE_INTEGER` value in Javascript. [block:callout] { "type": "warning", "title": "WORK IN PROGRESS!", "body": "This page is currently being worked on and improved. If you have any questions, feel free to submit them via https://iota.readme.io/discuss" } [/block]
{"__v":0,"_id":"5809cdde8a22912500ad327a","api":{"results":{"codes":[{"name":"","code":"{}","language":"json","status":200},{"name":"","code":"{}","language":"json","status":400}]},"settings":"","auth":"required","params":[],"url":""},"body":"The IOTA Whitepaper which describes the main technology behind IOTA - the Tangle - is available to read online. It goes into greater detail about the structure as well as the security of the Tangle.\n\n#### [http://iotatoken.com/IOTA_Whitepaper.pdf](http://iotatoken.com/IOTA_Whitepaper.pdf)","category":"5809cdde8a22912500ad3253","createdAt":"2016-07-09T09:09:31.260Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":3,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"whitepaper","sync_unique":"","title":"Whitepaper","type":"basic","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

Whitepaper


The IOTA Whitepaper which describes the main technology behind IOTA - the Tangle - is available to read online. It goes into greater detail about the structure as well as the security of the Tangle. #### [http://iotatoken.com/IOTA_Whitepaper.pdf](http://iotatoken.com/IOTA_Whitepaper.pdf)
The IOTA Whitepaper which describes the main technology behind IOTA - the Tangle - is available to read online. It goes into greater detail about the structure as well as the security of the Tangle. #### [http://iotatoken.com/IOTA_Whitepaper.pdf](http://iotatoken.com/IOTA_Whitepaper.pdf)
{"__v":0,"_id":"580e0b152cc1c91900c3d789","api":{"results":{"codes":[{"status":200,"language":"json","code":"{}","name":""},{"status":400,"language":"json","code":"{}","name":""}]},"settings":"","auth":"required","params":[],"url":""},"body":"A simplistic User Interface (Nostalgia), is provided to help community members get started with using IOTA. The actual GUI wallet will be released in a few days, so if you don't feel comfortable with Nostalgia, I suggest you to wait until the wallet is ready. \n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"1. Download Nostalgia\"\n}\n[/block]\nAs a first step, you should download Nostalgia from our Github: \n\n[block:callout]\n{\n  \"type\": \"success\",\n  \"title\": \"Download Nostalgia\",\n  \"body\": \"https://github.com/domschiener/nostalgia\"\n}\n[/block]\nIf you are on Linux/Mac, you can simply open your console and clone the project: \n```\ngit clone https://github.com/domschiener/nostalgia \n```\n\nElse you can also simply download the zipped version from here: https://github.com/domschiener/nostalgia/archive/master.zip \n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"2. Download the latest IRI\"\n}\n[/block]\nNow obviously in order to get running, you need the IOTA Core. At the time of writing, the latest version happens to be 1.1.0 which is available here: \n[block:callout]\n{\n  \"type\": \"success\",\n  \"title\": \"Download IRI\",\n  \"body\": \"http://85.93.93.110/IRI-1.1.0.jar\"\n}\n[/block]\nFor this IRI version you need to start completely from scratch, so either start in a new folder, or delete your database (all files with `.iri` extensions). \n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"3. Find Neighbors\"\n}\n[/block]\nIn order to run IRI, you need to have neighbors which want to pair with you. The easiest and fastest way to get neighbors is through our Slack, where you can join the `#nodesharing` channel to find neighbors. \n\nIt should be noted that you have to share your *own* IP and port with your neighbors as well, because IOTA relies on mutual tethering for the data exchange. If you need help simply ask on Slack.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"4. Start IRI on Linux/Mac\"\n}\n[/block]\nOnce you have a list of neighbors, you have to start IRI. Now for Linux/Mac users, simply open up the terminal and type in:\n\n```\nsudo java -jar IRI.jar YOURPORT udp://NODE1:PORT udp://NODE2:PORT\n```\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"4. Start IRI on Windows\"\n}\n[/block]\nFollow the tutorial from here: http://iotasupport.com/headlessnode.shtml#headless-node-on-windows\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"5. Run Nostalgia\"\n}\n[/block]\nNow in order to run nostalgia, all you need to do is open up `nostalgia.html`. \n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Different Port\",\n  \"body\": \"If you are using a different port than **14265**, change line 18 in nostalgia.html to the correct port.\"\n}\n[/block]\nNow all you have to do is type in your seed and hit enter in order to login. You should now see an empty screen and you can start sending transactions and generating addresses. \n\nIf you have already made transactions, Nostalgia will mark sent transactions in red (as in the picture below), so that you know to which address you have sent tokens.\n \n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/14258c0-Screen_Shot_2016-10-21_at_18.01.56.png\",\n        \"Screen Shot 2016-10-21 at 18.01.56.png\",\n        2728,\n        1714,\n        \"#f0e1e1\"\n      ]\n    }\n  ]\n}\n[/block]\nIn addition to that, you can also take a look at the entire bundle by clicking on \"Show Bundle\". The transactions form the bundle will be marked in blue. If you click on Show Bundle again they will disappear.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/7c194ba-Screen_Shot_2016-10-21_at_18.04.01.png\",\n        \"Screen Shot 2016-10-21 at 18.04.01.png\",\n        2530,\n        772,\n        \"#e0e8ee\"\n      ]\n    }\n  ]\n}\n[/block]","category":"5809cdde8a22912500ad3254","createdAt":"2016-10-24T13:22:29.304Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":4,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"getting-started-with-nostalgia","sync_unique":"","title":"Getting Started with Nostalgia","type":"basic","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

Getting Started with Nostalgia


A simplistic User Interface (Nostalgia), is provided to help community members get started with using IOTA. The actual GUI wallet will be released in a few days, so if you don't feel comfortable with Nostalgia, I suggest you to wait until the wallet is ready. [block:api-header] { "type": "basic", "title": "1. Download Nostalgia" } [/block] As a first step, you should download Nostalgia from our Github: [block:callout] { "type": "success", "title": "Download Nostalgia", "body": "https://github.com/domschiener/nostalgia" } [/block] If you are on Linux/Mac, you can simply open your console and clone the project: ``` git clone https://github.com/domschiener/nostalgia ``` Else you can also simply download the zipped version from here: https://github.com/domschiener/nostalgia/archive/master.zip [block:api-header] { "type": "basic", "title": "2. Download the latest IRI" } [/block] Now obviously in order to get running, you need the IOTA Core. At the time of writing, the latest version happens to be 1.1.0 which is available here: [block:callout] { "type": "success", "title": "Download IRI", "body": "http://85.93.93.110/IRI-1.1.0.jar" } [/block] For this IRI version you need to start completely from scratch, so either start in a new folder, or delete your database (all files with `.iri` extensions). [block:api-header] { "type": "basic", "title": "3. Find Neighbors" } [/block] In order to run IRI, you need to have neighbors which want to pair with you. The easiest and fastest way to get neighbors is through our Slack, where you can join the `#nodesharing` channel to find neighbors. It should be noted that you have to share your *own* IP and port with your neighbors as well, because IOTA relies on mutual tethering for the data exchange. If you need help simply ask on Slack. [block:api-header] { "type": "basic", "title": "4. Start IRI on Linux/Mac" } [/block] Once you have a list of neighbors, you have to start IRI. Now for Linux/Mac users, simply open up the terminal and type in: ``` sudo java -jar IRI.jar YOURPORT udp://NODE1:PORT udp://NODE2:PORT ``` [block:api-header] { "type": "basic", "title": "4. Start IRI on Windows" } [/block] Follow the tutorial from here: http://iotasupport.com/headlessnode.shtml#headless-node-on-windows [block:api-header] { "type": "basic", "title": "5. Run Nostalgia" } [/block] Now in order to run nostalgia, all you need to do is open up `nostalgia.html`. [block:callout] { "type": "warning", "title": "Different Port", "body": "If you are using a different port than **14265**, change line 18 in nostalgia.html to the correct port." } [/block] Now all you have to do is type in your seed and hit enter in order to login. You should now see an empty screen and you can start sending transactions and generating addresses. If you have already made transactions, Nostalgia will mark sent transactions in red (as in the picture below), so that you know to which address you have sent tokens. [block:image] { "images": [ { "image": [ "https://files.readme.io/14258c0-Screen_Shot_2016-10-21_at_18.01.56.png", "Screen Shot 2016-10-21 at 18.01.56.png", 2728, 1714, "#f0e1e1" ] } ] } [/block] In addition to that, you can also take a look at the entire bundle by clicking on "Show Bundle". The transactions form the bundle will be marked in blue. If you click on Show Bundle again they will disappear. [block:image] { "images": [ { "image": [ "https://files.readme.io/7c194ba-Screen_Shot_2016-10-21_at_18.04.01.png", "Screen Shot 2016-10-21 at 18.04.01.png", 2530, 772, "#e0e8ee" ] } ] } [/block]
A simplistic User Interface (Nostalgia), is provided to help community members get started with using IOTA. The actual GUI wallet will be released in a few days, so if you don't feel comfortable with Nostalgia, I suggest you to wait until the wallet is ready. [block:api-header] { "type": "basic", "title": "1. Download Nostalgia" } [/block] As a first step, you should download Nostalgia from our Github: [block:callout] { "type": "success", "title": "Download Nostalgia", "body": "https://github.com/domschiener/nostalgia" } [/block] If you are on Linux/Mac, you can simply open your console and clone the project: ``` git clone https://github.com/domschiener/nostalgia ``` Else you can also simply download the zipped version from here: https://github.com/domschiener/nostalgia/archive/master.zip [block:api-header] { "type": "basic", "title": "2. Download the latest IRI" } [/block] Now obviously in order to get running, you need the IOTA Core. At the time of writing, the latest version happens to be 1.1.0 which is available here: [block:callout] { "type": "success", "title": "Download IRI", "body": "http://85.93.93.110/IRI-1.1.0.jar" } [/block] For this IRI version you need to start completely from scratch, so either start in a new folder, or delete your database (all files with `.iri` extensions). [block:api-header] { "type": "basic", "title": "3. Find Neighbors" } [/block] In order to run IRI, you need to have neighbors which want to pair with you. The easiest and fastest way to get neighbors is through our Slack, where you can join the `#nodesharing` channel to find neighbors. It should be noted that you have to share your *own* IP and port with your neighbors as well, because IOTA relies on mutual tethering for the data exchange. If you need help simply ask on Slack. [block:api-header] { "type": "basic", "title": "4. Start IRI on Linux/Mac" } [/block] Once you have a list of neighbors, you have to start IRI. Now for Linux/Mac users, simply open up the terminal and type in: ``` sudo java -jar IRI.jar YOURPORT udp://NODE1:PORT udp://NODE2:PORT ``` [block:api-header] { "type": "basic", "title": "4. Start IRI on Windows" } [/block] Follow the tutorial from here: http://iotasupport.com/headlessnode.shtml#headless-node-on-windows [block:api-header] { "type": "basic", "title": "5. Run Nostalgia" } [/block] Now in order to run nostalgia, all you need to do is open up `nostalgia.html`. [block:callout] { "type": "warning", "title": "Different Port", "body": "If you are using a different port than **14265**, change line 18 in nostalgia.html to the correct port." } [/block] Now all you have to do is type in your seed and hit enter in order to login. You should now see an empty screen and you can start sending transactions and generating addresses. If you have already made transactions, Nostalgia will mark sent transactions in red (as in the picture below), so that you know to which address you have sent tokens. [block:image] { "images": [ { "image": [ "https://files.readme.io/14258c0-Screen_Shot_2016-10-21_at_18.01.56.png", "Screen Shot 2016-10-21 at 18.01.56.png", 2728, 1714, "#f0e1e1" ] } ] } [/block] In addition to that, you can also take a look at the entire bundle by clicking on "Show Bundle". The transactions form the bundle will be marked in blue. If you click on Show Bundle again they will disappear. [block:image] { "images": [ { "image": [ "https://files.readme.io/7c194ba-Screen_Shot_2016-10-21_at_18.04.01.png", "Screen Shot 2016-10-21 at 18.04.01.png", 2530, 772, "#e0e8ee" ] } ] } [/block]
{"__v":0,"_id":"5809cdde8a22912500ad3258","api":{"results":{"codes":[{"name":"","code":"{}","language":"json","status":200},{"name":"","code":"{}","language":"json","status":400}]},"settings":"","auth":"required","params":[],"url":""},"body":"The IOTA Java client makes it possible to interact with your local node and request certain information or actions to be taken. Once your node is successfully setup, you can interface with it through port `14265` by passing along a JSON object which contains a specified command; and upon successful execution of the command, returns your requested information.\n\nThe main priority of the API as well as IRI itself is security. As such, anything that has to do with private keys is done *client side*. For this we have provided several libraries that take care of this, but you can implement this functionality yourself as well. \n\nFor your convenience, we have added concrete examples on how to use the API in Curl, Python and NodeJS. If you are using Javascript, you can simply follow along by using either XMLHttpRequest or jQuery. For NodeJS, please install the wonderful [request npm package](https://github.com/request/request), as all our examples require the request package.\n\nFor the rest of this documentation it is assumed that you have the IOTA client running at port `14265` (or a port of your choice, change your requests accordingly then).","category":"5809cdde8a22912500ad3255","createdAt":"2016-05-20T13:25:43.013Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":0,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"getting-started","sync_unique":"","title":"API Introduction","type":"basic","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

API Introduction


The IOTA Java client makes it possible to interact with your local node and request certain information or actions to be taken. Once your node is successfully setup, you can interface with it through port `14265` by passing along a JSON object which contains a specified command; and upon successful execution of the command, returns your requested information. The main priority of the API as well as IRI itself is security. As such, anything that has to do with private keys is done *client side*. For this we have provided several libraries that take care of this, but you can implement this functionality yourself as well. For your convenience, we have added concrete examples on how to use the API in Curl, Python and NodeJS. If you are using Javascript, you can simply follow along by using either XMLHttpRequest or jQuery. For NodeJS, please install the wonderful [request npm package](https://github.com/request/request), as all our examples require the request package. For the rest of this documentation it is assumed that you have the IOTA client running at port `14265` (or a port of your choice, change your requests accordingly then).
The IOTA Java client makes it possible to interact with your local node and request certain information or actions to be taken. Once your node is successfully setup, you can interface with it through port `14265` by passing along a JSON object which contains a specified command; and upon successful execution of the command, returns your requested information. The main priority of the API as well as IRI itself is security. As such, anything that has to do with private keys is done *client side*. For this we have provided several libraries that take care of this, but you can implement this functionality yourself as well. For your convenience, we have added concrete examples on how to use the API in Curl, Python and NodeJS. If you are using Javascript, you can simply follow along by using either XMLHttpRequest or jQuery. For NodeJS, please install the wonderful [request npm package](https://github.com/request/request), as all our examples require the request package. For the rest of this documentation it is assumed that you have the IOTA client running at port `14265` (or a port of your choice, change your requests accordingly then).
{"__v":0,"_id":"5809cdde8a22912500ad3259","api":{"results":{"codes":[{"name":"","code":"{}","language":"json","status":200},{"name":"","code":"{}","language":"json","status":400}]},"settings":"","auth":"required","params":[],"url":""},"body":"All API calls need to be sent to `http://localhost:14265` (if you are using the standard port) via a POST HTTP request. The data which will be sent is a **JSON object** which follows the same standard schema of:\n\n    {‘command’: ’YOURCOMMANDHERE’}\n\nAdditional parameters are simply added as additional key-value pairs. If the command is successfully executed, your requested information is returned as either an object or a stringified object (use `json.parse` or equivalent to turn it into an object).\n\nWhen making a request, make sure that the HTTP library you're using defines the `Content-Length` of the data to be sent. If this is not done automatically, manually add it via a header field e.g. `'Content-Length': Buffer.byteLength(JSON.stringify(command))`.","category":"5809cdde8a22912500ad3255","createdAt":"2016-07-02T11:52:30.391Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":1,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"making-requests","sync_unique":"","title":"Making Requests","type":"basic","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

Making Requests


All API calls need to be sent to `http://localhost:14265` (if you are using the standard port) via a POST HTTP request. The data which will be sent is a **JSON object** which follows the same standard schema of: {‘command’: ’YOURCOMMANDHERE’} Additional parameters are simply added as additional key-value pairs. If the command is successfully executed, your requested information is returned as either an object or a stringified object (use `json.parse` or equivalent to turn it into an object). When making a request, make sure that the HTTP library you're using defines the `Content-Length` of the data to be sent. If this is not done automatically, manually add it via a header field e.g. `'Content-Length': Buffer.byteLength(JSON.stringify(command))`.
All API calls need to be sent to `http://localhost:14265` (if you are using the standard port) via a POST HTTP request. The data which will be sent is a **JSON object** which follows the same standard schema of: {‘command’: ’YOURCOMMANDHERE’} Additional parameters are simply added as additional key-value pairs. If the command is successfully executed, your requested information is returned as either an object or a stringified object (use `json.parse` or equivalent to turn it into an object). When making a request, make sure that the HTTP library you're using defines the `Content-Length` of the data to be sent. If this is not done automatically, manually add it via a header field e.g. `'Content-Length': Buffer.byteLength(JSON.stringify(command))`.
{"__v":0,"_id":"5809cdde8a22912500ad325a","api":{"results":{"codes":[{"name":"","code":"{}","language":"json","status":200},{"name":"","code":"{}","language":"json","status":400}]},"settings":"","auth":"required","params":[],"url":""},"body":"CORS is enabled \n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Work in progress\"\n}\n[/block]","category":"5809cdde8a22912500ad3255","createdAt":"2016-07-02T11:56:01.888Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":2,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"cors","sync_unique":"","title":"CORS","type":"basic","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

CORS


CORS is enabled [block:callout] { "type": "warning", "title": "Work in progress" } [/block]
CORS is enabled [block:callout] { "type": "warning", "title": "Work in progress" } [/block]
{"__v":0,"_id":"5809cdde8a22912500ad325b","api":{"results":{"codes":[{"name":"","code":"{}","language":"json","status":200},{"name":"","code":"{}","language":"json","status":400}]},"settings":"","auth":"required","params":[],"url":""},"body":"[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"WORK IN PROGRESS\",\n  \"body\": \"This page will be taken care of soon.\"\n}\n[/block]","category":"5809cdde8a22912500ad3255","createdAt":"2016-07-02T11:56:17.540Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":3,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"errors","sync_unique":"","title":"Errors","type":"basic","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

Errors


[block:callout] { "type": "warning", "title": "WORK IN PROGRESS", "body": "This page will be taken care of soon." } [/block]
[block:callout] { "type": "warning", "title": "WORK IN PROGRESS", "body": "This page will be taken care of soon." } [/block]
{"__v":0,"_id":"5809cdde8a22912500ad325c","api":{"results":{"codes":[{"name":"","code":"{}","language":"json","status":200},{"name":"","code":"{}","language":"json","status":400}]},"settings":"","auth":"required","params":[],"url":""},"body":"Here we list and describe all additional parameters which are required to be passed along for certain commands.\n\n- **`seed`**: `string` tryte encoded string which contains the accounts seed. The seed must be correctly encoded trytes: only uppercase latin letters and 9’s. No other characters are allowed. The maximum security level is 81-trytes, but you can choose longer/shorter seeds.\n- **`address`**: `string` 81-trytes long address of the recipient of a transaction.\nvalue: string the quantity of IOTA’s which should be transferred.\n- **`message`**: `string` tryte-encoded string which can contain arbitrary information and is sent alongside a transaction. The message value is publicly visible. The max value is 2187 trytes, which is 6561 trits (or roughly 1312 bytes).\n- **`transaction`** / **`hash`**: `string` hash of a transaction. A single transaction hash is 81-chars long.\n- **`trytes`**: `string` the raw data of a transaction.\n- **`bundles`**: `list` contains a list of transaction bundles. Bundles are basically linked, individual transactions which were created with a single transfer. They are uniquely identified by a 27-char hash.\n- **`addresses`** : `list` a list of addresses. A single address is 81-chars long.\n- **`tags`**: `list` the tag of a transaction.\n- **`approvees`**: `list` a list of transaction which were referenced by this transaction\n- **`securityLevel`**: `int` specifies the security level of your transaction. Can either by 0 (for 81-trit security), 1 (for 162-trit security) and 2 (for 243-trit security). Lower security transactions are faster to generate.\n- **`minWeightMagnitude`**: `int` specifies the amount of Proof of Work that will be carried out. Currently can only take the value 18.","category":"5809cdde8a22912500ad3255","createdAt":"2016-07-02T11:56:42.554Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":4,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"fields","sync_unique":"","title":"Fields","type":"basic","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

Fields


Here we list and describe all additional parameters which are required to be passed along for certain commands. - **`seed`**: `string` tryte encoded string which contains the accounts seed. The seed must be correctly encoded trytes: only uppercase latin letters and 9’s. No other characters are allowed. The maximum security level is 81-trytes, but you can choose longer/shorter seeds. - **`address`**: `string` 81-trytes long address of the recipient of a transaction. value: string the quantity of IOTA’s which should be transferred. - **`message`**: `string` tryte-encoded string which can contain arbitrary information and is sent alongside a transaction. The message value is publicly visible. The max value is 2187 trytes, which is 6561 trits (or roughly 1312 bytes). - **`transaction`** / **`hash`**: `string` hash of a transaction. A single transaction hash is 81-chars long. - **`trytes`**: `string` the raw data of a transaction. - **`bundles`**: `list` contains a list of transaction bundles. Bundles are basically linked, individual transactions which were created with a single transfer. They are uniquely identified by a 27-char hash. - **`addresses`** : `list` a list of addresses. A single address is 81-chars long. - **`tags`**: `list` the tag of a transaction. - **`approvees`**: `list` a list of transaction which were referenced by this transaction - **`securityLevel`**: `int` specifies the security level of your transaction. Can either by 0 (for 81-trit security), 1 (for 162-trit security) and 2 (for 243-trit security). Lower security transactions are faster to generate. - **`minWeightMagnitude`**: `int` specifies the amount of Proof of Work that will be carried out. Currently can only take the value 18.
Here we list and describe all additional parameters which are required to be passed along for certain commands. - **`seed`**: `string` tryte encoded string which contains the accounts seed. The seed must be correctly encoded trytes: only uppercase latin letters and 9’s. No other characters are allowed. The maximum security level is 81-trytes, but you can choose longer/shorter seeds. - **`address`**: `string` 81-trytes long address of the recipient of a transaction. value: string the quantity of IOTA’s which should be transferred. - **`message`**: `string` tryte-encoded string which can contain arbitrary information and is sent alongside a transaction. The message value is publicly visible. The max value is 2187 trytes, which is 6561 trits (or roughly 1312 bytes). - **`transaction`** / **`hash`**: `string` hash of a transaction. A single transaction hash is 81-chars long. - **`trytes`**: `string` the raw data of a transaction. - **`bundles`**: `list` contains a list of transaction bundles. Bundles are basically linked, individual transactions which were created with a single transfer. They are uniquely identified by a 27-char hash. - **`addresses`** : `list` a list of addresses. A single address is 81-chars long. - **`tags`**: `list` the tag of a transaction. - **`approvees`**: `list` a list of transaction which were referenced by this transaction - **`securityLevel`**: `int` specifies the security level of your transaction. Can either by 0 (for 81-trit security), 1 (for 162-trit security) and 2 (for 243-trit security). Lower security transactions are faster to generate. - **`minWeightMagnitude`**: `int` specifies the amount of Proof of Work that will be carried out. Currently can only take the value 18.
{"__v":0,"_id":"5809cdde8a22912500ad3263","api":{"auth":"required","examples":{"codes":[{"code":"curl http://localhost:14265 \\\n  -X POST \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"command\": \"getNodeInfo\"}'","language":"curl"},{"code":"import urllib2\nimport json\n\ncommand = {\n    'command': 'getNodeInfo'\n}\n\nstringified = json.dumps(command)\n\nheaders = {'content-type': 'application/json'}\n\nrequest = urllib2.Request(url=\"http://localhost:14265\", data=stringified, headers=headers)\nreturnData = urllib2.urlopen(request).read()\n\njsonData = json.loads(returnData)\n\nprint jsonData","language":"python"},{"name":"NodeJS","code":"var request = require('request');\n\nvar command = {\n    'command': 'getNodeInfo'\n}\n\nvar options = {\n  url: 'http://localhost:14265',\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/json',\n    'Content-Length': Buffer.byteLength(JSON.stringify(command))\n  },\n  json: command\n};\n\nrequest(options, function (error, response, data) {\n  if (!error && response.statusCode == 200) {\n    console.log(data);\n  }\n});","language":"javascript"}]},"params":[{"_id":"5777ad46ea758f0e00e6f7b1","ref":"","in":"body","required":true,"desc":"","default":"getNodeInfo","type":"string","name":"command"}],"results":{"codes":[{"name":"","code":"{\n    \"appName\": \"IRI\",\n    \"appVersion\": \"1.0.8.nu\",\n    \"duration\": 1,\n    \"jreAvailableProcessors\": 4,\n    \"jreFreeMemory\": 91707424,\n    \"jreMaxMemory\": 1908932608,\n    \"jreTotalMemory\": 122683392,\n    \"latestMilestone\": \"VBVEUQYE99LFWHDZRFKTGFHYGDFEAMAEBGUBTTJRFKHCFBRTXFAJQ9XIUEZQCJOQTZNOOHKUQIKOY9999\",\n    \"latestMilestoneIndex\": 107,\n    \"latestSolidSubtangleMilestone\": \"VBVEUQYE99LFWHDZRFKTGFHYGDFEAMAEBGUBTTJRFKHCFBRTXFAJQ9XIUEZQCJOQTZNOOHKUQIKOY9999\",\n    \"latestSolidSubtangleMilestoneIndex\": 107,\n    \"neighbors\": 2,\n    \"packetsQueueSize\": 0,\n    \"time\": 1477037811737,\n    \"tips\": 3,\n    \"transactionsToRequest\": 0\n}","language":"json","status":200},{"name":"","code":"{\"error\": \"'command' parameter has not been specified\"}","language":"json","status":400}]},"settings":"","url":"/"},"body":"Returns information about your node.\n\n#### Return Values\n\n- **`appName`**: Name of the IOTA software you're currently using (IRI stands for Initial Reference Implementation).\n- **`appVersion`**: The version of the IOTA software you're currently running. \n- **`jreAvailableProcesses`**: Available cores on your machine for JRE. \n- **`jreFreeMemory`**: Returns the amount of free memory in the Java Virtual Machine.\n- **`jreMaxMemory`**: Returns the maximum amount of memory that the Java virtual machine will attempt to use. \n- **`jreTotalMemory`**: Returns the total amount of memory in the Java virtual machine. \n- **`latestMilestone`**: Latest milestone that was signed off by the coordinator. \n- **`latestMilestoneIndex`**: Index of the latest milestone.\n- **`latestSolidSubtangleMilestone`**: The latest milestone which is solid and is used for sending transactions. For a milestone to become solid your local node must basically approve the subtangle of coordinator-approved transactions, and have a consistent view of all referenced transactions. \n- **`latestSolidSubtangleMilestoneIndex`**: Index of the latest solid subtangle.  \n- **`neighbors`**: Number of neighbors you are directly connected with.\n- **`packetsQueueSize`**: Packets which are currently queued up.\n- **`time`**: Current UNIX timestamp.\n- **`tips`**: Number of tips in the network.\n- **`transactionsToRequest`**: Transactions to request during syncing process.","category":"5809cdde8a22912500ad3256","createdAt":"2016-07-02T11:58:27.093Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":0,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"getnodeinfo","sync_unique":"","title":"getNodeInfo","type":"post","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

postgetNodeInfo


Body Params

command:
required
stringgetNodeInfo
Returns information about your node. #### Return Values - **`appName`**: Name of the IOTA software you're currently using (IRI stands for Initial Reference Implementation). - **`appVersion`**: The version of the IOTA software you're currently running. - **`jreAvailableProcesses`**: Available cores on your machine for JRE. - **`jreFreeMemory`**: Returns the amount of free memory in the Java Virtual Machine. - **`jreMaxMemory`**: Returns the maximum amount of memory that the Java virtual machine will attempt to use. - **`jreTotalMemory`**: Returns the total amount of memory in the Java virtual machine. - **`latestMilestone`**: Latest milestone that was signed off by the coordinator. - **`latestMilestoneIndex`**: Index of the latest milestone. - **`latestSolidSubtangleMilestone`**: The latest milestone which is solid and is used for sending transactions. For a milestone to become solid your local node must basically approve the subtangle of coordinator-approved transactions, and have a consistent view of all referenced transactions. - **`latestSolidSubtangleMilestoneIndex`**: Index of the latest solid subtangle. - **`neighbors`**: Number of neighbors you are directly connected with. - **`packetsQueueSize`**: Packets which are currently queued up. - **`time`**: Current UNIX timestamp. - **`tips`**: Number of tips in the network. - **`transactionsToRequest`**: Transactions to request during syncing process.

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



Returns information about your node. #### Return Values - **`appName`**: Name of the IOTA software you're currently using (IRI stands for Initial Reference Implementation). - **`appVersion`**: The version of the IOTA software you're currently running. - **`jreAvailableProcesses`**: Available cores on your machine for JRE. - **`jreFreeMemory`**: Returns the amount of free memory in the Java Virtual Machine. - **`jreMaxMemory`**: Returns the maximum amount of memory that the Java virtual machine will attempt to use. - **`jreTotalMemory`**: Returns the total amount of memory in the Java virtual machine. - **`latestMilestone`**: Latest milestone that was signed off by the coordinator. - **`latestMilestoneIndex`**: Index of the latest milestone. - **`latestSolidSubtangleMilestone`**: The latest milestone which is solid and is used for sending transactions. For a milestone to become solid your local node must basically approve the subtangle of coordinator-approved transactions, and have a consistent view of all referenced transactions. - **`latestSolidSubtangleMilestoneIndex`**: Index of the latest solid subtangle. - **`neighbors`**: Number of neighbors you are directly connected with. - **`packetsQueueSize`**: Packets which are currently queued up. - **`time`**: Current UNIX timestamp. - **`tips`**: Number of tips in the network. - **`transactionsToRequest`**: Transactions to request during syncing process.
{"__v":0,"_id":"5809cdde8a22912500ad3265","api":{"auth":"required","examples":{"codes":[{"code":"curl http://localhost:14265 \\\n  -X POST \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"command\": \"getNeighbors\"}'","language":"curl"},{"code":"import urllib2\nimport json\n\ncommand = {\n    'command': 'getNeighbors'\n}\n\nstringified = json.dumps(command)\n\nheaders = {'content-type': 'application/json'}\n\nrequest = urllib2.Request(url=\"http://localhost:14265\", data=stringified, headers=headers)\nreturnData = urllib2.urlopen(request).read()\n\njsonData = json.loads(returnData)\n\nprint jsonData","language":"python"},{"name":"NodeJS","code":"var request = require('request');\n\nvar command = {\n    'command': 'getNeighbors'\n}\n\nvar headers = {\n    'Content-Type': 'application/json',\n    'Content-Length': JSON.stringify(command).length\n};\n\nvar options = {\n  url: 'http://localhost:14265',\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/json',\n    'Content-Length': Buffer.byteLength(JSON.stringify(command))\n  },\n  json: command\n};\n\nrequest(options, function (error, response, data) {\n  if (!error && response.statusCode == 200) {\n    console.log(data);\n  }\n});","language":"javascript"}]},"params":[{"_id":"577a21c0d051530e00f65556","default":"getNeighbors","desc":"","in":"body","name":"command","ref":"","required":true,"type":"string"}],"results":{"codes":[{"name":"","code":"{\n    \"duration\": 37,\n    \"neighbors\": [\n        {\n            \"address\": \"/8.8.8.8:14265\",\n            \"numberOfAllTransactions\": 922,\n            \"numberOfInvalidTransactions\": 0,\n            \"numberOfNewTransactions\": 92\n        },\n        {\n            \"address\": \"/8.8.8.8:5000\",\n            \"numberOfAllTransactions\": 925,\n            \"numberOfInvalidTransactions\": 0,\n            \"numberOfNewTransactions\": 20\n        }\n    ]\n}","language":"json","status":200},{"name":"","code":"{\"error\": \"'command' parameter has not been specified\"}","language":"json","status":400}]},"settings":"","url":"/"},"body":"Returns the set of neighbors you are connected with, as well as their activity count. The activity counter is reset after restarting IRI.\n\n#### Return Values\n\n- **`address`** : address of your peer \n- **`numberOfAllTransactions`**: Number of all transactions sent (invalid, valid, already-seen)\n- **`numberOfInvalidTransactions`**: Invalid transactions your peer has sent you. These are transactions with invalid signatures or overall schema.\n- **`numberOfNewTransactions`**: New transactions which were transmitted.","category":"5809cdde8a22912500ad3256","createdAt":"2016-07-02T12:03:50.844Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":1,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"getneighborsactivity","sync_unique":"","title":"getNeighbors","type":"post","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

postgetNeighbors


Body Params

command:
required
stringgetNeighbors
Returns the set of neighbors you are connected with, as well as their activity count. The activity counter is reset after restarting IRI. #### Return Values - **`address`** : address of your peer - **`numberOfAllTransactions`**: Number of all transactions sent (invalid, valid, already-seen) - **`numberOfInvalidTransactions`**: Invalid transactions your peer has sent you. These are transactions with invalid signatures or overall schema. - **`numberOfNewTransactions`**: New transactions which were transmitted.

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



Returns the set of neighbors you are connected with, as well as their activity count. The activity counter is reset after restarting IRI. #### Return Values - **`address`** : address of your peer - **`numberOfAllTransactions`**: Number of all transactions sent (invalid, valid, already-seen) - **`numberOfInvalidTransactions`**: Invalid transactions your peer has sent you. These are transactions with invalid signatures or overall schema. - **`numberOfNewTransactions`**: New transactions which were transmitted.
{"__v":1,"_id":"5809d8f30b86b71b007569a5","api":{"auth":"required","examples":{"codes":[{"language":"curl","code":"curl http://localhost:14265 \\\n  -X POST \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"command\": \"addNeighbors\", \"uris\": [\"udp://8.8.8.8:14265\", \"udp://8.8.8.5:14265\"]}'"},{"language":"python","code":"import urllib2\nimport json\n\ncommand = {\n  'command': 'addNeighbors',\n\t'uris': ['udp://8.1.8.8:14265', 'udp://8.8.2.5:14265']\n}\n\nstringified = json.dumps(command)\n\nheaders = {'content-type': 'application/json'}\n\nrequest = urllib2.Request(url=\"http://localhost:14265\", data=stringified, headers=headers)\nreturnData = urllib2.urlopen(request).read()\n\njsonData = json.loads(returnData)\n\nprint jsonData"},{"name":"NodeJS","language":"javascript","code":"var request = require('request');\n\nvar command = {\n  'command': 'addNeighbors',\n\t'uris': ['udp://8.1.8.8:14265', 'udp://8.8.2.5:14265']\n}\n\nvar headers = {\n    'Content-Type': 'application/json',\n    'Content-Length': JSON.stringify(command).length\n};\n\nvar options = {\n  url: 'http://localhost:14265',\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/json',\n    'Content-Length': Buffer.byteLength(JSON.stringify(command))\n  },\n  json: command\n};\n\nrequest(options, function (error, response, data) {\n  if (!error && response.statusCode == 200) {\n    console.log(data);\n  }\n});"}]},"params":[{"_id":"5809de49629bf91900cd1397","ref":"","in":"body","required":true,"desc":"","default":"addNeighbors","type":"string","name":"command"},{"_id":"5809de49629bf91900cd1396","ref":"","in":"body","required":true,"desc":"List of URI elements.","default":"","type":"array_string","name":"uris"}],"results":{"codes":[{"status":200,"language":"json","code":"{\n  \"addedNeighbors\": 0, \n  \"duration\": 2\n}","name":""},{"status":400,"language":"json","code":"{}","name":""}]},"settings":"","url":"/"},"body":"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.\n\nThe URI (Unique Resource Identification) for adding neighbors is: \n**`udp://IPADDRESS:PORT`**","category":"5809cdde8a22912500ad3256","createdAt":"2016-10-21T08:59:31.037Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":2,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"addneighors","sync_unique":"","title":"addNeighbors","type":"post","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

postaddNeighbors


Body Params

command:
required
stringaddNeighbors
uris:
required
array of strings
List of URI elements.
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. The URI (Unique Resource Identification) for adding neighbors is: **`udp://IPADDRESS:PORT`**

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



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. The URI (Unique Resource Identification) for adding neighbors is: **`udp://IPADDRESS:PORT`**
{"__v":0,"_id":"5809df64d799cf0f000f364f","api":{"auth":"required","examples":{"codes":[{"language":"curl","code":"curl http://localhost:14265 \\\n  -X POST \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"command\": \"removeNeighbors\", \"uris\": [\"udp://8.8.8.8:14265\", \"udp://8.8.8.5:14265\"]}'"},{"language":"python","code":"import urllib2\nimport json\n\ncommand = {\n  'command': 'removeNeighbors',\n\t'uris': ['udp://8.1.8.8:14265', 'udp://8.8.2.5:14265']\n}\n\nstringified = json.dumps(command)\n\nheaders = {'content-type': 'application/json'}\n\nrequest = urllib2.Request(url=\"http://localhost:14265\", data=stringified, headers=headers)\nreturnData = urllib2.urlopen(request).read()\n\njsonData = json.loads(returnData)\n\nprint jsonData"},{"name":"NodeJS","language":"javascript","code":"var request = require('request');\n\nvar command = {\n  'command': 'removeNeighbors',\n\t'uris': ['udp://8.1.8.8:14265', 'udp://8.8.2.5:14265']\n}\n\nvar headers = {\n    'Content-Type': 'application/json',\n    'Content-Length': JSON.stringify(command).length\n};\n\nvar options = {\n  url: 'http://localhost:14265',\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/json',\n    'Content-Length': Buffer.byteLength(JSON.stringify(command))\n  },\n  json: command\n};\n\nrequest(options, function (error, response, data) {\n  if (!error && response.statusCode == 200) {\n    console.log(data);\n  }\n});"}]},"params":[{"_id":"5809de49629bf91900cd1397","default":"removeNeighbors","desc":"","in":"body","name":"command","ref":"","required":true,"type":"string"},{"_id":"5809de49629bf91900cd1396","ref":"","in":"body","required":true,"desc":"List of URI elements.","default":"","type":"array_string","name":"uris"}],"results":{"codes":[{"status":200,"language":"json","code":"{\n  \"removedNeighbors\": 0, \n  \"duration\": 2\n}","name":""},{"status":400,"language":"json","code":"{}","name":""}]},"settings":"","url":"/"},"body":"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. \n\nThe URI (Unique Resource Identification) for adding neighbors is: \n**`udp://IPADDRESS:PORT`**","category":"5809cdde8a22912500ad3256","createdAt":"2016-10-21T09:27:00.024Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":3,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"removeneighors","sync_unique":"","title":"removeNeighbors","type":"post","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

postremoveNeighbors


Body Params

command:
required
stringremoveNeighbors
uris:
required
array of strings
List of URI elements.
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. The URI (Unique Resource Identification) for adding neighbors is: **`udp://IPADDRESS:PORT`**

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



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. The URI (Unique Resource Identification) for adding neighbors is: **`udp://IPADDRESS:PORT`**
{"__v":0,"_id":"5809cdde8a22912500ad3266","api":{"auth":"required","examples":{"codes":[{"code":"curl http://localhost:14265 \\\n  -X POST \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"command\": \"getTips\"}'","language":"curl"},{"code":"import urllib2\nimport json\n\ncommand = {\n    'command': 'getTips'\n}\n\nstringified = json.dumps(command)\n\nheaders = {'content-type': 'application/json'}\n\nrequest = urllib2.Request(url=\"http://localhost:14265\", data=stringified, headers=headers)\nreturnData = urllib2.urlopen(request).read()\n\njsonData = json.loads(returnData)\n\nprint jsonData","language":"python"},{"name":"NodeJS","code":"var request = require('request');\n\nvar command = {\n    'command': 'getTips'\n}\n\nvar options = {\n  url: 'http://localhost:14265',\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/json',\n    'Content-Length': Buffer.byteLength(JSON.stringify(command))\n  },\n  json: command\n};\n\nrequest.post('http://localhost:14265',JSON.stringify(command), function (error, response, data) {\n  console.log(error, response);\n  if (!error && response.statusCode == 200) {\n    console.log(data);\n  }\n});\n","language":"javascript"}]},"params":[{"_id":"577a2313aea88b0e00f632dd","ref":"","in":"body","required":true,"desc":"","default":"getTips","type":"string","name":"command"}],"results":{"codes":[{"name":"","code":"{\n  \"hashes\": \n  [\"YVXJOEOP9JEPRQUVBPJMB9MGIB9OMTIJJLIUYPM9YBIWXPZ9PQCCGXYSLKQWKHBRVA9AKKKXXMXF99999\", \"ZUMARCWKZOZRMJM9EEYJQCGXLHWXPRTMNWPBRCAGSGQNRHKGRUCIYQDAEUUEBRDBNBYHAQSSFZZQW9999\", \"QLQECHDVQBMXKD9YYLBMGQLLIQ9PSOVDRLYCLLFMS9O99XIKCUHWAFWSTARYNCPAVIQIBTVJROOYZ9999\"], \n  \"duration\": 4\n}","language":"json","status":200},{"name":"","code":"{}","language":"json","status":400}]},"settings":"","url":"/"},"body":"Returns the list of tips.","category":"5809cdde8a22912500ad3256","createdAt":"2016-07-04T08:49:23.141Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":4,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"gettips","sync_unique":"","title":"getTips","type":"post","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

postgetTips


Body Params

command:
required
stringgetTips
Returns the list of tips.

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



Returns the list of tips.
{"__v":0,"_id":"5809cdde8a22912500ad3268","api":{"auth":"required","examples":{"codes":[{"code":"curl http://localhost:14265 \\\n  -X POST \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"command\": \"findTransactions\", \"addresses\": [\"RVORZ9SIIP9RCYMREUIXXVPQIPHVCNPQ9HZWYKFWYWZRE9JQKG9REPKIASHUUECPSQO9JT9XNMVKWYGVAZETAIRPTM\"]}'","language":"curl"},{"code":"import urllib2\nimport json\n\ncommand = {\n    'command': 'findTransactions',\n    'addresses': ['RVORZ9SIIP9RCYMREUIXXVPQIPHVCNPQ9HZWYKFWYWZRE9JQKG9REPKIASHUUECPSQO9JT9XNMVKWYGVAZETAIRPTM']\n}\n\nstringified = json.dumps(command)\n\nheaders = {'content-type': 'application/json'}\n\nrequest = urllib2.Request(url=\"http://localhost:14265\", data=stringified, headers=headers)\nreturnData = urllib2.urlopen(request).read()\n\njsonData = json.loads(returnData)\n\nprint jsonData","language":"python"},{"name":"NodeJS","code":"var request = require('request');\n\nvar command = {\n  'command': 'findTransactions',\n  'addresses': ['RVORZ9SIIP9RCYMREUIXXVPQIPHVCNPQ9HZWYKFWYWZRE9JQKG9REPKIASHUUECPSQO9JT9XNMVKWYGVAZETAIRPTM']\n}\n\nvar options = {\n  url: 'http://localhost:14265',\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/json',\n    'Content-Length': JSON.stringify(command).length\n  },\n  json: command\n};\n\nrequest(options, function (error, response, data) {\n  if (!error && response.statusCode == 200) {\n    console.log(data);\n  }\n});","language":"javascript"}]},"params":[{"_id":"577d46d7aa701f0e00382593","ref":"","in":"body","required":true,"desc":"","default":"findTransactions","type":"string","name":"command"},{"_id":"577d46d7aa701f0e00382592","ref":"","in":"body","required":false,"desc":"List of bundle hashes. The hashes need to be extended to 81chars by padding the hash with 9's.","default":"","type":"array_string","name":"bundles"},{"_id":"577d46d7aa701f0e00382591","ref":"","in":"body","required":false,"desc":"List of addresses.","default":"","type":"array_string","name":"addresses"},{"_id":"577d46d7aa701f0e00382590","default":"","desc":"List of transaction tags.","in":"body","name":"tags","ref":"","required":false,"type":"array_string"},{"_id":"577d46d7aa701f0e0038258f","ref":"","in":"body","required":false,"desc":"List of approvees of a transaction.","default":"","type":"array_string","name":"approvees"}],"results":{"codes":[{"name":"","code":"{ \n  hashes: [ \n    'ZJVYUGTDRPDYFGFXMKOTV9ZWSGFK9CFPXTITQLQNLPPG9YNAARMKNKYQO9GSCSBIOTGMLJUFLZWSY9999' \n  ] \n}","language":"json","status":200},{"name":"","code":"{\"error\": \"'command' parameter has not been specified\"}","language":"json","status":400}]},"settings":"","url":"/"},"body":"Find the transactions which match the specified input and return. All input values are lists, for which a list of return values (transaction hashes), in the same order, is returned for all individual elements. The input fields can either be `bundles`, `addresses`, `tags` or `approvees`. **Using multiple of these input fields returns the intersection of the values.**\n\nParameters | Type | Required | Description\n------------ | ------------- | ------------- | -------------\n`bundles` | list | Optional | List of bundle hashes. The hashes needs to be extended to 81 trytes by padding the hash with 9's.\n`addresses` | list | Optional | List of addresses.\n`tags` | list | Optional | List of tags. Has to be 27 trytes.\n`approvees` | list | Optional | List of approvee transaction hashes.\n\n#### Return Values\n\nThe transaction hashes which are returned depend on your input. For each specified input value, the command will return the following:\n\n- **`bundles`**: returns the list of transactions which contain the specified bundle hash.\n- **`addresses`**: returns the list of transactions which have the specified address as an input/output field.\n- **`tags`**: returns the list of transactions which contain the specified tag value.\n- **`approvees`**: returns the list of transaction which reference (i.e. confirm) the specified transaction.","category":"5809cdde8a22912500ad3256","createdAt":"2016-07-06T17:58:47.726Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":5,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"findtransactions","sync_unique":"","title":"findTransactions","type":"post","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

postfindTransactions


Body Params

command:
required
stringfindTransactions
bundles:
array of strings
List of bundle hashes. The hashes need to be extended to 81chars by padding the hash with 9's.
addresses:
array of strings
List of addresses.
tags:
array of strings
List of transaction tags.
approvees:
array of strings
List of approvees of a transaction.
Find the transactions which match the specified input and return. All input values are lists, for which a list of return values (transaction hashes), in the same order, is returned for all individual elements. The input fields can either be `bundles`, `addresses`, `tags` or `approvees`. **Using multiple of these input fields returns the intersection of the values.** Parameters | Type | Required | Description ------------ | ------------- | ------------- | ------------- `bundles` | list | Optional | List of bundle hashes. The hashes needs to be extended to 81 trytes by padding the hash with 9's. `addresses` | list | Optional | List of addresses. `tags` | list | Optional | List of tags. Has to be 27 trytes. `approvees` | list | Optional | List of approvee transaction hashes. #### Return Values The transaction hashes which are returned depend on your input. For each specified input value, the command will return the following: - **`bundles`**: returns the list of transactions which contain the specified bundle hash. - **`addresses`**: returns the list of transactions which have the specified address as an input/output field. - **`tags`**: returns the list of transactions which contain the specified tag value. - **`approvees`**: returns the list of transaction which reference (i.e. confirm) the specified transaction.

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



Find the transactions which match the specified input and return. All input values are lists, for which a list of return values (transaction hashes), in the same order, is returned for all individual elements. The input fields can either be `bundles`, `addresses`, `tags` or `approvees`. **Using multiple of these input fields returns the intersection of the values.** Parameters | Type | Required | Description ------------ | ------------- | ------------- | ------------- `bundles` | list | Optional | List of bundle hashes. The hashes needs to be extended to 81 trytes by padding the hash with 9's. `addresses` | list | Optional | List of addresses. `tags` | list | Optional | List of tags. Has to be 27 trytes. `approvees` | list | Optional | List of approvee transaction hashes. #### Return Values The transaction hashes which are returned depend on your input. For each specified input value, the command will return the following: - **`bundles`**: returns the list of transactions which contain the specified bundle hash. - **`addresses`**: returns the list of transactions which have the specified address as an input/output field. - **`tags`**: returns the list of transactions which contain the specified tag value. - **`approvees`**: returns the list of transaction which reference (i.e. confirm) the specified transaction.
{"__v":1,"_id":"5809cdde8a22912500ad326b","api":{"auth":"required","examples":{"codes":[{"code":"curl http://localhost:14265 \\\n  -X POST \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"command\": \"getTrytes\", \"hashes\": [\"OAATQS9VQLSXCLDJVJJVYUGONXAXOFMJOZNSYWRZSWECMXAQQURHQBJNLD9IOFEPGZEPEMPXCIVRX9999\"]}'","language":"curl"},{"code":"import urllib2\nimport json\n\ncommand = {\n    'command': 'getTrytes',\n    'hashes': ['OAATQS9VQLSXCLDJVJJVYUGONXAXOFMJOZNSYWRZSWECMXAQQURHQBJNLD9IOFEPGZEPEMPXCIVRX9999']\n}\n\nstringified = json.dumps(command)\n\nheaders = {'content-type': 'application/json'}\n\nrequest = urllib2.Request(url=\"http://localhost:14265\", data=stringified, headers=headers)\nreturnData = urllib2.urlopen(request).read()\n\njsonData = json.loads(returnData)\n\nprint jsonData","language":"python"},{"name":"NodeJS","code":"var request = require('request');\n\nvar command = {\n  'command': 'getTrytes',\n  'hashes': ['OAATQS9VQLSXCLDJVJJVYUGONXAXOFMJOZNSYWRZSWECMXAQQURHQBJNLD9IOFEPGZEPEMPXCIVRX9999']\n}\n\nvar options = {\n  url: 'http://localhost:14265',\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/json',\n    'Content-Length': JSON.stringify(command).length\n  },\n  json: command\n};\n\nrequest(options, function (error, response, data) {\n  if (!error && response.statusCode == 200) {\n    console.log(data);\n  }\n});","language":"javascript"}]},"params":[{"_id":"577d54f1aa701f0e003825ca","ref":"","in":"body","required":true,"desc":"","default":"getTrytes","type":"string","name":"command"},{"_id":"577d54f1aa701f0e003825c9","default":"","desc":"List of transaction hashes of which you want to get trytes from.","in":"body","name":"hashes","ref":"","required":true,"type":"array_string"}],"results":{"codes":[{"status":200,"language":"json","code":"{ \n  trytes: [ 'BYSWEAUTWXHXZ9YBZISEK9LUHWGMHXCGEVNZHRLUWQFCUSDXZHOFHWHL9MQPVJXXZLIXPXPXF9KYEREFSKCPKYIIKPZVLHUTDFQKKVVBBN9ATTLPCNPJDWDEVIYYLGPZGCWXOBDXMLJC9VO9QXTTBLAXTTBFUAROYEGQIVB9MJWJKXJMCUPTWAUGFZBTZCSJVRBGMYXTVBDDS9MYUJCPZ9YDWWQNIPUAIJXXSNLKUBSCOIJPCLEFPOXFJREXQCUVUMKSDOVQGGHRNILCO9GNCLWFM9APMNMWYASHXQAYBEXF9QRIHIBHYEJOYHRQJAOKAQ9AJJFQ9WEIWIJOTZATIBOXQLBMIJU9PCGBLVDDVFP9CFFSXTDUXMEGOOFXWRTLFGV9XXMYWEMGQEEEDBTIJ9OJOXFAPFQXCDAXOUDMLVYRMRLUDBETOLRJQAEDDLNVIRQJUBZBO9CCFDHIX9MSQCWY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YAVICHVYELYFPUYDTWUSWNIYFXPX9MICCCOOZIWRNJIDALWGWRATGLJXNAYTNIZWQ9YTVDBOFZRKO9CFWRPAQQRXTPACOWCPRLYRYSJARRKSQPR9TCFXDVIXLP9XVL99ERRDSOHBFJDJQQGGGCZNDQ9NYCTQJWVZIAELCRBJJFDMCNZU9FIZRPGNURTXOCDSQGXTQHKHUECGWFUUYS9J9NYQ9U9P9UUP9YMZHWWWCIASCFLCMSKTELZWUGCDE9YOKVOVKTAYPHDF9ZCCQAYPJIJNGSHUIHHCOSSOOBUDOKE9CJZGYSSGNCQJVBEFTZFJ9SQUHOASKRRGBSHWKBCBWBTJHOGQ9WOMQFHWJVEG9NYX9KWBTCAIXNXHEBDIOFO9ALYMFGRICLCKKLG9FOBOX9PDWNQRGHBKHGKKRLWTBEQMCWQRLHAVYYZDIIPKVQTHYTWQMTOACXZOQCDTJTBAAUWXSGJF9PNQIJ9AJRUMUVCPWYVYVARKR9RKGOUHHNKNVGGPDDLGKPQNOYHNKAVVKCXWXOQPZNSLATUJT9AUWRMPPSWHSTTYDFAQDXOCYTZHOYYGAIM9CELMZ9AZPWB9MJXGHOKDNNSZVUDAGXTJJSSZCPZVPZBYNNTUQABSXQWZCHDQSLGK9UOHCFKBIBNETK999999999999999999999999999999999999999999999999999999999999999999999999999999999NOXDXXKUDWLOFJLIPQIBRBMGDYCPGDNLQOLQS99EQYKBIU9VHCJVIPFUYCQDNY9APGEVYLCENJIOBLWNB999999999XKBRHUD99C99999999NKZKEKWLDKMJCI9N9XQOLWEPAYWSH9999999999999999999999999KDDTGZLIPBNZKMLTOLOXQVNGLASESDQVPTXALEKRMIOHQLUHD9ELQDBQETS9QFGTYOYWLNTSKKMVJAUXSIROUICDOXKSYZTDPEDKOQENTJOWJONDEWROCEJIEWFWLUAACVSJFTMCHHXJBJRKAAPUDXXVXFWP9X9999IROUICDOXKSYZTDPEDKOQENTJOWJONDEWROCEJIEWFWLUAACVSJFTMCHHXJBJRKAAPUDXXVXFWP9X9999' \n          ] \n}","name":""},{"status":400,"language":"json","code":"{}","name":""}]},"settings":"","url":"/"},"body":"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.","category":"5809cdde8a22912500ad3256","createdAt":"2016-07-06T18:58:57.283Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":6,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"gettrytes","sync_unique":"","title":"getTrytes","type":"post","updates":["58497f3ff212ae1b009d04ad"],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

postgetTrytes


Body Params

command:
required
stringgetTrytes
hashes:
required
array of strings
List of transaction hashes of which you want to get trytes from.
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.

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



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.
{"__v":0,"_id":"5809cdde8a22912500ad3269","api":{"auth":"required","examples":{"codes":[{"code":"curl http://localhost:14265 \\\n  -X POST \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"command\": \"getInclusionStates\", \"transactions\": [\"QHBYXQWRAHQJZEIARWSQGZJTAIITOZRMBFICIPAVD9YRJMXFXBDPFDTRAHHHP9YPDUVTNOFWZGFGWMYHEKNAGNJHMW\"], \"tips\": [\"ZIJGAJ9AADLRPWNCYNNHUHRRAC9QOUDATEDQUMTNOTABUVRPTSTFQDGZKFYUUIE9ZEBIVCCXXXLKX9999\"]}'","language":"curl"},{"code":"import urllib2\nimport json\n\ncommand = {\n    'command': 'getInclusionStates',\n    'transactions': ['QHBYXQWRAHQJZEIARWSQGZJTAIITOZRMBFICIPAVD9YRJMXFXBDPFDTRAHHHP9YPDUVTNOFWZGFGWMYHEKNAGNJHMW'],\n    'tips': ['ZIJGAJ9AADLRPWNCYNNHUHRRAC9QOUDATEDQUMTNOTABUVRPTSTFQDGZKFYUUIE9ZEBIVCCXXXLKX9999']\n}\n\nstringified = json.dumps(command)\n\nheaders = {'content-type': 'application/json'}\n\nrequest = urllib2.Request(url=\"http://localhost:14265\", data=stringified, headers=headers)\nreturnData = urllib2.urlopen(request).read()\n\njsonData = json.loads(returnData)\n\nprint jsonData","language":"python"},{"name":"NodeJS","language":"javascript","code":"var request = require('request');\n\nvar command = {\n    'command': 'getInclusionStates',\n    'transactions': ['QHBYXQWRAHQJZEIARWSQGZJTAIITOZRMBFICIPAVD9YRJMXFXBDPFDTRAHHHP9YPDUVTNOFWZGFGWMYHEKNAGNJHMW'],\n    'tips': ['ZIJGAJ9AADLRPWNCYNNHUHRRAC9QOUDATEDQUMTNOTABUVRPTSTFQDGZKFYUUIE9ZEBIVCCXXXLKX9999']\n}\n\nvar options = {\n  url: 'http://localhost:14265',\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/json',\n    'Content-Length': JSON.stringify(command).length\n  },\n  json: command\n};\n\nrequest(options, function (error, response, data) {\n  if (!error && response.statusCode == 200) {\n    console.log(data);\n  }\n});"}]},"params":[{"_id":"57c7fec3690c200e0047b714","ref":"","in":"body","required":true,"desc":"","default":"getInclusionStates","type":"string","name":"command"},{"_id":"57c7fec3690c200e0047b713","ref":"","in":"body","required":true,"desc":"List of transactions you want to get the inclusion state for.","default":"","type":"array_string","name":"transactions"},{"_id":"57c7fec3690c200e0047b712","default":"","desc":"List of tips (including milestones) you want to search for the inclusion state.","in":"body","name":"tips","ref":"","required":true,"type":"array_string"}],"results":{"codes":[{"name":"","code":"{\n  \"states\": [true], \n  \"duration\": 91\n}","language":"json","status":200},{"name":"","code":"{}","language":"json","status":400}]},"settings":"","url":"/"},"body":"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. \n\nThis API call simply returns a list of boolean values in the same order as the transaction list you submitted, thus you get a true/false whether a transaction is confirmed or not.","category":"5809cdde8a22912500ad3256","createdAt":"2016-09-01T10:11:15.115Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":7,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"getinclusionstates","sync_unique":"","title":"getInclusionStates","type":"post","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

postgetInclusionStates


Body Params

command:
required
stringgetInclusionStates
transactions:
required
array of strings
List of transactions you want to get the inclusion state for.
tips:
required
array of strings
List of tips (including milestones) you want to search for the inclusion state.
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. This API call simply returns a list of boolean values in the same order as the transaction list you submitted, thus you get a true/false whether a transaction is confirmed or not.

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



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. This API call simply returns a list of boolean values in the same order as the transaction list you submitted, thus you get a true/false whether a transaction is confirmed or not.
{"__v":0,"_id":"5809eaed629bf91900cd13a0","api":{"settings":"","results":{"codes":[{"name":"","code":"{\n    \"balances\": [\n        \"114544444\"\n    ],\n    \"duration\": 30,\n    \"milestone\": \"INRTUYSZCWBHGFGGXXPWRWBZACYAFGVRRP9VYEQJOHYD9URMELKWAFYFMNTSP9MCHLXRGAFMBOZPZ9999\",\n    \"milestoneIndex\": 128\n}","language":"json","status":200},{"name":"","code":"{}","language":"json","status":400}]},"examples":{"codes":[{"code":"curl http://localhost:14265 \\\n  -X POST \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"command\": \"getBalances\", \"addresses\": [\"HBBYKAKTILIPVUKFOTSLHGENPTXYBNKXZFQFR9VQFWNBMTQNRVOUKPVPRNBSZVVILMAFBKOTBLGLWLOHQ\"], \"threshold\": 100}'","language":"curl"},{"code":"import urllib2\nimport json\n\ncommand = {\n    'command': 'getBalances',\n    'addresses': ['HBBYKAKTILIPVUKFOTSLHGENPTXYBNKXZFQFR9VQFWNBMTQNRVOUKPVPRNBSZVVILMAFBKOTBLGLWLOHQ'],\n    'threshold': 100\n}\n\nstringified = json.dumps(command)\n\nheaders = {'content-type': 'application/json'}\n\nrequest = urllib2.Request(url=\"http://localhost:14265\", data=stringified, headers=headers)\nreturnData = urllib2.urlopen(request).read()\n\njsonData = json.loads(returnData)\n\nprint jsonData","language":"python"},{"name":"NodeJS","language":"javascript","code":"var request = require('request');\n\nvar command = {\n    'command': 'getBalances',\n    'addresses': ['HBBYKAKTILIPVUKFOTSLHGENPTXYBNKXZFQFR9VQFWNBMTQNRVOUKPVPRNBSZVVILMAFBKOTBLGLWLOHQ'],\n    'threshold': 100\n}\n\nvar options = {\n  url: 'http://localhost:14265',\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/json',\n    'Content-Length': JSON.stringify(command).length\n  },\n  json: command\n};\n\nrequest(options, function (error, response, data) {\n  if (!error && response.statusCode == 200) {\n    console.log(data);\n  }\n});"}]},"auth":"required","params":[{"_id":"57c7fec3690c200e0047b714","ref":"","in":"body","required":true,"desc":"","default":"getBalances","type":"string","name":"command"},{"_id":"57c7fec3690c200e0047b713","ref":"","in":"body","required":true,"desc":"List of addresses you want to get the confirmed balance from","default":"","type":"array_string","name":"addresses"},{"_id":"57c7fec3690c200e0047b712","ref":"","in":"body","required":true,"desc":"Confirmation threshold, should be set to 100.","default":"100","type":"int","name":"threshold"}],"url":"/"},"body":"Similar to `getInclusionStates`. It returns the confirmed balance which a list of addresses have at the latest confirmed milestone. In addition to the balances, it also returns the 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.","category":"5809cdde8a22912500ad3256","createdAt":"2016-10-21T10:16:13.536Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":8,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"getbalances","sync_unique":"","title":"getBalances","type":"post","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

postgetBalances


Body Params

command:
required
stringgetBalances
addresses:
required
array of strings
List of addresses you want to get the confirmed balance from
threshold:
required
integer100
Confirmation threshold, should be set to 100.
Similar to `getInclusionStates`. It returns the confirmed balance which a list of addresses have at the latest confirmed milestone. In addition to the balances, it also returns the 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.

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



Similar to `getInclusionStates`. It returns the confirmed balance which a list of addresses have at the latest confirmed milestone. In addition to the balances, it also returns the 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.
{"__v":0,"_id":"5809cdde8a22912500ad326f","api":{"auth":"required","examples":{"codes":[{"language":"curl","code":"curl http://localhost:14265 \\\n  -X POST \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"command\": \"getTransactionsToApprove\", \"depth\": 27}'\n"},{"language":"python","code":"import urllib2\nimport json\n\ncommand = {\n    'command': 'getTransactionsToApprove',\n    'depth': 27\n}\n\nstringified = json.dumps(command)\n\nheaders = {'content-type': 'application/json'}\n\nrequest = urllib2.Request(url=\"http://localhost:14265\", data=stringified, headers=headers)\nreturnData = urllib2.urlopen(request).read()\n\njsonData = json.loads(returnData)\n\nprint jsonData"},{"name":"NodeJS","language":"javascript","code":"var request = require('request');\n\nvar command = {\n  'command': 'getTransactionsToApprove',\n  'depth': 27 \n}\n\nvar options = {\n  url: 'http://localhost:14265',\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/json',\n    'Content-Length': Buffer.byteLength(JSON.stringify(command))\n  },\n  json: command\n};\n\nrequest.post('http://localhost:14265',JSON.stringify(command), function (error, response, data) {\n  if (!error && response.statusCode == 200) {\n    console.log(data);\n  }\n});"}]},"params":[{"_id":"579d14f710a40b0e000c7bf8","ref":"","in":"body","required":true,"desc":"","default":"getTransactionsToApprove","type":"string","name":"command"},{"_id":"579d14f710a40b0e000c7bf7","default":"","desc":"Number of bundles to go back to determine the transactions for approval.","in":"body","name":"depth","ref":"","required":true,"type":"int"}],"results":{"codes":[{"status":200,"language":"json","code":"{\n  \"trunkTransaction\": \"TKGDZ9GEI9CPNQGHEATIISAKYPPPSXVCXBSR9EIWCTHHSSEQCD9YLDPEXYERCNJVASRGWMAVKFQTC9999\", \n  \"branchTransaction\": \"TKGDZ9GEI9CPNQGHEATIISAKYPPPSXVCXBSR9EIWCTHHSSEQCD9YLDPEXYERCNJVASRGWMAVKFQTC9999\", \n  \"duration\": 936\n}","name":""},{"status":400,"language":"json","code":"{}","name":""}]},"settings":"","url":"/"},"body":"Tip selection which returns `trunkTransaction` and `branchTransaction`. The input value is `depth`, which basically determines how many bundles to go back to for finding the transactions to approve. The higher your `depth` value, the more \"babysitting\" you do for the network (as you have to confirm more transactions).","category":"5809cdde8a22912500ad3256","createdAt":"2016-07-30T20:58:31.665Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":9,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"gettransactionstoapprove","sync_unique":"","title":"getTransactionsToApprove","type":"post","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

postgetTransactionsToApprove


Body Params

command:
required
stringgetTransactionsToApprove
depth:
required
integer
Number of bundles to go back to determine the transactions for approval.
Tip selection which returns `trunkTransaction` and `branchTransaction`. The input value is `depth`, which basically determines how many bundles to go back to for finding the transactions to approve. The higher your `depth` value, the more "babysitting" you do for the network (as you have to confirm more transactions).

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



Tip selection which returns `trunkTransaction` and `branchTransaction`. The input value is `depth`, which basically determines how many bundles to go back to for finding the transactions to approve. The higher your `depth` value, the more "babysitting" you do for the network (as you have to confirm more transactions).
{"__v":0,"_id":"5809cdde8a22912500ad3270","api":{"auth":"required","examples":{"codes":[{"language":"curl","code":"curl http://localhost:14265 \\\n  -X POST \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"command\": \"attachToTangle\", \"trunkTransaction\": \"JVMTDGDPDFYHMZPMWEKKANBQSLSDTIIHAYQUMZOKHXXXGJHJDQPOMDOMNRDKYCZRUFZROZDADTHZC9999\", \"branchTransaction\": \"P9KFSJVGSPLXAEBJSHWFZLGP9GGJTIO9YITDEHATDTGAFLPLBZ9FOFWWTKMAZXZHFGQHUOXLXUALY9999\", \"minWeightMagnitude\": 18, \"trytes\": [\"TRYTVALUEHERE\"]}'\n"},{"language":"python","code":"import urllib2\nimport json\n\ncommand = {\n    'command': 'attachToTangle',\n    'trunkTransaction': 'JVMTDGDPDFYHMZPMWEKKANBQSLSDTIIHAYQUMZOKHXXXGJHJDQPOMDOMNRDKYCZRUFZROZDADTHZC9999', \n    'branchTransaction': 'P9KFSJVGSPLXAEBJSHWFZLGP9GGJTIO9YITDEHATDTGAFLPLBZ9FOFWWTKMAZXZHFGQHUOXLXUALY9999',\n    'minWeightMagnitude': 18,\n    'trytes': ['TRYTVALUEHERE']\n}\n\nstringified = json.dumps(command)\n\nheaders = {'content-type': 'application/json'}\n\nrequest = urllib2.Request(url='http://localhost:14265', data=stringified, headers=headers)\nreturnData = urllib2.urlopen(request).read()\n\njsonData = json.loads(returnData)\n\nprint jsonData\n"},{"name":"NodeJS","language":"javascript","code":"var request = require('request');\n\nvar command = {\n    'command': 'attachToTangle',\n    'trunkTransaction': 'JVMTDGDPDFYHMZPMWEKKANBQSLSDTIIHAYQUMZOKHXXXGJHJDQPOMDOMNRDKYCZRUFZROZDADTHZC9999',\n    'branchTransaction': 'P9KFSJVGSPLXAEBJSHWFZLGP9GGJTIO9YITDEHATDTGAFLPLBZ9FOFWWTKMAZXZHFGQHUOXLXUALY9999',\n    'minWeightMagnitude': 18,\n    'trytes': ['TRYTVALUEHERE']\n}\n\nvar options = {\n  url: 'http://localhost:14265',\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/json',\n    'Content-Length': JSON.stringify(command).length\n  },\n  json: command\n};\n\nrequest(options, function (error, response, data) {\n  if (!error && response.statusCode == 200) {\n    console.log(data);\n  }\n});\n"}]},"params":[{"_id":"579d227be781c719001a7bd9","ref":"","in":"body","required":true,"desc":"","default":"attachToTangle","type":"string","name":"command"},{"_id":"579d227be781c719001a7bd8","ref":"","in":"body","required":true,"desc":"Trunk transaction to approve.","default":"","type":"string","name":"trunkTransaction"},{"_id":"579d227be781c719001a7bd7","ref":"","in":"body","required":true,"desc":"Branch transaction to approve.","default":"","type":"string","name":"branchTransaction"},{"_id":"579d227be781c719001a7bd6","default":"18","desc":"Proof of Work intensity. Minimum value is 18","in":"body","name":"minWeightMagnitude","ref":"","required":true,"type":"int"},{"_id":"579d227be781c719001a7bd5","default":"","desc":"List of trytes (raw transaction data) to attach to the tangle.","in":"body","name":"trytes","ref":"","required":true,"type":"array_string"}],"results":{"codes":[{"status":200,"language":"json","code":"{\n  'trytes':['TRYTEVALUEHERE']\n}","name":""},{"status":400,"language":"json","code":"{}","name":""}]},"settings":"","url":"/"},"body":"Attaches the specified transactions (trytes) to the Tangle by doing Proof of Work. You need to supply `branchTransaction` as well as `trunkTransaction` (basically the tips which you're going to validate and reference with this transaction) - both of which you'll get through the `getTransactionsToApprove` API call. \n\nThe returned value is a different set of tryte values which you can input into `broadcastTransactions` and `storeTransactions`. The returned tryte value, the last 243 trytes basically consist of the: `trunkTransaction` + `branchTransaction` + `nonce`. These are valid trytes which are then accepted by the network.","category":"5809cdde8a22912500ad3256","createdAt":"2016-07-30T21:56:11.692Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":10,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"attachtotangle","sync_unique":"","title":"attachToTangle","type":"post","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

postattachToTangle


Body Params

command:
required
stringattachToTangle
trunkTransaction:
required
string
Trunk transaction to approve.
branchTransaction:
required
string
Branch transaction to approve.
minWeightMagnitude:
required
integer18
Proof of Work intensity. Minimum value is 18
trytes:
required
array of strings
List of trytes (raw transaction data) to attach to the tangle.
Attaches the specified transactions (trytes) to the Tangle by doing Proof of Work. You need to supply `branchTransaction` as well as `trunkTransaction` (basically the tips which you're going to validate and reference with this transaction) - both of which you'll get through the `getTransactionsToApprove` API call. The returned value is a different set of tryte values which you can input into `broadcastTransactions` and `storeTransactions`. The returned tryte value, the last 243 trytes basically consist of the: `trunkTransaction` + `branchTransaction` + `nonce`. These are valid trytes which are then accepted by the network.

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



Attaches the specified transactions (trytes) to the Tangle by doing Proof of Work. You need to supply `branchTransaction` as well as `trunkTransaction` (basically the tips which you're going to validate and reference with this transaction) - both of which you'll get through the `getTransactionsToApprove` API call. The returned value is a different set of tryte values which you can input into `broadcastTransactions` and `storeTransactions`. The returned tryte value, the last 243 trytes basically consist of the: `trunkTransaction` + `branchTransaction` + `nonce`. These are valid trytes which are then accepted by the network.
{"__v":0,"_id":"5809cdde8a22912500ad3271","api":{"examples":{"codes":[]},"results":{"codes":[{"name":"","code":"{}","language":"json","status":200},{"name":"","code":"{}","language":"json","status":400}]},"settings":"","auth":"required","params":[{"_id":"57c7fef3690c200e0047b716","ref":"","in":"body","required":true,"desc":"","default":"interruptAttachingToTangle","type":"string","name":"command"}],"url":"/"},"body":"Interrupts and completely aborts the `attachToTangle` process.","category":"5809cdde8a22912500ad3256","createdAt":"2016-09-01T10:12:03.747Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":11,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"interruptattachingtotangle","sync_unique":"","title":"interruptAttachingToTangle","type":"post","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

postinterruptAttachingToTangle


Body Params

command:
required
stringinterruptAttachingToTangle
Interrupts and completely aborts the `attachToTangle` process.

Definition

{{ api_url }}{{ page_api_url }}

Result Format



Interrupts and completely aborts the `attachToTangle` process.
{"__v":0,"_id":"5809cdde8a22912500ad3272","api":{"auth":"required","examples":{"codes":[{"language":"curl","code":"curl http://localhost:14265 \\\n  -X POST \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"command\": \"broadcastTransactions\", \"trytes\": [\"BYSWEAUTWXHXZ9YBZISEK9LUHWGMHXCGEVNZHRLUWQFCUSDXZHOFHWHL9MQPVJXXZLIXPXPXF9KYEREFSKCPKYIIKPZVLHUTDFQKKVVBBN9ATTLPCNPJDWDEVIYYLGPZGCWXOBDXMLJC9VO9QXTTBLAXTTBFUAROYEGQIVB9MJWJKXJMCUPTWAUGFZBTZCSJVRBGMYXTVBDDS9MYUJCPZ9YDWWQNIPUAIJXXSNLKUBSCOIJPCLEFPOXFJREXQCUVUMKSDOVQGGHRNILCO9GNCLWFM9APMNMWYASHXQAYBEXF9QRIHIBHYEJOYHRQJAOKAQ9AJJFQ9WEIWIJOTZATIBOXQLBMIJU9PCGBLVDDVFP9CFFSXTDUXMEGOOFXWRTLFGV9XXMYWEMGQEEEDBTIJ9OJOXFAPFQXCDAXOUDMLVYRMRLUDBETOLRJQAEDDLNVIRQJUBZBO9CCFDHIX9MSQCWYAXJVWHCUPTRSXJDESISQPRKZAFKFRULCGVRSBLVFOPEYLEE99JD9SEBALQINPDAZHFAB9RNBH9AZWIJOTLBZVIEJIAYGMC9AZGNFWGRSWAXTYSXVROVNKCOQQIWGPNQZKHUNODGYADPYLZZZUQRTJRTODOUKAOITNOMWNGHJBBA99QUMBHRENGBHTH9KHUAOXBVIVDVYYZMSEYSJWIOGGXZVRGN999EEGQMCOYVJQRIRROMPCQBLDYIGQO9AMORPYFSSUGACOJXGAQSPDY9YWRRPESNXXBDQ9OZOXVIOMLGTSWAMKMTDRSPGJKGBXQIVNRJRFRYEZ9VJDLHIKPSKMYC9YEGHFDS9SGVDHRIXBEMLFIINOHVPXIFAZCJKBHVMQZEVWCOSNWQRDYWVAIBLSCBGESJUIBWZ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PDWNQRGHBKHGKKRLWTBEQMCWQRLHAVYYZDIIPKVQTHYTWQMTOACXZOQCDTJTBAAUWXSGJF9PNQIJ9AJRUMUVCPWYVYVARKR9RKGOUHHNKNVGGPDDLGKPQNOYHNKAVVKCXWXOQPZNSLATUJT9AUWRMPPSWHSTTYDFAQDXOCYTZHOYYGAIM9CELMZ9AZPWB9MJXGHOKDNNSZVUDAGXTJJSSZCPZVPZBYNNTUQABSXQWZCHDQSLGK9UOHCFKBIBNETK999999999999999999999999999999999999999999999999999999999999999999999999999999999NOXDXXKUDWLOFJLIPQIBRBMGDYCPGDNLQOLQS99EQYKBIU9VHCJVIPFUYCQDNY9APGEVYLCENJIOBLWNB999999999XKBRHUD99C99999999NKZKEKWLDKMJCI9N9XQOLWEPAYWSH9999999999999999999999999KDDTGZLIPBNZKMLTOLOXQVNGLASESDQVPTXALEKRMIOHQLUHD9ELQDBQETS9QFGTYOYWLNTSKKMVJAUXSIROUICDOXKSYZTDPEDKOQENTJOWJONDEWROCEJIEWFWLUAACVSJFTMCHHXJBJRKAAPUDXXVXFWP9X9999IROUICDOXKSYZTDPEDKOQENTJOWJONDEWROCEJIEWFWLUAACVSJFTMCHHXJBJRKAAPUDXXVXFWP9X9999\"]}'"},{"language":"python","code":"import urllib2\nimport json\n\ncommand = {\n    'command': 'broadcastTransactions',\n    'trytes': ['BYSWEAUTWXHXZ9YBZISEK9LUHWGMHXCGEVNZHRLUWQFCUSDXZHOFHWHL9MQPVJXXZLIXPXPXF9KYEREFSKCPKYIIKPZVLHUTDFQKKVVBBN9ATTLPCNPJDWDEVIYYLGPZGCWXOBDXMLJC9VO9QXTTBLAXTTBFUAROYEGQIVB9MJWJKXJMCUPTWAUGFZBTZCSJVRBGMYXTVBDDS9MYUJCPZ9YDWWQNIPUAIJXXSNLKUBSCOIJPCLEFPOXFJREXQCUVUMKSDOVQGGHRNILCO9GNCLWFM9APMNMWYASHXQAYBEXF9QRIHIBHYEJOYHRQJAOKAQ9AJJFQ9WE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IROUICDOXKSYZTDPEDKOQENTJOWJONDEWROCEJIEWFWLUAACVSJFTMCHHXJBJRKAAPUDXXVXFWP9X9999IROUICDOXKSYZTDPEDKOQENTJOWJONDEWROCEJIEWFWLUAACVSJFTMCHHXJBJRKAAPUDXXVXFWP9X9999']\n}\n\nstringified = json.dumps(command)\n\nheaders = {'content-type': 'application/json'}\n\nrequest = urllib2.Request(url=\"http://localhost:14265\", data=stringified, headers=headers)\nreturnData = urllib2.urlopen(request).read()\n\njsonData = json.loads(returnData)\n\nprint jsonData"},{"language":"javascript","code":"var request = require('request');\n\nvar command = {\n  'command': 'broadcastTransactions',\n  'trytes': ['SECRETMESSAGE99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999UMHUBWT9YHMQ9PUWOFVJNWWIYPYJROYXZVTNKMQCMFMYQOXMFHJLZCNGPFGMMYJKJONSMBSFPBP9IWJOONOXDXXKUDWLOFJLIPQIBRBMGDYCPGDNLQOLQS99EQYKBIU9VHCJVIPFUYCQDNY9APGEVYLCENJIOBLWNB999999999WB9XLUD99A99999999IOKRINUKSMUZAOSYKNNSYKELXJM999999999999999999999999999MWRHKZRYYJPCQYOMUZU9ZGUGCPZWYVUTLDPTSRMQPGAPCUDDXQNIOOR9KPAHLYOGQJQUCBDP9DRXORKUOJVMTDGDPDFYHMZPMWEKKANBQSLSDTIIHAYQUMZOKHXXXGJHJDQPOMDOMNRDKYCZRUFZROZDADTHZC9999P9KFSJVGSPLXAEBJSHWFZLGP9GGJTIO9YITDEHATDTGAFLPLBZ9FOFWWTKMAZXZHFGQHUOXLXUALY9999']\n}\n\nvar options = {\n  url: 'http://localhost:14265',\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/json',\n    'Content-Length': Buffer.byteLength(JSON.stringify(command))\n  },\n  json: command\n};\n\nrequest(options, function (error, response, data) {\n  if (!error && response.statusCode == 200) {\n    console.log(data);\n  }\n});"}]},"params":[{"_id":"577d66b647a9ab0e003dfed2","ref":"","in":"body","required":true,"desc":"","default":"broadcastTransactions","type":"string","name":"command"},{"_id":"577d66b647a9ab0e003dfed1","ref":"","in":"body","required":true,"desc":"List of raw data of transactions to be rebroadcast.","default":"","type":"array_string","name":"trytes"}],"results":{"codes":[{"name":"","code":"{}","language":"json","status":200},{"name":"","code":"{}","language":"json","status":400}]},"settings":"","url":"/"},"body":"Broadcast a list of transactions to all neighbors. The input trytes for this call are provided by `attachToTangle`.","category":"5809cdde8a22912500ad3256","createdAt":"2016-07-06T20:14:46.483Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":12,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"broadcasttransactions","sync_unique":"","title":"broadcastTransactions","type":"post","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

postbroadcastTransactions


Body Params

command:
required
stringbroadcastTransactions
trytes:
required
array of strings
List of raw data of transactions to be rebroadcast.
Broadcast a list of transactions to all neighbors. The input trytes for this call are provided by `attachToTangle`.

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



Broadcast a list of transactions to all neighbors. The input trytes for this call are provided by `attachToTangle`.
{"__v":0,"_id":"5809cdde8a22912500ad3273","api":{"examples":{"codes":[{"code":"curl http://localhost:14265 \\\n  -X POST \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"command\": \"storeTransactions\", \"trytes\": [\"BYSWEAUTWXHXZ9YBZISEK9LUHWGMHXCGEVNZHRLUWQFCUSDXZHOFHWHL9MQPVJXXZLIXPXPXF9KYEREFSKCPKYIIKPZVLHUTDFQKKVVBBN9ATTLPCNPJDWDEVIYYLGPZGCWXOBDXMLJC9VO9QXTTBLAXTTBFUAROYEGQIVB9MJWJKXJMCUPTWAUGFZBTZCSJVRBGMYXTVBDDS9MYUJCPZ9YDWWQNIPUAIJXXSNLKUBSCOIJPCLEFPOXFJREXQCUVUMKSDOVQGGHRNILCO9GNCLWFM9APMNMWYASHXQAYBEXF9QRIHIBHYEJOYHRQJAOKAQ9AJJFQ9WEIWIJOTZATIBOXQLBMIJU9PCGBLVDDVFP9CFFSXTDUXMEGOOFXWRTLFGV9XXMYWEMGQEEEDBTIJ9OJOXFAPFQXCDAXOUDMLVYRMRLUDBETOLRJQAEDDLNVIRQJUBZBO9CCFDHIX9MSQCWYAXJVWHCUPTRSXJDESISQPRKZAFKFRULCGVRSBLVFOPEYLEE99JD9SEBALQINPDAZHFAB9RNBH9AZWIJOTLBZVIEJIAYGMC9AZGNFWGRSWAXTYSXVROVNKCOQQIWGPNQZKHUNODGYADPYLZZZUQRTJRTODOUKAOITNOMWNGHJBBA99QUMBHRENGBHTH9KH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NURTXOCDSQGXTQHKHUECGWFUUYS9J9NYQ9U9P9UUP9YMZHWWWCIASCFLCMSKTELZWUGCDE9YOKVOVKTAYPHDF9ZCCQAYPJIJNGSHUIHHCOSSOOBUDOKE9CJZGYSSGNCQJVBEFTZFJ9SQUHOASKRRGBSHWKBCBWBTJHOGQ9WOMQFHWJVEG9NYX9KWBTCAIXNXHEBDIOFO9ALYMFGRICLCKKLG9FOBOX9PDWNQRGHBKHGKKRLWTBEQMCWQRLHAVYYZDIIPKVQTHYTWQMTOACXZOQCDTJTBAAUWXSGJF9PNQIJ9AJRUMUVCPWYVYVARKR9RKGOUHHNKNVGGPDDLGKPQNOYHNKAVVKCXWXOQPZNSLATUJT9AUWRMPPSWHSTTYDFAQDXOCYTZHOYYGAIM9CELMZ9AZPWB9MJXGHOKDNNSZVUDAGXTJJSSZCPZVPZBYNNTUQABSXQWZCHDQSLGK9UOHCFKBIBNETK999999999999999999999999999999999999999999999999999999999999999999999999999999999NOXDXXKUDWLOFJLIPQIBRBMGDYCPGDNLQOLQS99EQYKBIU9VHCJVIPFUYCQDNY9APGEVYLCENJIOBLWNB999999999XKBRHUD99C99999999NKZKEKWLDKMJCI9N9XQOLWEPAYWSH9999999999999999999999999KDDTGZLIPBNZKMLTOLOXQVNGLASESDQVPTXALEKRMIOHQLUHD9ELQDBQETS9QFGTYOYWLNTSKKMVJAUXSIROUICDOXKSYZTDPEDKOQENTJOWJONDEWROCEJIEWFWLUAACVSJFTMCHHXJBJRKAAPUDXXVXFWP9X9999IROUICDOXKSYZTDPEDKOQENTJOWJONDEWROCEJIEWFWLUAACVSJFTMCHHXJBJRKAAPUDXXVXFWP9X9999\"]}'","language":"curl"},{"code":"import urllib2\nimport json\n\ncommand = {\n    'command': 'storeTransactions',\n    'trytes': ['BYSWEAUTWXHXZ9YBZISEK9LUHWGMHXCGEVNZHRLUWQFCUSDXZHOFHWHL9MQPVJXXZLIXPXPXF9KYEREFSKCPKYIIKPZVLHUTDFQKKVVBBN9AT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999999999999999999999999999999999999NOXDXXKUDWLOFJLIPQIBRBMGDYCPGDNLQOLQS99EQYKBIU9VHCJVIPFUYCQDNY9APGEVYLCENJIOBLWNB999999999XKBRHUD99C99999999NKZKEKWLDKMJCI9N9XQOLWEPAYWSH9999999999999999999999999KDDTGZLIPBNZKMLTOLOXQVNGLASESDQVPTXALEKRMIOHQLUHD9ELQDBQETS9QFGTYOYWLNTSKKMVJAUXSIROUICDOXKSYZTDPEDKOQENTJOWJONDEWROCEJIEWFWLUAACVSJFTMCHHXJBJRKAAPUDXXVXFWP9X9999IROUICDOXKSYZTDPEDKOQENTJOWJONDEWROCEJIEWFWLUAACVSJFTMCHHXJBJRKAAPUDXXVXFWP9X9999']\n}\n\nstringified = json.dumps(command)\n\nheaders = {'content-type': 'application/json'}\n\nrequest = urllib2.Request(url=\"http://localhost:14265\", data=stringified, headers=headers)\nreturnData = urllib2.urlopen(request).read()\n\njsonData = json.loads(returnData)\n\nprint jsonData","language":"python"},{"name":"NodeJS","code":"var request = require('request');\n\nvar command = {\n  'command': 'storeTransactions',\n  'trytes': ['SECRETMESSAGE99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999UMHUBWT9YHMQ9PUWOFVJNWWIYPYJROYXZVTNKMQCMFMYQOXMFHJLZCNGPFGMMYJKJONSMBSFPBP9IWJOONOXDXXKUDWLOFJLIPQIBRBMGDYCPGDNLQOLQS99EQYKBIU9VHCJVIPFUYCQDNY9APGEVYLCENJIOBLWNB999999999WB9XLUD99A99999999IOKRINUKSMUZAOSYKNNSYKELXJM999999999999999999999999999MWRHKZRYYJPCQYOMUZU9ZGUGCPZWYVUTLDPTSRMQPGAPCUDDXQNIOOR9KPAHLYOGQJQUCBDP9DRXORKUOJVMTDGDPDFYHMZPMWEKKANBQSLSDTIIHAYQUMZOKHXXXGJHJDQPOMDOMNRDKYCZRUFZROZDADTHZC9999P9KFSJVGSPLXAEBJSHWFZLGP9GGJTIO9YITDEHATDTGAFLPLBZ9FOFWWTKMAZXZHFGQHUOXLXUALY9999']\n}\n\nvar options = {\n  url: 'http://localhost:14265',\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/json',\n    'Content-Length': Buffer.byteLength(JSON.stringify(command))\n  },\n  json: command\n};\n\nrequest(options, function (error, response, data) {\n  if (!error && response.statusCode == 200) {\n    console.log(data);\n  }\n});","language":"javascript"}]},"results":{"codes":[{"name":"","code":"{}","language":"json","status":200},{"name":"","code":"{}","language":"json","status":400}]},"settings":"","auth":"required","params":[{"_id":"577d66b647a9ab0e003dfed2","ref":"","in":"body","required":true,"desc":"","default":"broadcastTransactions","type":"string","name":"command"},{"_id":"577d66b647a9ab0e003dfed1","ref":"","in":"body","required":true,"desc":"List of raw data of transactions to be rebroadcast.","default":"","type":"array_string","name":"trytes"}],"url":"/"},"body":"Store transactions into the local storage. The trytes to be used for this call are returned by `attachToTangle`.","category":"5809cdde8a22912500ad3256","createdAt":"2016-07-30T22:00:30.291Z","excerpt":"","githubsync":"","hidden":false,"isReference":false,"link_external":false,"link_url":"","order":13,"parentDoc":null,"project":"573f1056804f901700a9e07b","slug":"storetransactions","sync_unique":"","title":"storeTransactions","type":"post","updates":[],"user":"573f104a176bea2b000e9699","version":"5809cdde8a22912500ad3252","childrenPages":[]}

poststoreTransactions


Body Params

command:
required
stringbroadcastTransactions
trytes:
required
array of strings
List of raw data of transactions to be rebroadcast.
Store transactions into the local storage. The trytes to be used for this call are returned by `attachToTangle`.

Definition

{{ api_url }}{{ page_api_url }}

Examples


Result Format



Store transactions into the local storage. The trytes to be used for this call are returned by `attachToTangle`.