create account

A new direction for my python blockhain coding by veryjerry3

View this thread on: hive.blogpeakd.comecency.com
· @veryjerry3 ·
$2.04
A new direction for my python blockhain coding
So my last few update posts have been about a specific python hive tutorial called submit posts, which has caused me so many troubles. I have dealt with not knowing how to input a password, and then getting an error that I don't know how to fix. Even with outside help, I still do not fully know how to add my account to the python code or my computer to be able to submit a post, even though I have done it another way.

I have decided to abandon this course of work and I started looking at tutorials that could help me automate something that I plan to do later. This week I have worked on code that streams blockchain transactions live through the python terminal.


![stream transactions.png](https://files.peakd.com/file/peakd-hive/veryjerry3/23tGVqVk4o6hd3PR7khFXRktFwVgEaChgGozRntzdUhAPdKyQNPQzxhnDW8EYN3uooe3i.png)

As shown above, the code looks at the current block and sees the type of transaction. Currently, the transaction is printed only if the type of transaction is a comment. The next if statement finds the distance between the parent author. If the length is 0, it means the comment is the parent author, which only happens when the author has created a post, so it uses the format seen above. For any other length, the author is a reply to the parent author so the format seen in the else statement should make sense. The end result of the code is seen below. Just to keep in mind, the code keeps running until the program is manually stopped.


![comments.png](https://files.peakd.com/file/peakd-hive/veryjerry3/23t7FH7y5VvqjEALWZKHwDpaysBcRCQ9SUny9wEqXHJm2Xo4HWknM5YPnrpnxoMoPzRHm.png)
👍  , , ,
properties (23)
authorveryjerry3
permlinka-new-direction-for-my-python-blockhain-coding
categorygradnium
json_metadata{"app":"peakd/2022.02.6","format":"markdown","tags":["gradnium","vyb","pob","eee-4010","spring2022","python","weekly-activity"],"users":[],"image":["https://files.peakd.com/file/peakd-hive/veryjerry3/23tGVqVk4o6hd3PR7khFXRktFwVgEaChgGozRntzdUhAPdKyQNPQzxhnDW8EYN3uooe3i.png","https://files.peakd.com/file/peakd-hive/veryjerry3/23t7FH7y5VvqjEALWZKHwDpaysBcRCQ9SUny9wEqXHJm2Xo4HWknM5YPnrpnxoMoPzRHm.png"]}
created2022-03-07 04:22:06
last_update2022-03-07 04:22:06
depth0
children1
last_payout2022-03-14 04:22:06
cashout_time1969-12-31 23:59:59
total_payout_value1.019 HBD
curator_payout_value1.019 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,610
author_reputation445,656,786,628
root_title"A new direction for my python blockhain coding"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id111,089,503
net_rshares1,871,282,785,137
author_curate_reward""
vote details (4)
@hivebuzz ·
Congratulations @veryjerry3! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s):

<table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@veryjerry3/payout.png?202203140932"></td><td>You received more than 10 HP as payout for your posts, comments and curation.<br>Your next payout target is 50 HP.<br><sub>The unit is Hive Power equivalent because post and comment rewards can be split into HP and HBD</sub></td></tr>
</table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@veryjerry3) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



###### Support the HiveBuzz project. [Vote](https://hivesigner.com/sign/update_proposal_votes?proposal_ids=%5B%22199%22%5D&approve=true) for [our proposal](https://peakd.com/me/proposals/199)!
👍  
properties (23)
authorhivebuzz
permlinknotify-veryjerry3-20220314t094550
categorygradnium
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2022-03-14 09:45:51
last_update2022-03-14 09:45:51
depth1
children0
last_payout2022-03-21 09:45:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length969
author_reputation370,316,576,492,912
root_title"A new direction for my python blockhain coding"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id111,317,843
net_rshares233,338,798
author_curate_reward""
vote details (1)