Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
0d856d3
GitBook: [master] 3 pages modified
jasny May 10, 2021
2d8f88a
GitBook: [master] 2 pages modified
jasny May 10, 2021
275e12a
GitBook: [master] one page modified
jasny May 10, 2021
311b843
GitBook: [master] 82 pages modified
jasny May 10, 2021
eb96f4f
GitBook: [master] 82 pages modified
jasny May 10, 2021
c591716
GitBook: [master] 82 pages modified
jasny May 10, 2021
6471493
GitBook: [master] one page modified
jasny May 10, 2021
d8eae49
GitBook: [master] 82 pages modified
jasny May 10, 2021
d2e6f0c
GitBook: [master] 82 pages modified
jasny May 10, 2021
0d06698
GitBook: [master] one page modified
jasny May 10, 2021
3964b6d
GitBook: [master] 82 pages modified
jasny May 10, 2021
674b625
GitBook: [master] 82 pages modified
jasny May 10, 2021
39813cb
GitBook: [master] 82 pages and one asset modified
jasny May 11, 2021
8ac9522
GitBook: [master] 82 pages modified
jasny May 11, 2021
97242a2
GitBook: [master] 82 pages modified
jasny May 11, 2021
da78b2f
GitBook: [master] 82 pages modified
jasny May 11, 2021
b4a6881
GitBook: [master] 82 pages modified
jasny May 11, 2021
789e833
GitBook: [master] 82 pages modified
jasny May 11, 2021
141ca5b
GitBook: [master] one page modified
jasny May 13, 2021
635e6a0
GitBook: [master] one page modified
jasny May 16, 2021
1746ef8
GitBook: [master] 82 pages modified
jasny May 16, 2021
c95b2e1
GitBook: [master] 82 pages modified
jasny May 16, 2021
71b29cd
GitBook: [master] 82 pages modified
jasny May 16, 2021
47cdcaa
GitBook: [master] 82 pages modified
jasny May 17, 2021
90f4de0
GitBook: [master] 82 pages modified
jasny May 17, 2021
d63bd24
Fixed reference to lctest.phar file
justmvg May 23, 2021
6291762
GitBook: [master] 60 pages modified
jasny Jun 3, 2021
d1a509f
GitBook: [master] no pages and 37 assets modified
jasny Jun 9, 2021
7b04e1d
Merge pull request #8 from justmvg/patch-1
jasny Jun 17, 2021
64eff93
GitBook: [master] 92 pages modified
jasny Jun 29, 2021
b4333a8
Fixing the time units from microseconds to milliseconds
Jul 24, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .gitbook/assets/lto_token_bridge.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/lto_token_import_ps.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/screenshot_20210528-225936-2.png
Binary file added .gitbook/assets/screenshot_20210530-222809.png
Binary file added .gitbook/assets/union_amount_buy (1).pdf
Binary file not shown.
Binary file added .gitbook/assets/union_amount_buy.pdf
Binary file not shown.
Binary file added .gitbook/assets/union_result.jpg
Binary file added .gitbook/assets/uniswap_add_lto.jpg
Binary file added .gitbook/assets/walletoverview.jpg
Binary file added .gitbook/assets/withdrawal.jpg
91 changes: 44 additions & 47 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
12 changes: 12 additions & 0 deletions protocol/private/README.md
Original file line number Diff line number Diff line change
@@ -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 %}



17 changes: 10 additions & 7 deletions protocol/public/transactions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
Expand All @@ -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

Expand All @@ -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

Expand All @@ -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

Expand Down Expand Up @@ -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..." ]`

Expand Down
2 changes: 1 addition & 1 deletion protocol/public/transactions/anchor.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down
2 changes: 1 addition & 1 deletion protocol/public/transactions/association.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down
16 changes: 14 additions & 2 deletions protocol/public/transactions/cancel-lease-transaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down
2 changes: 1 addition & 1 deletion protocol/public/transactions/cancel-sponsor.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down
2 changes: 1 addition & 1 deletion protocol/public/transactions/lease-transaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down
2 changes: 1 addition & 1 deletion protocol/public/transactions/revoke-association.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down
2 changes: 1 addition & 1 deletion protocol/public/transactions/sponsor.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down
2 changes: 1 addition & 1 deletion protocol/public/transactions/transfer-transaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

Expand Down
27 changes: 0 additions & 27 deletions public-node-1/installation-guide/aws_elastic_beanstalk.md

This file was deleted.

20 changes: 0 additions & 20 deletions public-node/installation-guide/configuration.md

This file was deleted.

24 changes: 0 additions & 24 deletions public-node/installation-guide/lto_mainnet.md

This file was deleted.

19 changes: 0 additions & 19 deletions public-node/installation-guide/requirements.md

This file was deleted.

Loading