Update docs/liquid/liquid-part2.md

This commit is contained in:
b0xxer 2024-01-28 11:04:29 -06:00
parent e18efc2552
commit 50fe5cef59

View File

@ -125,11 +125,13 @@ The publication of asset metadata info on Liquid works on a `.well-known` system
5. Generate a `liquid-asset-proof` text file and place in `.well-known` location on domain that matches contract
6. Register (or unregister) the asset via Blockstream web API
Thats a lot of steps, and many are prone to error. Luckily for us there exist a bash script to basically do all of it. [Download script from Blockstream](https://docs.liquid.net/docs/blockstream-liquid-asset-registry#issuing-with-a-contract-hash)
Thats a lot of steps, and many are prone to error. Luckily for us there exist a bash script to basically do all of it. [Download the script from Blockstream](https://docs.liquid.net/docs/blockstream-liquid-asset-registry#issuing-with-a-contract-hash)
Save that file as `issue_and_prepare_register.sh` and open with text editor to customize the following values.
```
#NOTE: SET YOUR OWN VALUES HERE, THESE ARE WHAT I USED
NAME="StackerNewsDemo-1"
TICKER="SND-1"
DOMAIN="coins.b0xxy.net"
@ -150,7 +152,11 @@ Take the `liquid-asset-proof-ASSET` file and place it in `.well-known` folder in
Then you can run the `register_asset_ASSET.sh` script and you should get a json response back indicating success.
Having done the above,
Having done the above, we can now see the asset has been registered and has a Contract + Contract Hash associated with it:
![](7-part2-registered.png)
[^1]: The values E_RPCUSER and E_RPCPASS, where environmental variables we set in Part I