Add instructions to create a bond
This commit is contained in:
parent
58407d4cf4
commit
f80a76117c
@ -130,6 +130,18 @@ laconic-so deployment --dir laconic-console-deployment start
|
|||||||
laconic-so deployment --dir laconic-console-deployment exec cli "laconic registry status"
|
laconic-so deployment --dir laconic-console-deployment exec cli "laconic registry status"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Perform operations
|
||||||
|
|
||||||
|
* Example (bond creation):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Get the PK from your node
|
||||||
|
ALICE_PK=$(echo y | laconic-so deployment --dir fixturenet-laconicd-deployment exec laconicd "laconicd keys export alice --unarmored-hex --unsafe")
|
||||||
|
|
||||||
|
# Create a bond:
|
||||||
|
laconic-so deployment --dir laconic-console-deployment exec cli "laconic registry bond create --type photon --quantity 100000000000 --user-key $ALICE_PK" | jq -r '.bondId'
|
||||||
|
```
|
||||||
|
|
||||||
## Demo
|
## Demo
|
||||||
|
|
||||||
* Follow the [records-demo](./records-demo.md) to try loading data into registry
|
* Follow the [records-demo](./records-demo.md) to try loading data into registry
|
||||||
|
@ -5,11 +5,8 @@
|
|||||||
* Set account key and bond id in the CLI config:
|
* Set account key and bond id in the CLI config:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Get the PK from your node
|
# Set bond id to the bond created earlier or create a new one
|
||||||
ALICE_PK=$(echo y | laconic-so deployment --dir fixturenet-laconicd-deployment exec laconicd "laconicd keys export alice --unarmored-hex --unsafe")
|
BOND_ID=<bond-id>
|
||||||
|
|
||||||
# Create a bond:
|
|
||||||
BOND_ID=$(laconic-so deployment --dir laconic-console-deployment exec cli "laconic registry bond create --type photon --quantity 100000000000 --user-key $ALICE_PK" | jq -r '.bondId')
|
|
||||||
|
|
||||||
# Update CLI config
|
# Update CLI config
|
||||||
laconic-so deployment --dir laconic-console-deployment exec cli "CERC_LACONICD_USER_KEY=${ALICE_PK} CERC_LACONICD_BOND_ID=${BOND_ID} CERC_LACONICD_GAS=900000 /app/create-config.sh"
|
laconic-so deployment --dir laconic-console-deployment exec cli "CERC_LACONICD_USER_KEY=${ALICE_PK} CERC_LACONICD_BOND_ID=${BOND_ID} CERC_LACONICD_GAS=900000 /app/create-config.sh"
|
||||||
|
Loading…
Reference in New Issue
Block a user