diff --git a/docs/liquid/liquid-part2.md b/docs/liquid/liquid-part2.md index d83cbfa..f4fb9d9 100644 --- a/docs/liquid/liquid-part2.md +++ b/docs/liquid/liquid-part2.md @@ -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` + - `$ sudo ./scripts/app compose elements exec node elements-cli -rpcuser=$E_RPCUSER -rpcpassword=$E_RPCPASS issueasset 10 0 false` { "txid": dd3983619f67e7a743ccfd32e48bbdb591c1d44b86a71d442be95a2453c0479a, @@ -38,23 +38,34 @@ Looking up this value on [https://blockstream.info/liquid/assets](https://blocks "token": 2dc5fb795fd42e08adb9dd29b5ff14f4326ecd8443e1cdc31dc6666d7576ff89 } +* Checking out our wallet we see: + - `$ sudo ./scripts/app compose elements exec node elements-cli -rpcuser=$E_RPCUSER -rpcpassword=$E_RPCPASS getwalletinfo` + + "balance": {"1e69f87952c26b8dfc80dda0427041a0279a0723ea12086b88b75752545e0d22": 10.00000000,"bitcoin": 0.00148701} + + * We can see our wallet has 10 of our assets[^2], lets checkout what the [Liquid network knows about it](https://blockstream.info/liquid/asset/1e69f87952c26b8dfc80dda0427041a0279a0723ea12086b88b75752545e0d22): + + ![](2-part2-firstasset.png) + + + * Lets set that to a variable for use later - - `$ export ISSUE='{"txid": dd3983619f67e7a743ccfd32e48bbdb591c1d44b86a71d442be95a2453c0479a, + ``` + $ export ISSUE='{"txid": dd3983619f67e7a743ccfd32e48bbdb591c1d44b86a71d442be95a2453c0479a, "vin": 0, "entropy": cd3d7319525b28b6500d0a0b4688d91392ba8192be9bc264ec9637a001907322, "asset": 1e69f87952c26b8dfc80dda0427041a0279a0723ea12086b88b75752545e0d22, "token": 2dc5fb795fd42e08adb9dd29b5ff14f4326ecd8443e1cdc31dc6666d7576ff89 }' + ``` - * Now we can utilize individual entries (using `jq` utility): - - `$ echo $ISSUE | jq .asset` +* Now we can utilize individual entries (using `jq` utility): + - `$ echo $ISSUE | jq .asset` - "1e69f87952c26b8dfc80dda0427041a0279a0723ea12086b88b75752545e0d22" + "1e69f87952c26b8dfc80dda0427041a0279a0723ea12086b88b75752545e0d22" - * Checking out our wallet we see: - - `$ sudo ./scripts/app compose elements exec node elements-cli -rpcuser=$E_RPCUSER -rpcpassword=$E_RPCPASS getwalletinfo` - "balance": {"1e69f87952c26b8dfc80dda0427041a0279a0723ea12086b88b75752545e0d22": 10.00000000,"bitcoin": 0.00148701} [^1]: The values E_RPCUSER and E_RPCPASS, where environmental variables we set in Part I +[^2]: Like in bitcoin, 1 integer unit is 100,000,000 base units (not sats, but equivalent concept) \ No newline at end of file