1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-25 03:03:16 +01:00

formatting, add header image

This commit is contained in:
Matthias Kretschmann 2017-11-20 10:18:32 +01:00
parent 829800ed6e
commit 795ceed2b0
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 5 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

View File

@ -8,16 +8,15 @@ header: header-token.jpg
You will learn: You will learn:
- How BDB can be used to record the transactions made by a token distribution launch - How BigchainDB can be used to record the transactions made by a token distribution launch
- How to use divisible assets on BigchainDB - How to use divisible assets on BigchainDB
We show, how divisible assets work in BigchainDB by showing, how you could create your own token launch on BigchainDB. The token distribution is represented by divisible assets (tokens) linked to one specific application (company/network). We show how divisible assets work in BigchainDB by showing how you could create your own token launch on BigchainDB. The token distribution is represented by divisible assets (tokens) linked to one specific application (company/network).
When creating a divisible asset in BigchainDB, the number of the sub-assets that you want to create should be specified. When creating a divisible asset in BigchainDB, the number of the sub-assets that you want to create should be specified.
# Create divisible asset # Create divisible asset
```js ```js
const nTokens = 10000 const nTokens = 10000
let tokensLeft let tokensLeft
@ -46,14 +45,12 @@ function tokenLaunch() {
} }
``` ```
We have decided to create 10000 tokens. For that there is an extra parameter to the makeOutput() function. Pay attention to give the function a String instead of a plain Number. We have decided to create 10000 tokens. For that there is an extra parameter to the `makeOutput()` function. Pay attention to give the function a string instead of a plain number. With the `tokenCreator` keypair we indicate who the owner of the tokens will be. Once the transaction is accepted by BigchainDB we update the value of the tokens left in the possesion of the creator.
With the tokenCreator keypair we indicate who the owner of the tokens will be.
Once the transaction is accepted by BDB we update the value of the tokens left in the possesion of the creator.
Once the tokens are created we can start to spread it over our users. Once the tokens are created we can start to spread it over our users.
# Transfer tokens # Transfer tokens
```js ```js
const amountToSend = 200 const amountToSend = 200