Skip to content
Snippets Groups Projects
Name Last commit Last update
..
tutorials
LICENSE
README.md

devportal-tutorials-py

Python Tutorials for the Developer Portal

These examples/tutorials will familiarize you with the basics of operating on the steem blockchain.

Each tutorial is located in its own folder, and has a README.md with an outline of the basic concepts and operations it intends to teach.

The tutorials build on each other. It's suggested you go through them in-order.

Note: You'll notice the tutorial directories skip numbers in their prefixes. This is deliberate; we're mirroring our curriculum as much as possible accross languages, and getting to the less critical tutorials per-language later.

Tutorial List

  1. Using keys securely - Learn how Steem-Python library handles transaction signing with user's key and how to securely manage your private keys.
  2. Dev requirements - Environment requirements for developers
  3. Get posts with filters - How to query for posts with specific filters & tags.
  4. Get post details - How to get details of each post.
  5. Get voters list on content - How to get voters info on post/comment.
  6. Get post comments - How to fetch all comments made on particular post.
  7. Get account replies - How to get list of latest comments made on content of particular account.
  8. Get account comments - How to get list of comments made by particular account.
  9. Submit post - How properly format and submit post.
  10. Submit comment - How to submit reply to particular post.
  11. Edit content - How to properly patch edited content and submit edits.
  12. Stream transactions - How to stream transactions on the live blockchain.
  13. Reblog/Resteem a post - How to reblog/resteem a post
  14. Search accounts - Search for user accounts by partial username.
  15. Search for tags - Search for trending tags.
  16. Vote on content - Create a weighted up or down vote on a comment/post.
  17. Follow a user - Follow and unfollow a user / author.
  18. Get follower & following list - Get the followers of a user/author & the authors that user is following.
  19. Account reputation - Learn how to interpret account reputation.
  20. Transfer STEEM & SBD - Transfer both STEEM and SBD from one account to another.
  21. Witness listing & voting - Create a list of available witnesses as well as vote for and remove your vote for a witness.
  22. Claim rewards - Learn how to claim rewards from unclaimed reward balance using Steemconnect as well as client signing method.
  23. Power up - Power up an account's Steem using either Steemconnect or a client-side signing.
  24. Power down - Perform a power down on all or part of an account's VESTS using either Steemconnect or client-side signing.
  25. Delegate steem power - Delegate power to other users using Steemconnect or Client-side signing.
  26. Get delegations by user - View the vesting delegations made by a user as well as the delegations that are expiring.
  27. Grant posting permission - How to grant and revoke posting permission to another user.
  28. Grant active permission - How to grant and revoke active permission to another user.
  29. Change password and keys - How to change your accounts password and keys.

To Run one of the tutorials

Use the command line/terminal for the following instructions

  1. git clone https://gitlab.syncad.com/hive/devportal.git

  2. cd into the tutorial you wish to run

    ex: cd devportal/tutorials/devportal-tutorials-py/tutorials/04_get_posts

  3. Use pip to install dependencies

    ex: pip install -r requirements.txt

  4. Run the tutorial

    python index.py

  5. After a few moments, results should show up in terminal

Contributing

If you're interested in contributing a tutorial to this repo. Please have a look at the guidelines for the text portion of the tutorial. For general guideline please refer to Developers Portal.