Update docs/liquid/liquid-part2.md
This commit is contained in:
parent
6863ca7244
commit
24c19e57aa
@ -220,6 +220,24 @@ Before you proceed to the next step, please verify that they above file is reach
|
|||||||
|
|
||||||
...and it should output the `Authorize linking the domain` text.
|
...and it should output the `Authorize linking the domain` text.
|
||||||
|
|
||||||
|
* We can validate our request before submitting to make sure everything is correct
|
||||||
|
|
||||||
|
```
|
||||||
|
$ curl https://assets.blockstream.info/contract/validate -H 'Content-Type: application/json' -d '{"contract": '$CONTRACT', "contract_hash": "2b14c6c7ff4009ce6cf4dfa59099fdda4f27459d153b45fe91790e9d1bca42a0"}'
|
||||||
|
valid
|
||||||
|
```
|
||||||
|
Since everything looks ok, we can submit:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ curl https://assets.blockstream.info/ --data-raw '{"asset_id":"409b1d0cb614822ea703576b71958ab051d66ff6708b368f378f2ffea458d15a","contract":{"entity":{"domain":"coins.b0xxy.net"},"issuer_pubkey":"02ada219afbd424afca568e01370161d68ab3aa0697cd759a6105c23b81d20b397","name":"StackerNewsDemo-1","precision":8,"ticker":"SND-1","version":0}}'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* Now we can push the data to blockstreams server, lets create a script:
|
* Now we can push the data to blockstreams server, lets create a script:
|
||||||
` $ echo "curl $ASSET_REGISTRY_URL --data-raw '{\"asset_id\":\"$ASSET\",\"contract\":$CONTRACT}'" > register-asset.sh`
|
` $ echo "curl $ASSET_REGISTRY_URL --data-raw '{\"asset_id\":\"$ASSET\",\"contract\":$CONTRACT}'" > register-asset.sh`
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user