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:
parent
829800ed6e
commit
795ceed2b0
BIN
_src/_guides/header-token.jpg
Normal file
BIN
_src/_guides/header-token.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 92 KiB |
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user