diff --git a/.gitbook/assets/lto_token_bridge.jpg b/.gitbook/assets/lto_token_bridge.jpg new file mode 100644 index 0000000..b46d0c5 Binary files /dev/null and b/.gitbook/assets/lto_token_bridge.jpg differ diff --git a/.gitbook/assets/lto_token_import_ps.jpg b/.gitbook/assets/lto_token_import_ps.jpg new file mode 100644 index 0000000..b3c10d5 Binary files /dev/null and b/.gitbook/assets/lto_token_import_ps.jpg differ diff --git a/.gitbook/assets/screen-shot-2021-06-01-at-16.06.39.png b/.gitbook/assets/screen-shot-2021-06-01-at-16.06.39.png new file mode 100644 index 0000000..9783a8d Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-01-at-16.06.39.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-01-at-16.11.37.png b/.gitbook/assets/screen-shot-2021-06-01-at-16.11.37.png new file mode 100644 index 0000000..d0695d9 Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-01-at-16.11.37.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-01-at-16.23.06.png b/.gitbook/assets/screen-shot-2021-06-01-at-16.23.06.png new file mode 100644 index 0000000..aa49cac Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-01-at-16.23.06.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-01-at-16.29.59.png b/.gitbook/assets/screen-shot-2021-06-01-at-16.29.59.png new file mode 100644 index 0000000..1d06baf Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-01-at-16.29.59.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-01-at-17.15.00.png b/.gitbook/assets/screen-shot-2021-06-01-at-17.15.00.png new file mode 100644 index 0000000..ba0e4e5 Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-01-at-17.15.00.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-01-at-17.42.25.png b/.gitbook/assets/screen-shot-2021-06-01-at-17.42.25.png new file mode 100644 index 0000000..a02ff9c Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-01-at-17.42.25.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-01-at-17.45.19.png b/.gitbook/assets/screen-shot-2021-06-01-at-17.45.19.png new file mode 100644 index 0000000..a0df7fa Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-01-at-17.45.19.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-01-at-17.48.14.png b/.gitbook/assets/screen-shot-2021-06-01-at-17.48.14.png new file mode 100644 index 0000000..c2a2479 Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-01-at-17.48.14.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-01-at-17.48.40.png b/.gitbook/assets/screen-shot-2021-06-01-at-17.48.40.png new file mode 100644 index 0000000..c7e539a Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-01-at-17.48.40.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-01-at-17.49.01.png b/.gitbook/assets/screen-shot-2021-06-01-at-17.49.01.png new file mode 100644 index 0000000..5c010f6 Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-01-at-17.49.01.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-01-at-17.49.55.png b/.gitbook/assets/screen-shot-2021-06-01-at-17.49.55.png new file mode 100644 index 0000000..7950f7a Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-01-at-17.49.55.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-01-at-19.32.36.png b/.gitbook/assets/screen-shot-2021-06-01-at-19.32.36.png new file mode 100644 index 0000000..6e3a734 Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-01-at-19.32.36.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-03-at-21.01.51.png b/.gitbook/assets/screen-shot-2021-06-03-at-21.01.51.png new file mode 100644 index 0000000..c403e89 Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-03-at-21.01.51.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-03-at-21.05.02.png b/.gitbook/assets/screen-shot-2021-06-03-at-21.05.02.png new file mode 100644 index 0000000..4db577a Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-03-at-21.05.02.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-03-at-21.07.15.png b/.gitbook/assets/screen-shot-2021-06-03-at-21.07.15.png new file mode 100644 index 0000000..1174b12 Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-03-at-21.07.15.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-04-at-10.14.36.png b/.gitbook/assets/screen-shot-2021-06-04-at-10.14.36.png new file mode 100644 index 0000000..feb9c29 Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-04-at-10.14.36.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-04-at-10.16.19.png b/.gitbook/assets/screen-shot-2021-06-04-at-10.16.19.png new file mode 100644 index 0000000..ea3efc8 Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-04-at-10.16.19.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-04-at-10.39.06.png b/.gitbook/assets/screen-shot-2021-06-04-at-10.39.06.png new file mode 100644 index 0000000..b964bf4 Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-04-at-10.39.06.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-04-at-10.59.06.png b/.gitbook/assets/screen-shot-2021-06-04-at-10.59.06.png new file mode 100644 index 0000000..faf4349 Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-04-at-10.59.06.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-04-at-11.00.49.png b/.gitbook/assets/screen-shot-2021-06-04-at-11.00.49.png new file mode 100644 index 0000000..8a86fb9 Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-04-at-11.00.49.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-04-at-11.05.01.png b/.gitbook/assets/screen-shot-2021-06-04-at-11.05.01.png new file mode 100644 index 0000000..a3ba83b Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-04-at-11.05.01.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-04-at-15.35.53.png b/.gitbook/assets/screen-shot-2021-06-04-at-15.35.53.png new file mode 100644 index 0000000..c75de5f Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-04-at-15.35.53.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-04-at-15.50.03.png b/.gitbook/assets/screen-shot-2021-06-04-at-15.50.03.png new file mode 100644 index 0000000..f1b8353 Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-04-at-15.50.03.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-05-at-10.02.19.png b/.gitbook/assets/screen-shot-2021-06-05-at-10.02.19.png new file mode 100644 index 0000000..26a85ea Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-05-at-10.02.19.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-05-at-10.03.25.png b/.gitbook/assets/screen-shot-2021-06-05-at-10.03.25.png new file mode 100644 index 0000000..7cad93c Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-05-at-10.03.25.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-05-at-10.34.35.png b/.gitbook/assets/screen-shot-2021-06-05-at-10.34.35.png new file mode 100644 index 0000000..a8c0cbe Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-05-at-10.34.35.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-05-at-10.35.15.png b/.gitbook/assets/screen-shot-2021-06-05-at-10.35.15.png new file mode 100644 index 0000000..d7c8143 Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-05-at-10.35.15.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-05-at-16.27.47.png b/.gitbook/assets/screen-shot-2021-06-05-at-16.27.47.png new file mode 100644 index 0000000..c1fdb0c Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-05-at-16.27.47.png differ diff --git a/.gitbook/assets/screen-shot-2021-06-05-at-16.28.38.png b/.gitbook/assets/screen-shot-2021-06-05-at-16.28.38.png new file mode 100644 index 0000000..8d1e5ac Binary files /dev/null and b/.gitbook/assets/screen-shot-2021-06-05-at-16.28.38.png differ diff --git a/.gitbook/assets/screenshot-www.ostechnix.com-2019.05.07-00-34-49 (1).png b/.gitbook/assets/screenshot-www.ostechnix.com-2019.05.07-00-34-49 (1).png new file mode 100644 index 0000000..68e5afa Binary files /dev/null and b/.gitbook/assets/screenshot-www.ostechnix.com-2019.05.07-00-34-49 (1).png differ diff --git a/.gitbook/assets/screenshot_20210528-225936-2.png b/.gitbook/assets/screenshot_20210528-225936-2.png new file mode 100644 index 0000000..d2996c9 Binary files /dev/null and b/.gitbook/assets/screenshot_20210528-225936-2.png differ diff --git a/.gitbook/assets/screenshot_20210530-222809.png b/.gitbook/assets/screenshot_20210530-222809.png new file mode 100644 index 0000000..3dbc887 Binary files /dev/null and b/.gitbook/assets/screenshot_20210530-222809.png differ diff --git a/.gitbook/assets/union_amount_buy (1).pdf b/.gitbook/assets/union_amount_buy (1).pdf new file mode 100644 index 0000000..d3f9b08 Binary files /dev/null and b/.gitbook/assets/union_amount_buy (1).pdf differ diff --git a/.gitbook/assets/union_amount_buy.pdf b/.gitbook/assets/union_amount_buy.pdf new file mode 100644 index 0000000..d3f9b08 Binary files /dev/null and b/.gitbook/assets/union_amount_buy.pdf differ diff --git a/.gitbook/assets/union_result.jpg b/.gitbook/assets/union_result.jpg new file mode 100644 index 0000000..2ab3d31 Binary files /dev/null and b/.gitbook/assets/union_result.jpg differ diff --git a/.gitbook/assets/uniswap_add_lto.jpg b/.gitbook/assets/uniswap_add_lto.jpg new file mode 100644 index 0000000..4baec29 Binary files /dev/null and b/.gitbook/assets/uniswap_add_lto.jpg differ diff --git a/.gitbook/assets/walletoverview.jpg b/.gitbook/assets/walletoverview.jpg new file mode 100644 index 0000000..f39b32b Binary files /dev/null and b/.gitbook/assets/walletoverview.jpg differ diff --git a/.gitbook/assets/withdrawal.jpg b/.gitbook/assets/withdrawal.jpg new file mode 100644 index 0000000..7cd3bb2 Binary files /dev/null and b/.gitbook/assets/withdrawal.jpg differ diff --git a/SUMMARY.md b/SUMMARY.md index 6067552..ad358f4 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -15,53 +15,50 @@ ## Running a node ---- - -* [Public node](public-node-1/README.md) - * [Installation Guide](public-node-1/installation-guide/README.md) - * [Mainnet & Testnet](public-node-1/installation-guide/lto_mainnet.md) - * [Requirements](public-node-1/installation-guide/requirements.md) - * [Configuration](public-node-1/installation-guide/configuration.md) - * [\(Virtual\) Machine](public-node-1/installation-guide/virtual_machine.md) - * [AWS Elastic Beanstalk](public-node-1/installation-guide/aws_elastic_beanstalk.md) - * [Troubleshooting FAQ](public-node-1/installation-guide/troubleshooting-faq.md) - * [Cloud installation](public-node-1/cloud/README.md) - * [Prepare: Setup your wallet](public-node-1/cloud/prepare-setup-your-wallet.md) - * [Node: Alibaba Cloud](public-node-1/cloud/node-alibaba-cloud.md) - * [Node: AWS Elastic Beanstalk](public-node-1/cloud/node-aws-elastic-beanstalk.md) - * [Node: Google Cloud](public-node-1/cloud/node-google-cloud.md) - * [Node: IBM Cloud](public-node-1/cloud/node-ibm-cloud.md) - * [Node: Microsoft Azure](public-node-1/cloud/node-microsoft-azure.md) - * [Node: OKD \(OpenShift\)](public-node-1/cloud/node-okd-openshift.md) - * [Node: Raspberry Pi \(Expert\)](public-node-1/cloud/node-raspberry-pi-expert.md) - * [Node: Ubuntu Linux with Container](public-node-1/cloud/node-ubuntu-linux-with-container.md) - * [Node: Windows with Container](public-node-1/cloud/node-windows-with-container.md) - * [Optional: Nginx reverse proxy](public-node-1/cloud/optional-nginx-reverse-proxy.md) - * [REST API](public-node-1/rest-api/README.md) - * [Address](public-node-1/rest-api/address.md) - * [Lease Transactions](public-node-1/rest-api/lease_transactions.md) - * [Peers](public-node-1/rest-api/peers.md) - * [Blocks](public-node-1/rest-api/blocks.md) - * [Utils](public-node-1/rest-api/utils.md) - * [Example Transactions](public-node-1/rest-api/example_transactions.md) - * [FAQ](public-node-1/rest-api/faq.md) - * [Security Notes](public-node-1/security-notes.md) - * [FAQ](public-node-1/faq.md) -* [Anchoring node](anchoring-node/README.md) - * [Installation Guide](anchoring-node/installation-guide/README.md) - * [MacOS](anchoring-node/installation-guide/macos.md) - * [Windows](anchoring-node/installation-guide/windows.md) - * [Ubuntu Linux](anchoring-node/installation-guide/linux.md) - * [REST API](anchoring-node/rest-api.md) -* [Workflow node](workflow-node/README.md) - * [Installation Guide](workflow-node/installation-guide/README.md) - * [MacOS](workflow-node/installation-guide/macos.md) - * [Windows](workflow-node/installation-guide/windows.md) - * [Ubuntu Linux](workflow-node/installation-guide/ubuntu-linux.md) - * [REST API](workflow-node/rest-api/README.md) - * [Event Chain service](workflow-node/rest-api/event-chain-service.md) - * [Workflow Engine](workflow-node/rest-api/workflow-engine.md) - * [API client libraries](workflow-node/rest-api/api-client-libraries.md) +* [Public node](running-a-node/public-node/README.md) + * [Installation Guide](running-a-node/public-node/installation-guide/README.md) + * [Mainnet & Testnet](running-a-node/public-node/installation-guide/lto_mainnet.md) + * [Requirements](running-a-node/public-node/installation-guide/requirements.md) + * [Configuration](running-a-node/public-node/installation-guide/configuration.md) + * [\(Virtual\) Machine](running-a-node/public-node/installation-guide/virtual_machine.md) + * [Troubleshooting FAQ](running-a-node/public-node/installation-guide/troubleshooting-faq.md) + * [Cloud installation](running-a-node/public-node/cloud/README.md) + * [Prepare: Setup your wallet](running-a-node/public-node/cloud/prepare-setup-your-wallet.md) + * [Node: Alibaba Cloud](running-a-node/public-node/cloud/node-alibaba-cloud.md) + * [Node: AWS Elastic Beanstalk](running-a-node/public-node/cloud/node-aws-elastic-beanstalk.md) + * [Node: Google Cloud](running-a-node/public-node/cloud/node-google-cloud.md) + * [Node: IBM Cloud](running-a-node/public-node/cloud/node-ibm-cloud.md) + * [Node: Microsoft Azure](running-a-node/public-node/cloud/node-microsoft-azure.md) + * [Node: OKD \(OpenShift\)](running-a-node/public-node/cloud/node-okd-openshift.md) + * [Node: Raspberry Pi \(Expert\)](running-a-node/public-node/cloud/node-raspberry-pi-expert.md) + * [Node: Ubuntu Linux with Container](running-a-node/public-node/cloud/node-ubuntu-linux-with-container.md) + * [Node: Windows with Container](running-a-node/public-node/cloud/node-windows-with-container.md) + * [Optional: Nginx reverse proxy](running-a-node/public-node/cloud/optional-nginx-reverse-proxy.md) + * [REST API](running-a-node/public-node/rest-api/README.md) + * [Address](running-a-node/public-node/rest-api/address.md) + * [Lease Transactions](running-a-node/public-node/rest-api/lease_transactions.md) + * [Peers](running-a-node/public-node/rest-api/peers.md) + * [Blocks](running-a-node/public-node/rest-api/blocks.md) + * [Utils](running-a-node/public-node/rest-api/utils.md) + * [Example Transactions](running-a-node/public-node/rest-api/example_transactions.md) + * [FAQ](running-a-node/public-node/rest-api/faq.md) + * [Security Notes](running-a-node/public-node/security-notes.md) + * [FAQ](running-a-node/public-node/faq.md) +* [Anchoring node](running-a-node/anchoring-node/README.md) + * [Installation Guide](running-a-node/anchoring-node/installation-guide/README.md) + * [MacOS](running-a-node/anchoring-node/installation-guide/macos.md) + * [Windows](running-a-node/anchoring-node/installation-guide/windows.md) + * [Ubuntu Linux](running-a-node/anchoring-node/installation-guide/linux.md) + * [REST API](running-a-node/anchoring-node/rest-api.md) +* [Workflow node](running-a-node/workflow-node/README.md) + * [Installation Guide](running-a-node/workflow-node/installation-guide/README.md) + * [MacOS](running-a-node/workflow-node/installation-guide/macos.md) + * [Windows](running-a-node/workflow-node/installation-guide/windows.md) + * [Ubuntu Linux](running-a-node/workflow-node/installation-guide/ubuntu-linux.md) + * [REST API](running-a-node/workflow-node/rest-api/README.md) + * [Event Chain service](running-a-node/workflow-node/rest-api/event-chain-service.md) + * [Workflow Engine](running-a-node/workflow-node/rest-api/workflow-engine.md) + * [API client libraries](running-a-node/workflow-node/rest-api/api-client-libraries.md) ## Libraries diff --git a/protocol/private/README.md b/protocol/private/README.md index 813c2e5..ad38bf7 100644 --- a/protocol/private/README.md +++ b/protocol/private/README.md @@ -1,2 +1,14 @@ # Private layer +{% hint style="danger" %} +**Documentation about the private layer is incomplete.** + +The private layer is undergoing break changes to make it compatible with DIDs and to make it easier to use it without the workflow engine / live contracts. + +If you're interested in using it for decentralized workflows, please visit [https://letsflow.io](https://letsflow.io). + +For other uses, please contact [@ArnoldDaniels on Telegram](https://t.me/ArnoldDaniels). +{% endhint %} + + + diff --git a/protocol/public/transactions/README.md b/protocol/public/transactions/README.md index 80cd399..c89bb3d 100644 --- a/protocol/public/transactions/README.md +++ b/protocol/public/transactions/README.md @@ -4,9 +4,10 @@ | :--- | :--- | | 1 | Genesis Transaction | | 4 | [Transfer Transaction](transfer-transaction.md) | -| 8 | [Lease Transaction](../../../public-node-1/rest-api/lease_transactions.md) | +| 8 | [Lease Transaction](../../../running-a-node/public-node/rest-api/lease_transactions.md) | | 9 | [Cancel Lease Transaction](cancel-lease-transaction.md) | | 11 | [Mass Transfer Transaction](mass_transfer_transaction.md) | +| 13 | Set Script Transaction | | 15 | [Anchor Transaction](anchor.md) | | 16 | [Association Transaction](association.md) | | 17 | [Revoke Association Transaction](revoke-association.md) | @@ -32,7 +33,7 @@ Transaction fees act as a reward for the miner. Because these are the only rewar The absolute minimum fees are enforced by the consensus model. The current fees are configured by the nodes as the minimum acceptable fee. -Nodes will reject broadcasting transactions that offer a lower fee than configured. However, when running your own node, it's possible to offer any fee equal to or above the minimum. Mining nodes will not process transaction with a fee that's lower than configured, so likely these transaction will stay in the utx pool until your own node is able to mine or until they time out \(after 90 minutes\). +Nodes will reject broadcasting transactions that offer a lower fee than configured. However, when running your own node, it's possible to offer any fee equal to or above the minimum. Mining nodes will not process transactions with a fee that's lower than configured, so likely these transactions will stay in the utx pool until your own node is able to mine or until they time out \(after 90 minutes\). ### Fee distribution @@ -42,11 +43,11 @@ For more information see the [NG documentation on Waves.](https://docs.waves.tec ### Sponsored accounts -Normally the fee is automatically deducted from the sender's address. With sponsored accounts it's possible for a third party to pay for all transaction fees of an account. +Normally the fee is automatically deducted from the sender's address. With sponsored accounts, it's possible for a third party to pay for all transaction fees of an account. -If the sponsor has unsufficient funds, the fee is deducted from the sender's account. This prevents a third party to disable an account through a dummy sponsorship. +If the sponsor has insufficient funds, the fee is deducted from the sender's account. This prevents a third party to disable an account through a dummy sponsorship. -If an account has multiple sponsors, it works as last in first out. If the most recently added sponsor has unsufficient funds, the next sponsor is tried, this continues until the sender's account is charged for the fee. +If an account has multiple sponsors, it works as last in first out. If the most recently added sponsor has insufficient funds, the next sponsor is tried, this continues until the sender's account is charged for the fee. ## Signing a transaction @@ -56,7 +57,9 @@ The process is as follows: create the special bytes for signing \(for transactio For the validation of signature is enough signature bytes, signed object bytes and the public key. -Do not forget that there are many valid \(not unique!\) signatures for a one array of bytes \(block or transaction\). Also you should not assume that the id of block or transaction is unique. The collision can occur one day! They have already taken place for some weak keys. +{% hint style="warning" %} +There are many valid \(not unique!\) signatures for the same array of bytes \(block or transaction\). +{% endhint %} ### Example @@ -103,7 +106,7 @@ _**Total transaction bytes with signature:**_ In order to support Smart Accounts, transactions have the signature field replaced with an array of so called "proofs". Proofs are an alternative way to authorize the transaction that is more flexible than signatures and enables smart contracts such as multisig and atomic swap. Each proof is a Base58 encoded byte string and can be a signature, a secret, or anything else – the semantics of a proof is dictated by the smart contract that interprets it. There can be up to 8 proofs at most 64 bytes each. -By default only one proof is used, which must be the transaction signature by the sender. It should be the very first element in the proofs array, while all the other elements are ignored. The JSON looks like +By default, only one proof is used, which must be the transaction signature by the sender. It should be the very first element in the proofs array, while all the other elements are ignored. The JSON looks like `"proofs": [ "21jgWvYq6XZuke2bLE8bQEbdXJEk..." ]` diff --git a/protocol/public/transactions/anchor.md b/protocol/public/transactions/anchor.md index 94c42f2..acae3eb 100644 --- a/protocol/public/transactions/anchor.md +++ b/protocol/public/transactions/anchor.md @@ -34,7 +34,7 @@ The JSON schema suggests that multiple anchors per transaction are supported, bu {% hint style="info" %} * `id` and `height` should be omitted when broadcasting. These fields are set by the node. * Binary strings are base58 encoded. -* `timestamp` is in microseconds since epoch. +* `timestamp` is in milliseconds since epoch. * `fee` includes 8 digits, so `LTO * 10^8` {% endhint %} diff --git a/protocol/public/transactions/association.md b/protocol/public/transactions/association.md index dc8ddd1..0af2a6d 100644 --- a/protocol/public/transactions/association.md +++ b/protocol/public/transactions/association.md @@ -31,7 +31,7 @@ description: >- * `id` and `height` should be omitted when broadcasting. These fields are set by the node. * `hash` is optional. * Binary strings are base58 encoded. -* `timestamp` is in microseconds since epoch. +* `timestamp` is in milliseconds since epoch. * `fee` includes 8 digits, so `LTO * 10^8` {% endhint %} diff --git a/protocol/public/transactions/cancel-lease-transaction.md b/protocol/public/transactions/cancel-lease-transaction.md index 000f108..19bb28a 100644 --- a/protocol/public/transactions/cancel-lease-transaction.md +++ b/protocol/public/transactions/cancel-lease-transaction.md @@ -9,14 +9,26 @@ To cancel leasing, you need the id of the transaction that started the leasing. ### JSON ```javascript -TODO +{ + "type": 19, + "version": 1, + "recipient": "3N3Cn2pYtqzj7N9pviSesNe8KG9Cmb718Y1", + "id": "BLMA4vkfe2S5UFHnoPyTh8SJmpTA1deh5SnWk1bdfjhq", + "sender": "3MtHYnCkd3oFZr21yb2vEdngcSGXvuNNCq2", + "senderPublicKey": "4EcSxUkMxqxBEBUBL2oKz3ARVsbyRJTivWpNrYQGdguz", + "timestamp": 1519862400, + "fee": 500000000, + "proofs": [ + "2AKUBja93hF8AC2ee21m9AtedomXZNQG5J3FZMU85avjKF9B8CL45RWyXkXEeYb13r1AhpSzRvcudye39xggtDHv" + ] +} ``` {% hint style="info" %} * `id` and `height` should be omitted when broadcasting. These fields are set by the node. * `chainId` can be obtained by taking the 2nd byte from the sender or recipient address. * Binary strings are base58 encoded. -* `timestamp` is in microseconds since epoch. +* `timestamp` is in milliseconds since epoch. * `fee`includes 8 digits, so `LTO * 10^8` {% endhint %} diff --git a/protocol/public/transactions/cancel-sponsor.md b/protocol/public/transactions/cancel-sponsor.md index 40c3e11..31de8a4 100644 --- a/protocol/public/transactions/cancel-sponsor.md +++ b/protocol/public/transactions/cancel-sponsor.md @@ -26,7 +26,7 @@ description: Stop sponsoring an account {% hint style="info" %} * `id` and `height` should be omitted when broadcasting. These fields are set by the node. * Binary strings are base58 encoded. -* `timestamp` is in microseconds since epoch. +* `timestamp` is in milliseconds since epoch. * `fee` includes 8 digits, so `LTO * 10^8` {% endhint %} diff --git a/protocol/public/transactions/lease-transaction.md b/protocol/public/transactions/lease-transaction.md index ed74b72..08df98c 100644 --- a/protocol/public/transactions/lease-transaction.md +++ b/protocol/public/transactions/lease-transaction.md @@ -27,7 +27,7 @@ description: The lease transaction leases an amount of tokens to a node for stak {% hint style="info" %} * `id` and `height` should be omitted when broadcasting. These fields are set by the node. * Binary strings are base58 encoded. -* `timestamp` is in microseconds since epoch. +* `timestamp` is in milliseconds since epoch. * `fee` and `amount` include 8 digits, so `LTO * 10^8` {% endhint %} diff --git a/protocol/public/transactions/revoke-association.md b/protocol/public/transactions/revoke-association.md index 35be8f2..bc5356b 100644 --- a/protocol/public/transactions/revoke-association.md +++ b/protocol/public/transactions/revoke-association.md @@ -37,7 +37,7 @@ To revoke an association, the `sender`, `assocationType`, `party`, and `hash` ne * `id` and `height` should be omitted when broadcasting. These fields are set by the node. * `hash` is optional. * Binary strings are base58 encoded. -* `timestamp` is in microseconds since epoch. +* `timestamp` is in milliseconds since epoch. * `fee` includes 8 digits, so `LTO * 10^8` {% endhint %} diff --git a/protocol/public/transactions/sponsor.md b/protocol/public/transactions/sponsor.md index 79a0dec..328e0b2 100644 --- a/protocol/public/transactions/sponsor.md +++ b/protocol/public/transactions/sponsor.md @@ -34,7 +34,7 @@ See [transaction fees with sponsored accounts](./#transaction-fees) for more inf {% hint style="info" %} * `id` and `height` should be omitted when broadcasting. These fields are set by the node. * Binary strings are base58 encoded. -* `timestamp` is in microseconds since epoch. +* `timestamp` is in milliseconds since epoch. * `fee` includes 8 digits, so `LTO * 10^8` {% endhint %} diff --git a/protocol/public/transactions/transfer-transaction.md b/protocol/public/transactions/transfer-transaction.md index ea752f3..77c65b2 100644 --- a/protocol/public/transactions/transfer-transaction.md +++ b/protocol/public/transactions/transfer-transaction.md @@ -30,7 +30,7 @@ description: >- {% hint style="info" %} * `id` and `height` should be omitted when broadcasting. These fields are set by the node. * Binary strings \(including `attachment`\) are base58 encoded. -* `timestamp` is in microseconds since epoch. +* `timestamp` is in milliseconds since epoch. * `fee` and `amount` include 8 digits, so `LTO * 10^8` {% endhint %} diff --git a/public-node-1/installation-guide/aws_elastic_beanstalk.md b/public-node-1/installation-guide/aws_elastic_beanstalk.md deleted file mode 100644 index 43ca810..0000000 --- a/public-node-1/installation-guide/aws_elastic_beanstalk.md +++ /dev/null @@ -1,27 +0,0 @@ -# AWS Elastic Beanstalk - -## Run in AWS Elastic Beanstalk - -Running the node using AWS Elastic Beanstalk \(EB\) it will only install the services on a machine. This node includes a Redis database, however it is highly recommended to use AWS Elastic Cache. The are 2 EB configuration files included. - -1. Dockerrun.elastic-cache.aws.json -2. Dockerrun.redis.aws.json - -Take to following steps to install the node on EB: - -1. Choose if you wish to run the node with or without redis. Rename the correct config file to Dockerrun.aws.json -2. Zip the Dockerrun.aws.json file -3. Create an application -4. Inside the created application, create an environment: `webserver environment` -5. Select following settings: - * Platform: Multi-container Docker - * Upload the zipped file -6. Configure more options -7. Instances -> Instance type: Choose an instance with atleast 2 gb of memory \(E.g. t2.small\) -8. Software -> Environment properties: - * Name: `LTO_WALLET_PASSWORD`, Value: `Your wallet password` - * Name: `LTO_WALLET_SEED` or `LTO_WALLET_SEED_BASE58`, Value: `Wallet Seed` - * Name: `ANCHOR_REDIS_URL`, Value: `""` \(If you are running with elastic cache\) - -Now your node is should good to go! - diff --git a/public-node/installation-guide/configuration.md b/public-node/installation-guide/configuration.md deleted file mode 100644 index a35001f..0000000 --- a/public-node/installation-guide/configuration.md +++ /dev/null @@ -1,20 +0,0 @@ -# Configuration - -**Configuration** - -Before you run the node you will need to configure a few environment variables per service: - -**Public Node Container** - -1. LTO\_WALLET\_SEED: The seed of your wallet. Your account will need at least 1000 LTO to be able to start mining. -2. LTO\_WALLET\_SEED\_BASE58: The seed of your wallet but then base58 encoded. This will overwrite the LTO\_WALLET\_SEED -3. LTO\_WALLET\_PASSWORD: This password is used to encrypt your seed on disk. -4. LTO\_API\_KEY: Choose an api-key this need to be same in the `Anchor service` so that is able to communicate with the public node. -5. LTO\_NETWORK: Choose the network you want to connect your node to. The options are: `MAINNET` and `TESTNET` \(default is`MAINNET`\). - -For other options check out: [Public Node on Github](https://github.com/ltonetwork/lto-public-node) - -**Anchor service** - -1. LTO\_API\_KEY: The same ApiKey as was set in the `Public Node`. - diff --git a/public-node/installation-guide/lto_mainnet.md b/public-node/installation-guide/lto_mainnet.md deleted file mode 100644 index a2e892c..0000000 --- a/public-node/installation-guide/lto_mainnet.md +++ /dev/null @@ -1,24 +0,0 @@ -# Mainnet & Testnet - -_**Mainnet**_ – short for main network – is the original and functional blockchain where actual transactions take place in the distributed ledger and the native cryptocurrency possesses real economic value. In other words, the mainnet refers to the actual open-sourced blockchain itself that is publicly verifiable. - -The mainnet carries out the functionality of executing real transactions within the network which is stored on the blockchain and is referred to as the ‘end product’ that is open for the public to use. Each transaction executed on the blockchain requires participants to pay a transaction fee \(payable in the native coin\) so as to incentivize miners to validate the transactions and prevent network spamming. For their hard work, miners will be rewarded with the transaction fees paid by the participants. - -You can access LTO mainnet via a [node](https://github.com/ltonetwork/lto-public-node). It's integrated with the GUI in the LTO web-wallet, allowing anyone to use it without any technical knowledge or blockchain downloads. - -_**Testnet**_ – short for test network – is an alternative LTO blockchain, to be used _**for testing**_. Testnet LTO tokens are separate and distinct from actual LTO tokens, and are never supposed to have any value. This allows application developers or testers to experiment without having to use real LTO or worrying about breaking the main LTO chain. - -Testnet is used a lot for developing purposes, assume you are building a new feature and it requires you to send and receive LTO and you don't have any real LTO or you don't want to waste with mistakes, here you use test network \(testnet\). - -## Mainnet vs Testnet - -A mainnet and a testnet are two separate networks that operate independently from each other. - -| | Mainnet | Testnet | -| :--- | :--- | :--- | -| Purpose | LTO Functional blockchain | LTO Testing environment | -| Transactions | LTO real transactions stored on actual blockchain | Fake transactions | -| LTO Tokens | Posses real value | No monetary value | -| Transactions frequency | High | Low | -| Mining | Possible to earn rewards | Not possible | - diff --git a/public-node/installation-guide/requirements.md b/public-node/installation-guide/requirements.md deleted file mode 100644 index bbed017..0000000 --- a/public-node/installation-guide/requirements.md +++ /dev/null @@ -1,19 +0,0 @@ -# Requirements - -## Requirements - -* [Docker](https://www.docker.com/) -* [Docker compose >= v3.0](https://docs.docker.com/compose/) - -_You can obtain the latest version of_ `docker-compose` _using pip._ - -## System requirements - -**The Minimal requirements are:** - -1 vCPU 4Gb RAM 30Gb SSD - -**Recommended configuration is:** - -2+ vCPU 8Gb RAM +30Gb SSD - diff --git a/public-node/installation-guide/troubleshooting-faq.md b/public-node/installation-guide/troubleshooting-faq.md deleted file mode 100644 index ab32ae1..0000000 --- a/public-node/installation-guide/troubleshooting-faq.md +++ /dev/null @@ -1,23 +0,0 @@ -# Troubleshooting FAQ - -## 1. My public node seems to be up and running but when checking the logs from time to time I get a message of this type: - -```bash -Error mining Block: BlockAppendError(Block is not a child of the last block,Block(4Bk5FxnuKMPqZeh4Rfyn1pE6UyNYfznQd7MtUhKtNug15WoxvhkjtCeo4AVMAW2AEXFw2DMfxd1MZ3G71SiJdnUC -> 245bVsJ..., txs=0, features=Set())) -``` - -When this happens, your node most likely went out-of-sync, in order to fix it you should follow the next steps: - -```bash -# stop your node (if spinned up by docker compose) -$ docker-compose down - -# sync your node's clock with NTP server -$ sudo service ntp stop -$ sudo ntpdate pool.ntp.org -$ sudo service ntp start - -# spin up your node again -$ docker-compose up -d -``` - diff --git a/public-node/installation-guide/virtual_machine.md b/public-node/installation-guide/virtual_machine.md deleted file mode 100644 index e9d4782..0000000 --- a/public-node/installation-guide/virtual_machine.md +++ /dev/null @@ -1,19 +0,0 @@ -# \(Virtual\) Machine - -## Run on a \(virtual\) machine - -```text -docker-compose up -``` - -Docker compose is configured to run the node on a local machine on port 80. If you would like to run the node on different port you will need to change the `docker-compose.yml` to - -```text -ports: - - :80 -``` - -This way the node will be accessible via port 80. - -Or you can use a reverse proxy like NGINX to make the node publicly available. This is highly recommended. - diff --git a/public-node/protocol/transactions/cancel-lease-transaction.md b/public-node/protocol/transactions/cancel-lease-transaction.md index 999bde5..a9e5b5f 100644 --- a/public-node/protocol/transactions/cancel-lease-transaction.md +++ b/public-node/protocol/transactions/cancel-lease-transaction.md @@ -16,7 +16,7 @@ TODO * `id` and `height` should be omitted when broadcasting. These fields are set by the node. * `chainId` can be obtained by taking the 2nd byte from the sender or recipient address. * Binary strings are base58 encoded. -* `timestamp` is in microseconds since epoch. +* `timestamp` is in milliseconds since epoch. * `fee`includes 8 digits, so `LTO * 10^8` {% endhint %} diff --git a/public-node/protocol/transactions/lease-transaction.md b/public-node/protocol/transactions/lease-transaction.md index 75ec75a..4cd1b2f 100644 --- a/public-node/protocol/transactions/lease-transaction.md +++ b/public-node/protocol/transactions/lease-transaction.md @@ -27,7 +27,7 @@ description: The lease transaction leases an amount of tokens to a node for stak {% hint style="info" %} * `id` and `height` should be omitted when broadcasting. These fields are set by the node. * Binary strings are base58 encoded. -* `timestamp` is in microseconds since epoch. +* `timestamp` is in milliseconds since epoch. * `fee` and `amount` include 8 digits, so `LTO * 10^8` {% endhint %} diff --git a/public-node/protocol/transactions/transfer-transaction.md b/public-node/protocol/transactions/transfer-transaction.md index 9340d07..ac98408 100644 --- a/public-node/protocol/transactions/transfer-transaction.md +++ b/public-node/protocol/transactions/transfer-transaction.md @@ -30,7 +30,7 @@ description: >- {% hint style="info" %} * `id` and `height` should be omitted when broadcasting. These fields are set by the node. * Binary strings \(including `attachment`\) are base58 encoded. -* `timestamp` is in microseconds since epoch. +* `timestamp` is in milliseconds since epoch. * `fee` and `amount` include 8 digits, so `LTO * 10^8` {% endhint %} diff --git a/public-node/rest-api/README.md b/public-node/rest-api/README.md deleted file mode 100644 index 1617c77..0000000 --- a/public-node/rest-api/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# REST API - -## Structure - -1. [Address](address.md) -2. [Transactions](lease_transactions.md) -3. [Peers](peers.md) -4. [Blocks](blocks.md) -5. [Utils](utils.md) -6. [Example Transactions](example_transactions.md) - -## LTO Node Rest API - -* Our open source client application uses the same API. -* You can explore it and implement any kind of client application yourself. -* Our nodes expose the REST API allowing access to all blockchain data \(transaction history, balances, etc.\) as well as operations for creating a new transaction — it’s easy to make a transfer, exchange, issue of tokens or lease fund transactions programmatically. - -## The Web Interface to LTO Full Node API - -For The Web Interface to the LTO Network Full Node API, Please check [**Swagger**](https://nodes.lto.network) on Mainnet. On Testnet: [_**TestNode1**_](https://testnet.lto.network) - diff --git a/public-node/rest-api/address.md b/public-node/rest-api/address.md deleted file mode 100644 index b080688..0000000 --- a/public-node/rest-api/address.md +++ /dev/null @@ -1,145 +0,0 @@ -# Address - -## Address - -{% api-method method="get" host="https://node.testnet.ltonetwork.com" path="/addresses" %} -{% api-method-summary %} -/addresses -{% endapi-method-summary %} - -{% api-method-description %} -Get list of all accounts addresses in the node's wallet. -{% endapi-method-description %} - -{% api-method-spec %} -{% api-method-request %} - -{% api-method-response %} -{% api-method-response-example httpCode=200 %} -{% api-method-response-example-description %} - -{% endapi-method-response-example-description %} - -``` -[ - "3NBVqYXrapgJP9atQccdBPAgJPwHDKkh6A8", - "3Mx2afTZ2KbRrLNbytyzTtXukZvqEB8SkW7" -] -``` -{% endapi-method-response-example %} -{% endapi-method-response %} -{% endapi-method-spec %} -{% endapi-method %} - -\*\*\*\* - -### GET /addresses/seq/{from}/{to} - -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) - -Get list of accounts addresses with indexes at this range in the node's wallet. - -**Response:** - -```javascript -[ -"3NBVqYXrapgJP9atQccdBPAgJPwHDKkh6A8", -"3Mx2afTZ2KbRrLNbytyzTtXukZvqEB8SkW7" -] -``` - -### POST /addresses - -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) - -Generate a new account address in the wallet._Requires API\_KEY to be provided_ - -**Request params:** - -```text - "address" - account's address in Base58 format -``` - -**Response JSON example:** - -```javascript -{ - -"address": "3Mx2afTZ2KbRrLNbytyzTtXukZvqEB8SkW7" - -} -``` - -### GET /addresses/balance/details/{address} - -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) - -Get Balance details: - -```text -"address" - account's address in Base58 format -"Regular" — that's how much LTO you have, including those you leased; -"Available" — the same as regular only without LTO you leased; -"Effective" — available plus those LTO which is leased to you; -"Generating" — the minimal effective for last 1000 blocks; -``` - -**Response JSON example:** - -```javascript -{ - "address": "3P2HNUd5VUPLMQkJmctTPEeeHumiPN2GkTb", - "regular": 1498883844, - "generating": 1066926675599895, - "available": 1498883844, - "effective": 1067913688974251 -} -``` - -### GET /addresses/balance/{address} - -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) - -Get account balance in LTO in {address}: - -```text - "address" - account's address in Base58 format -``` - -**Response JSON example:** - -```javascript -{ - - "address": "3N3keodUiS8WLEw9W4BKDNxgNdUpwSnpb3K", - "confirmations": 0, - "balance": 100945889661986 - -} -``` - -### GET /addresses/balance/{address}/{confirmations} - -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) - -Get account balance in LTO by {address} after {confirmations} from now: - -```text - "address" - account's address in Base58 format - "confirmations" - N of confirmations -``` - -**Response JSON example:** - -```javascript -{ - -"address": "3N3keodUiS8WLEw9W4BKDNxgNdUpwSnpb3K", - -"confirmations": 500, - -"balance": 100945388397565 - -} -``` - diff --git a/public-node/rest-api/blocks.md b/public-node/rest-api/blocks.md deleted file mode 100644 index e6d954b..0000000 --- a/public-node/rest-api/blocks.md +++ /dev/null @@ -1,77 +0,0 @@ -# Blocks - -## GET /blocks/height - -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) - -Return the current blockchain height - -**Response JSON example:** - -```javascript -{ - "height": 7788 -} -``` - -## GET /blocks/last - -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) - -Return the last block data - -**Response JSON example:** - -```javascript -{ - "version": 2, - "timestamp": 1479313809528, - "reference": "4MLXQDbARiJDEAoy5vZ8QYh1yNnDhdGhGWkDKna8J6QXb7agVpFEi16hHBGUxxnq8x4myG4w66DR4Ze8FM5dh8Gi", - "nxtconsensus": { - "basetarget": 464, - "generationsignature": "7WUV2TufaRAyjiCPFdnAWbn2Q7Jk7nBmWbnnDXKDEeJv" - }, - "transactions": [ - { - "type": 2, - "id": "64hxaxZvB9iD1cfRf1j8KPTXs4qE7SHaDWTZKoUvgfVZotaJUtSGa5Bxi86ufAfp5ifoNAGknBqS9CpxBKG9RNVR", - "fee": 100000, - "timestamp": 1479313757194, - "signature": "64hxaxZvB9iD1cfRf1j8KPTXs4qE7SHaDWTZKoUvgfVZotaJUtSGa5Bxi86ufAfp5ifoNAGknBqS9CpxBKG9RNVR", - "sender": "3NBVqYXrapgJP9atQccdBPAgJPwHDKkh6A8", - "senderPublicKey": "CRxqEuxhdZBEHX42MU4FfyJxuHmbDBTaHMhM3Uki7pLw", - "recipient": "3N8UPtqiy322NVr1fLP7SaK1AaCU7oPaVuy", - "amount": 1000000000 - } - ], - "generator": "3N5GRqzDBhjVXnCn44baHcz2GoZy5qLxtTh", - "signature": "4ZhZdLAvaGneLU4K4b2eTgRQvbBjEZrtwo1qAhM9ar3A3weGEutbfNKM4WJ9JZnV8BXenx8JRGVNwpfxf3prGaxd", - "fee": 100000, - "blocksize": 369 -} -``` - -## GET /blocks/at/{height} - -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) - -Return block data at the given height - -## GET /blocks/seq/{from}/{to} - -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) - -Return block data at the given height range - -## GET /blocks/signature/{signature} - -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) - -Return block data by a specified Base58encoded signature - -## GET /blocks/address/{address}/{from}/{to} - -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) - -Get list of blocks generated by specified address - diff --git a/public-node/rest-api/example_transactions.md b/public-node/rest-api/example_transactions.md deleted file mode 100644 index 32447c0..0000000 --- a/public-node/rest-api/example_transactions.md +++ /dev/null @@ -1,28 +0,0 @@ -# Example Transactions - -## Example Transactions - -Listed below are examples of real transactions of each type found in _**testnet**_ and _**mainnet**_. - -### V1 transactions - -#### Testnet - -| Type ID | Transaction Type | Example Transaction V1 | -| ---: | :--- | :--- | -| 4 | Transfer | [EyzqLK5fKVCksce6spLF16hyugV3piEHNLw7Znp5bG1Y](https://testnet-explorer.lto.network/transactions/EyzqLK5fKVCksce6spLF16hyugV3piEHNLw7Znp5bG1Y) | -| 8 | Lease | [DAqM2BjnLKVNjnFEodVHcXBxTEkryLd5x8HrA3MHCoLL](https://testnet-explorer.lto.network/transactions/DAqM2BjnLKVNjnFEodVHcXBxTEkryLd5x8HrA3MHCoLL) | -| 9 | Lease Cancel | [DqYPFMqnAYpQ1RTRaYDPfLi3w1YoCQa41MXZZnyT2QNs](https://testnet-explorer.lto.network/transactions/DqYPFMqnAYpQ1RTRaYDPfLi3w1YoCQa41MXZZnyT2QNs) | -| 11 | Mass Transfer | [EyDTrj4qH2xvKkuuH7fMjTsghRtHzvZwUSPgKqJZVvLQ](https://testnet-explorer.lto.network/transactions/EyDTrj4qH2xvKkuuH7fMjTsghRtHzvZwUSPgKqJZVvLQ) | -| 12 | Data | [3JRqPv9bbn7QpMR2MGc8SmXWayb1Ba86wnybKyS3F8zh](https://testnet-explorer.lto.network/transactions/3JRqPv9bbn7QpMR2MGc8SmXWayb1Ba86wnybKyS3F8zh) | - -#### Mainnet - -| Type ID | Transaction Type | Example Transaction V1 | -| ---: | :--- | :--- | -| 4 | Transfer | [3G4gEMUoayWUtdrExTLQWJe9mpJ9pvuE4ftpzvUrDi7s](https://explorer.lto.network/transactions/3G4gEMUoayWUtdrExTLQWJe9mpJ9pvuE4ftpzvUrDi7s) | -| 8 | Lease | [HTuPcnMNPF4Qw9rAJajYR5keHcbjiACZT8LuxMVaLJJr](https://explorer.lto.network/transactions/HTuPcnMNPF4Qw9rAJajYR5keHcbjiACZT8LuxMVaLJJr) | -| 9 | Lease Cancel | [GnmQjwBCPHswbQEZsJj6DAvW4MaMYK9mk1z5FVfSx5ds](https://explorer.lto.network/transactions/GnmQjwBCPHswbQEZsJj6DAvW4MaMYK9mk1z5FVfSx5ds) | -| 11 | Mass Transfer | [5PvtLNrg1U3BnSYugLmM5YwQgr8nJBmiojVpuGPTGFNP](https://explorer.lto.network/transactions/5PvtLNrg1U3BnSYugLmM5YwQgr8nJBmiojVpuGPTGFNP) | -| 12 | Data | [DqyGw32pdjeo4wvxyGAbm4wMAPuH6V48o9r96iaGiAZZ](https://explorer.lto.network/transactions/DqyGw32pdjeo4wvxyGAbm4wMAPuH6V48o9r96iaGiAZZ) | - diff --git a/public-node/rest-api/faq.md b/public-node/rest-api/faq.md deleted file mode 100644 index fa3f2fa..0000000 --- a/public-node/rest-api/faq.md +++ /dev/null @@ -1,26 +0,0 @@ -# FAQ - -## 1. Is there actually a page where all the resources concerning nodes are mentioned ? Like all the different commands and their effects ? - -Yes, in this section [_**NODE API**_](./). - -## 2. My Digital Ocean node is fully synced. I have managed to lease 1000+ LTO to the node. How can I know if it is already mining? - -There is a method but the API key is needed: `GET /debug/minerInfo` which shows all miners who has enough generating balance to be able to generate block. - -## 3. How can you GET the LTO balance of a Wallet via API? - -1. GET /addresses/balance/details/{address} -2. GET /addresses/balance/{address} - -## 4. I am unable to connect to my nodes API endpoint after successful setup of my node when I try a get request [http://my\_server\_ip\_address:6868/addresses/balance/](http://my_server_ip_address:6868/addresses/balance/) wallet\_address it gives an error "Error: Failed sending data to the peer". - -API port is 6869 by default, make sure you have enabled it in your config. You can enable and configure your node API using the optional LTO\_ENABLE\_REST\_API and LTO\_API\_KEY environment variable. - -## 5. How can I sign a transaction with a private key using the REST API? - -There are 2 ways to sign transactions: - -1. Use a node. But that node should know the private key of your address. In other words, it should be your node, because you should never send your private key to anybody else. -2. Use libraries for different languages \(Python, C\#, JavaScript, Java\). Libraries can sign transactions with the provided private key and send to the network already signed transactions. - diff --git a/public-node/rest-api/lease_transactions.md b/public-node/rest-api/lease_transactions.md deleted file mode 100644 index 11c4507..0000000 --- a/public-node/rest-api/lease_transactions.md +++ /dev/null @@ -1,80 +0,0 @@ -# Lease Transactions - -## POST /leasing/lease - -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) - -Creates lease transaction. - -**Request params** - -```text -"sender" - Sender address, Base58-encoded -"fee" - Amount of transaction fee -"amount" - amount of leased LTO -``` - -**Request JSON example** - -```javascript - { - "sender" : "3HgqG68qfeVz5dqbyvqnxQceFaH49xmGvUS", - "fee" : 500000000, - "amount" : 500000000, - "recipient" : "address:3HQanDJhZSsSLbCjTCsMYpPvuj2ieGwKwQ9" -} -``` - -**Response JSON example** - -```javascript -{ - "type":10, - "id":"9q7X84wFuVvKqRdDQeWbtBmpsHt9SXFbvPPtUuKBVxxr", - "sender":"3MtrNP7AkTRuBhX4CBti6iT21pQpEnmHtyw", - "senderPublicKey":"G6h72icCSjdW2A89QWDb37hyXJoYKq3XuCUJY2joS3EU", - "fee":100000000, - "timestamp":46305781705234713, - "signature":"4gQyPXzJFEzMbsCd9u5n3B2WauEc4172ssyrXCL882oNa8NfNihnpKianHXrHWnZs1RzDLbQ9rcRYnSqxKWfEPJG" -} -``` - -## POST /leasing/cancel - -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) - -Creates lease cancel transaction. - -**Request params** - -```text -"sender" - Sender address, Base58-encoded -"fee" - Amount of transaction fee -"leaseId" - lease id for cancel -``` - -**Request JSON example** - -```javascript -{ - "sender" : "3HgqG68qfeVz5dqbyvqnxQceFaH49xmGvUS", - "fee" : 500000000, - "leaseId" : "CYPYhYe9M94t958Nsa3DcYNBZTURwcFgQ3ojyjwEeZiK" -} -``` - -**Response JSON example** - -```javascript -{ - "type" : 9, - "id" : "895ryYABK7KQWLvSbw8o8YSjTTXHCqRJw1yzC63j4Fgk", - "sender" : "3HgqG68qfeVz5dqbyvqnxQceFaH49xmGvUS", - "senderPublicKey" : "DddGQs63eWAA1G1ZJnJDVSrCpMS97NH4odnggwUV42kE", - "fee" : 500000000, - "timestamp" : 1495625418143, - "signature" : "2SUmFj4zo7NfZK7Xoqvqh7m7bhzFR8rT7eLtqe9Rrp18ugFH9SSvoTx1BtekWhU7PN1uLrnQCpJdS8JhmcBAjmb9", - "leaseId" : "CYPYhYe9M94t958Nsa3DcYNBZTURwcFgQ3ojyjwEeZiK" -} -``` - diff --git a/public-node/rest-api/peers.md b/public-node/rest-api/peers.md deleted file mode 100644 index 2f86181..0000000 --- a/public-node/rest-api/peers.md +++ /dev/null @@ -1,56 +0,0 @@ -# Peers - -## POST /peers/connect - -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) - -Connect to peer. - -**Request:** - -```javascript -{ - "host":"127.0.0.1", - "port":"9084" -} -``` - -## GET /peers/connected - -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) - -Returns list of all currently connected peers to the node. - -**Response JSON example:** - -```javascript -{ - "peers": [ - { - "address": "52.51.92.182/52.51.92.182:6863", - "declaredAddress": "N/A", - "peerName": "zx 182", - "peerNonce": 183759 - }, - { - "address": "ec2-52-28-66-217.eu-central-1.compute.amazonaws.com/52.28.66.217:6863", - "declaredAddress": "N/A", - "peerName": "zx 217", - "peerNonce": 1021800 - } - ] -} -``` - -## GET /peers/blacklisted - -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) - -Returns list of all currently blacklisted peers to the node. - -## GET /peers/all - -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) - -Returns list of all ever known not blacklisted peers with publicly available declared address. - diff --git a/public-node/rest-api/utils.md b/public-node/rest-api/utils.md deleted file mode 100644 index 2efe6c5..0000000 --- a/public-node/rest-api/utils.md +++ /dev/null @@ -1,72 +0,0 @@ -# Utils - -**POST /utils/hash/secure** - -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) - -Produce a secure hash of a specified message. - -**Request:** - -```text -ltonetwork! -``` - -**Response JSON example:** - -```javascript -{ - "message": "ltonetwork!", - "hash": "CU8QRLgxAbwsL616cZBRouXHfUf9dJVfiUZza5egGTs2" -} -``` - -## POST /utils/hash/fast - -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) - -Fast hash of specified message. - -**Request:** - -```text -ltonetwork! -``` - -**Response JSON example:** - -```javascript -{ - "message": "ltonetwork!", - "hash": "2w3ezYt5p3KfEZ8K2dX9SiQzSuxTUy5AV4VW7AoPWHCF" -} -``` - -## GET /utils/seed/{length} - -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) - -Generate a random seed of specified length. - -**Response JSON example:** - -```javascript -{ - "seed": "3XcHLU6bYRax1c" -} -``` - -## GET /utils/seed - -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) - -Generate a random seed. - -**Response JSON example:** - -```javascript -{ - "seed": "2uwLAe7Rp7TuNiBTKsmTEJ5wxGqkBHjcyPq2tMXiWye7" -} -``` - diff --git a/public-node/security-notes.md b/public-node/security-notes.md deleted file mode 100644 index df78053..0000000 --- a/public-node/security-notes.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -description: Important Security Notes to Be Considered By End Users ---- - -# Security Notes - -## SEED & Password - -Before you create an account, you should know some important points about the LTO wallet system. In LTO wallet, there is no .dat file which keeps your private keys but a SEED which grants you access to them. The SEED is by default a string of 15 English words and basically your passphrase to your funds - **if you lose your SEED, you lose access to your account**. - -We strongly encourage you to additionally back up the SEED on a piece of paper and store it in a safe place. The provided string of 15 English words is cryptographically extremely secure and with the current technology unbreakable. Each and every SEED is only linked to one single LTO account. Every digit, character, symbol and space counts - if there is one space too much, a different account opens up. If there is a wrong symbol, a different account opens up. If there is a spelling mistake, a different account opens up. - -### Do not forget to create a backup copy of the seed phrase! See how to do it: - -* [Web-Wallet](https://wallet.lto.network). During the account creation, you will also be asked to generate a password for your address. - -The password has two purposes: - -1. It encrypts the SEED locally so the SEED is never sent to the network unprotected. -2. Your account will be cached so you don't have to import the SEED from new every time you want to log in. The password secures that only you can log into your cached account. If you happen to lose your password, you can simply delete the cached account, restore account by using your SEED. - -**Notes** - -* Forgetting the password, you can easily import your account again using your SEED and set a new password in the process. - -### Personal Account - -* To access your account, do not use browsers that have extensions and plug-ins installed, they can access your secret passphrase. -* Protect the account with a password. -* You use your wallet anonymously, your account is not tied to e-mail or to other identifying information. -* Password protects your account as part of a specific device or browser. -* Check whether the connection is in secure SSL mode - in the address bar of your web browser, you should see the closed lock icon \(on the right or on the left, depending on the browser\). - -### General Notes - -* Use the [official LTO resources](https://blog.ltonetwork.com/lto-network-sources/) \(groups in social networks, sites, applications\). -* Before you enter a secret phrase from your account or download the application, carefully look at the address bar of the browser and make sure that you are on the official resource of the company: -* Use the official software. Do not install unknown or hacked programs. -* Do not open letters or links from unknown senders. -* Regularly check for updates to the operating system and browser. -* Do not go into the wallet, using public WiFi or from someone else's device. - diff --git a/anchoring-node/README.md b/running-a-node/anchoring-node/README.md similarity index 100% rename from anchoring-node/README.md rename to running-a-node/anchoring-node/README.md diff --git a/anchoring-node/installation-guide/README.md b/running-a-node/anchoring-node/installation-guide/README.md similarity index 100% rename from anchoring-node/installation-guide/README.md rename to running-a-node/anchoring-node/installation-guide/README.md diff --git a/anchoring-node/installation-guide/linux.md b/running-a-node/anchoring-node/installation-guide/linux.md similarity index 100% rename from anchoring-node/installation-guide/linux.md rename to running-a-node/anchoring-node/installation-guide/linux.md diff --git a/anchoring-node/installation-guide/macos.md b/running-a-node/anchoring-node/installation-guide/macos.md similarity index 100% rename from anchoring-node/installation-guide/macos.md rename to running-a-node/anchoring-node/installation-guide/macos.md diff --git a/anchoring-node/installation-guide/windows.md b/running-a-node/anchoring-node/installation-guide/windows.md similarity index 100% rename from anchoring-node/installation-guide/windows.md rename to running-a-node/anchoring-node/installation-guide/windows.md diff --git a/anchoring-node/rest-api.md b/running-a-node/anchoring-node/rest-api.md similarity index 100% rename from anchoring-node/rest-api.md rename to running-a-node/anchoring-node/rest-api.md diff --git a/public-node-1/README.md b/running-a-node/public-node/README.md similarity index 100% rename from public-node-1/README.md rename to running-a-node/public-node/README.md diff --git a/public-node-1/cloud/README.md b/running-a-node/public-node/cloud/README.md similarity index 100% rename from public-node-1/cloud/README.md rename to running-a-node/public-node/cloud/README.md diff --git a/public-node-1/cloud/node-alibaba-cloud.md b/running-a-node/public-node/cloud/node-alibaba-cloud.md similarity index 100% rename from public-node-1/cloud/node-alibaba-cloud.md rename to running-a-node/public-node/cloud/node-alibaba-cloud.md diff --git a/public-node-1/cloud/node-aws-elastic-beanstalk.md b/running-a-node/public-node/cloud/node-aws-elastic-beanstalk.md similarity index 100% rename from public-node-1/cloud/node-aws-elastic-beanstalk.md rename to running-a-node/public-node/cloud/node-aws-elastic-beanstalk.md diff --git a/public-node-1/cloud/node-google-cloud.md b/running-a-node/public-node/cloud/node-google-cloud.md similarity index 100% rename from public-node-1/cloud/node-google-cloud.md rename to running-a-node/public-node/cloud/node-google-cloud.md diff --git a/public-node-1/cloud/node-ibm-cloud.md b/running-a-node/public-node/cloud/node-ibm-cloud.md similarity index 100% rename from public-node-1/cloud/node-ibm-cloud.md rename to running-a-node/public-node/cloud/node-ibm-cloud.md diff --git a/public-node-1/cloud/node-microsoft-azure.md b/running-a-node/public-node/cloud/node-microsoft-azure.md similarity index 100% rename from public-node-1/cloud/node-microsoft-azure.md rename to running-a-node/public-node/cloud/node-microsoft-azure.md diff --git a/public-node-1/cloud/node-okd-openshift.md b/running-a-node/public-node/cloud/node-okd-openshift.md similarity index 100% rename from public-node-1/cloud/node-okd-openshift.md rename to running-a-node/public-node/cloud/node-okd-openshift.md diff --git a/public-node-1/cloud/node-raspberry-pi-expert.md b/running-a-node/public-node/cloud/node-raspberry-pi-expert.md similarity index 100% rename from public-node-1/cloud/node-raspberry-pi-expert.md rename to running-a-node/public-node/cloud/node-raspberry-pi-expert.md diff --git a/public-node-1/cloud/node-ubuntu-linux-with-container.md b/running-a-node/public-node/cloud/node-ubuntu-linux-with-container.md similarity index 100% rename from public-node-1/cloud/node-ubuntu-linux-with-container.md rename to running-a-node/public-node/cloud/node-ubuntu-linux-with-container.md diff --git a/public-node-1/cloud/node-windows-with-container.md b/running-a-node/public-node/cloud/node-windows-with-container.md similarity index 100% rename from public-node-1/cloud/node-windows-with-container.md rename to running-a-node/public-node/cloud/node-windows-with-container.md diff --git a/public-node-1/cloud/optional-nginx-reverse-proxy.md b/running-a-node/public-node/cloud/optional-nginx-reverse-proxy.md similarity index 100% rename from public-node-1/cloud/optional-nginx-reverse-proxy.md rename to running-a-node/public-node/cloud/optional-nginx-reverse-proxy.md diff --git a/public-node-1/cloud/prepare-setup-your-wallet.md b/running-a-node/public-node/cloud/prepare-setup-your-wallet.md similarity index 100% rename from public-node-1/cloud/prepare-setup-your-wallet.md rename to running-a-node/public-node/cloud/prepare-setup-your-wallet.md diff --git a/public-node-1/faq.md b/running-a-node/public-node/faq.md similarity index 100% rename from public-node-1/faq.md rename to running-a-node/public-node/faq.md diff --git a/public-node-1/installation-guide/README.md b/running-a-node/public-node/installation-guide/README.md similarity index 100% rename from public-node-1/installation-guide/README.md rename to running-a-node/public-node/installation-guide/README.md diff --git a/public-node-1/installation-guide/configuration.md b/running-a-node/public-node/installation-guide/configuration.md similarity index 100% rename from public-node-1/installation-guide/configuration.md rename to running-a-node/public-node/installation-guide/configuration.md diff --git a/public-node-1/installation-guide/lto_mainnet.md b/running-a-node/public-node/installation-guide/lto_mainnet.md similarity index 100% rename from public-node-1/installation-guide/lto_mainnet.md rename to running-a-node/public-node/installation-guide/lto_mainnet.md diff --git a/public-node-1/installation-guide/requirements.md b/running-a-node/public-node/installation-guide/requirements.md similarity index 100% rename from public-node-1/installation-guide/requirements.md rename to running-a-node/public-node/installation-guide/requirements.md diff --git a/public-node-1/installation-guide/troubleshooting-faq.md b/running-a-node/public-node/installation-guide/troubleshooting-faq.md similarity index 100% rename from public-node-1/installation-guide/troubleshooting-faq.md rename to running-a-node/public-node/installation-guide/troubleshooting-faq.md diff --git a/public-node-1/installation-guide/virtual_machine.md b/running-a-node/public-node/installation-guide/virtual_machine.md similarity index 100% rename from public-node-1/installation-guide/virtual_machine.md rename to running-a-node/public-node/installation-guide/virtual_machine.md diff --git a/public-node-1/rest-api/README.md b/running-a-node/public-node/rest-api/README.md similarity index 100% rename from public-node-1/rest-api/README.md rename to running-a-node/public-node/rest-api/README.md diff --git a/public-node-1/rest-api/address.md b/running-a-node/public-node/rest-api/address.md similarity index 88% rename from public-node-1/rest-api/address.md rename to running-a-node/public-node/rest-api/address.md index b080688..901f9ce 100644 --- a/public-node-1/rest-api/address.md +++ b/running-a-node/public-node/rest-api/address.md @@ -35,7 +35,7 @@ Get list of all accounts addresses in the node's wallet. ### GET /addresses/seq/{from}/{to} -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) +![](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) Get list of accounts addresses with indexes at this range in the node's wallet. @@ -50,7 +50,7 @@ Get list of accounts addresses with indexes at this range in the node's wallet. ### POST /addresses -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) +![](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) Generate a new account address in the wallet._Requires API\_KEY to be provided_ @@ -72,7 +72,7 @@ Generate a new account address in the wallet._Requires API\_KEY to be provided_ ### GET /addresses/balance/details/{address} -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) +![](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) Get Balance details: @@ -98,7 +98,7 @@ Get Balance details: ### GET /addresses/balance/{address} -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) +![](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) Get account balance in LTO in {address}: @@ -120,7 +120,7 @@ Get account balance in LTO in {address}: ### GET /addresses/balance/{address}/{confirmations} -![master](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) +![](https://img.shields.io/badge/MAINNET-available-4bc51d.svg) Get account balance in LTO by {address} after {confirmations} from now: diff --git a/public-node-1/rest-api/blocks.md b/running-a-node/public-node/rest-api/blocks.md similarity index 100% rename from public-node-1/rest-api/blocks.md rename to running-a-node/public-node/rest-api/blocks.md diff --git a/public-node-1/rest-api/example_transactions.md b/running-a-node/public-node/rest-api/example_transactions.md similarity index 100% rename from public-node-1/rest-api/example_transactions.md rename to running-a-node/public-node/rest-api/example_transactions.md diff --git a/public-node-1/rest-api/faq.md b/running-a-node/public-node/rest-api/faq.md similarity index 100% rename from public-node-1/rest-api/faq.md rename to running-a-node/public-node/rest-api/faq.md diff --git a/public-node-1/rest-api/lease_transactions.md b/running-a-node/public-node/rest-api/lease_transactions.md similarity index 81% rename from public-node-1/rest-api/lease_transactions.md rename to running-a-node/public-node/rest-api/lease_transactions.md index 11c4507..bf9b781 100644 --- a/public-node-1/rest-api/lease_transactions.md +++ b/running-a-node/public-node/rest-api/lease_transactions.md @@ -29,13 +29,13 @@ Creates lease transaction. ```javascript { - "type":10, - "id":"9q7X84wFuVvKqRdDQeWbtBmpsHt9SXFbvPPtUuKBVxxr", - "sender":"3MtrNP7AkTRuBhX4CBti6iT21pQpEnmHtyw", - "senderPublicKey":"G6h72icCSjdW2A89QWDb37hyXJoYKq3XuCUJY2joS3EU", - "fee":100000000, - "timestamp":46305781705234713, - "signature":"4gQyPXzJFEzMbsCd9u5n3B2WauEc4172ssyrXCL882oNa8NfNihnpKianHXrHWnZs1RzDLbQ9rcRYnSqxKWfEPJG" + "type": 8, + "id": "9q7X84wFuVvKqRdDQeWbtBmpsHt9SXFbvPPtUuKBVxxr", + "sender": "3MtrNP7AkTRuBhX4CBti6iT21pQpEnmHtyw", + "senderPublicKey": "G6h72icCSjdW2A89QWDb37hyXJoYKq3XuCUJY2joS3EU", + "fee": 100000000, + "timestamp": 46305781705234713, + "signature": "4gQyPXzJFEzMbsCd9u5n3B2WauEc4172ssyrXCL882oNa8NfNihnpKianHXrHWnZs1RzDLbQ9rcRYnSqxKWfEPJG" } ``` diff --git a/public-node-1/rest-api/peers.md b/running-a-node/public-node/rest-api/peers.md similarity index 100% rename from public-node-1/rest-api/peers.md rename to running-a-node/public-node/rest-api/peers.md diff --git a/public-node-1/rest-api/utils.md b/running-a-node/public-node/rest-api/utils.md similarity index 100% rename from public-node-1/rest-api/utils.md rename to running-a-node/public-node/rest-api/utils.md diff --git a/public-node-1/security-notes.md b/running-a-node/public-node/security-notes.md similarity index 100% rename from public-node-1/security-notes.md rename to running-a-node/public-node/security-notes.md diff --git a/workflow-node/README.md b/running-a-node/workflow-node/README.md similarity index 100% rename from workflow-node/README.md rename to running-a-node/workflow-node/README.md diff --git a/public-node/installation-guide/README.md b/running-a-node/workflow-node/installation-guide/README.md similarity index 100% rename from public-node/installation-guide/README.md rename to running-a-node/workflow-node/installation-guide/README.md diff --git a/workflow-node/installation-guide/macos.md b/running-a-node/workflow-node/installation-guide/macos.md similarity index 100% rename from workflow-node/installation-guide/macos.md rename to running-a-node/workflow-node/installation-guide/macos.md diff --git a/workflow-node/installation-guide/ubuntu-linux.md b/running-a-node/workflow-node/installation-guide/ubuntu-linux.md similarity index 100% rename from workflow-node/installation-guide/ubuntu-linux.md rename to running-a-node/workflow-node/installation-guide/ubuntu-linux.md diff --git a/workflow-node/installation-guide/windows.md b/running-a-node/workflow-node/installation-guide/windows.md similarity index 100% rename from workflow-node/installation-guide/windows.md rename to running-a-node/workflow-node/installation-guide/windows.md diff --git a/workflow-node/rest-api/README.md b/running-a-node/workflow-node/rest-api/README.md similarity index 100% rename from workflow-node/rest-api/README.md rename to running-a-node/workflow-node/rest-api/README.md diff --git a/workflow-node/rest-api/api-client-libraries.md b/running-a-node/workflow-node/rest-api/api-client-libraries.md similarity index 100% rename from workflow-node/rest-api/api-client-libraries.md rename to running-a-node/workflow-node/rest-api/api-client-libraries.md diff --git a/workflow-node/rest-api/event-chain-service.md b/running-a-node/workflow-node/rest-api/event-chain-service.md similarity index 100% rename from workflow-node/rest-api/event-chain-service.md rename to running-a-node/workflow-node/rest-api/event-chain-service.md diff --git a/workflow-node/rest-api/workflow-engine.md b/running-a-node/workflow-node/rest-api/workflow-engine.md similarity index 100% rename from workflow-node/rest-api/workflow-engine.md rename to running-a-node/workflow-node/rest-api/workflow-engine.md diff --git a/tutorials/anchoring/README.md b/tutorials/anchoring/README.md index ab41745..01769d6 100644 --- a/tutorials/anchoring/README.md +++ b/tutorials/anchoring/README.md @@ -31,7 +31,7 @@ The node exposes a Swagger UI which you can use to try out all the available HTT The demo service uses LTO testnet. Transactions on testnet are free, but the network isn't secure and must not be used in production. -To anchor on LTO mainnet, [install your own anchoring node](../../anchoring-node/installation-guide/) using docker. Submitting anchoring transactions on mainnet requires a transaction fee. +To anchor on LTO mainnet, [install your own anchoring node]() using docker. Submitting anchoring transactions on mainnet requires a transaction fee. If the node is set up correctly, you’ll need to provide the API key for each request as `X-LTO-Key` request header. This key has been configured as environment variable `LTO_API_KEY` during set up. diff --git a/tutorials/live-contracts/the-basics.md b/tutorials/live-contracts/the-basics.md index 23a78df..48eccbe 100644 --- a/tutorials/live-contracts/the-basics.md +++ b/tutorials/live-contracts/the-basics.md @@ -10,7 +10,7 @@ Running Live Contracts requires using the LTO Network full node. In these tutorials we're always using the developer build of the full node, which is available as a Docker container. -``` +```text curl "https://raw.githubusercontent.com/legalthings/lto-deepdive/master/docker/dev/docker-compose.yml" -o docker-compose.yml docker-compose up ``` @@ -38,7 +38,7 @@ cd livecontracts-tutorial ## Creating a scenario -A Live Contract must contain of one or more [scenarios]() that describes the process\(es\) we're automating. We can write a scenario in either JSON or YAML. +A Live Contract must contain of one or more [scenarios](the-basics.md) that describes the process\(es\) we're automating. We can write a scenario in either JSON or YAML. {% hint style="success" %} Create file `scenario.yml` \(or `scenario.json`\) in the `basic` directory. @@ -68,7 +68,7 @@ title: The basics ### Defining actors -[Actors]() are organizations or individuals play a role in the process. The scenario needs to define which actors \(may\) exist. +[Actors](the-basics.md) are organizations or individuals play a role in the process. The scenario needs to define which actors \(may\) exist. {% tabs %} {% tab title="YAML" %} @@ -109,7 +109,7 @@ The key `initiator` is used to reference the actor. The title must be defined, b ### Defining actions -All [actions]() that any actor can perform within the process must be defined at forehand in the scenario. +All [actions](the-basics.md) that any actor can perform within the process must be defined at forehand in the scenario. {% tabs %} {% tab title="YAML" %} @@ -121,7 +121,7 @@ title: My first Live Contract actors: initiator: title: Initiator - + actions: complete: title: Complete the process @@ -157,7 +157,7 @@ The _complete_ action can be performed by the _initiator_ actor. The intend of t ### The initial state -When a process is started, it's in the _initial_ [state](). From this state in can transition to other states, until the process is completed. +When a process is started, it's in the _initial_ [state](the-basics.md). From this state in can transition to other states, until the process is completed. {% tabs %} {% tab title="YAML" %} @@ -169,12 +169,12 @@ title: My first Live Contract actors: initiator: title: Initiator - + actions: complete: title: Complete the process actor: initiator - + states: initial: action: complete @@ -250,7 +250,7 @@ In the `Scenario` section _\(this is unrelated to the workflow scenario\)_, we s `lctest` is a command line tool to test workflows described in a Live Contract. It requires PHP7+ with the yaml and mongodb PECL extensions. ```text -wget "https://github.com/legalthings/livecontracts-tester/raw/master/lctest.pharr" +wget "https://github.com/legalthings/livecontracts-tester/raw/master/lctest.phar" php lctest.phar basic ``` diff --git a/workflow-node/installation-guide/README.md b/workflow-node/installation-guide/README.md deleted file mode 100644 index c1b5a76..0000000 --- a/workflow-node/installation-guide/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# Installation Guide -