You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Now that you've modified the file with the two updates, now it's safe to save the file.
699
699
700
-
## Use the CLI to create a post
700
+
## Play with your Blog Chain - Create a Post
701
701
702
702
Now that you have implemented logic for creating and querying posts, you can interact with your blog chain using the command line. The blog chain binary is `blogd`.
703
703
@@ -707,17 +707,18 @@ First, start the chain on your development machine by running the following comm
707
707
ignite chain serve
708
708
```
709
709
710
-
The binary is built by the `ignite chain serve` command bit it can also be built by running:
711
-
712
-
```bash
713
-
ignite chain build
714
-
```
715
-
716
710
To create a post at the command line:
717
711
718
712
```bash
719
713
blogd tx blog create-post foo bar --from alice
720
714
```
715
+
where:
716
+
717
+
- blog is the module name
718
+
- create-post is the message name
719
+
- foo is the title
720
+
- bar is the body
721
+
- alice is the account that creates the post
721
722
722
723
The transaction is output to the terminal. You are prompted to confirm the transaction:
723
724
@@ -728,9 +729,9 @@ confirm transaction before signing and broadcasting [y/N]: y
728
729
729
730
Type `y` to sign and broadcast the transaction.
730
731
731
-
Congratulations, you built a chain binary and used the `blogd` binary CLI to create a blog post.
732
+
Congratulations, you used the `blogd` binary CLI to create a blog post.
0 commit comments