Update docs/liquid/liquid-part2.md

This commit is contained in:
b0xxer 2024-01-26 06:01:16 -06:00
parent 4be612fcfc
commit f8a5d86e03

View File

@ -28,7 +28,7 @@ Looking up this value on [https://blockstream.info/liquid/assets](https://blocks
### Issuing our own Asset
* Issuing our own asset is straight-forward, as its a single line command in the client. Let's issue 10 new tokens and set the supply to be fixed (no re-issuance)
- `$ sudo ./scripts/app compose elements exec node elements-cli -rpcuser=$E_RPCUSER -rpcpassword=$E_RPCPASS issueasset 10 0 false`
- `$ sudo ./scripts/app compose elements exec node elements-cli -rpcuser=$E_RPCUSER -rpcpassword=$E_RPCPASS issueasset 10 0 true`
{
"txid": dd3983619f67e7a743ccfd32e48bbdb591c1d44b86a71d442be95a2453c0479a,
@ -47,6 +47,21 @@ Looking up this value on [https://blockstream.info/liquid/assets](https://blocks
![](2-part2-firstasset.png)
* So publiclly we know the following about our new asset:
- It cannot be re-issued
- It has only been issued once
- However both the issued amount and the circulating supply has been hidden from us.
* Let's create another asset and this time choose a different option:
- `$ sudo ./scripts/app compose elements exec node elements-cli -rpcuser=$E_RPCUSER -rpcpassword=$E_RPCPASS issueasset 10 0 false`
{"txid": "1dfdf2f3a393a7a7be9f1f58c8651565a29486851268027794e1b69f5227864f",
"vin": 0,
"entropy": "5a32df406eb3f8c4f9b59c669d411e3a5ed0fd75058c2483e5732ccc6b482722",
"asset": "03d63d6c373979954a4dda2afdd941a0de96a0739da455af1cdb1a2e2a63a9a5",
"token": "ac860f370aabb829b70283c05e13a327cccec8ad0eea5493980cca53dd6631f9"}
...and checking again what [the Liquid network knows about it](https://blockstream.info/liquid/asset/03d63d6c373979954a4dda2afdd941a0de96a0739da455af1cdb1a2e2a63a9a5)
* Lets set that to a variable for use later