Generating hot signing links using python had been a roadblock for our bot development. ### After a bit of trial by error, found the issue and the solution. Long story short, it was a encoding issue corrected by enclosing the required_auths and required_posting_auths arrays in doublequotes as follows: ``` ... "required_auths": "[\"anthonyadavisii\"]", "required_posting_auths": "[]", ... ``` The latter didn't matter so much as it was an empy array but the former had double quotes which were being encoded as single quotations(%27) as a result. This led to an "Invalid cast from string_type to Array" error when attempting the link. *Anyways, glad this was figured out so we can move forward with the next phases of development.* ![image.png](https://images.ecency.com/DQmSM3gjcQqHZ53kd5W56F9SPxmBo1FVkcEMBHVZ9qEzxMa/image.png) <center>https://i.imgur.com/LpeiYAd.gif</center> **Repository:** https://github.com/anthonyadavisii/get_hive_engine_hc_hot_link # get_hive_engine_hc_hot_link Python utility generates Hive Connect hot signing links for perform Hive-Engine token transactions ### Prerequisites: - Python3 and greater - hivesigner-python-client by @emrebeyler [Link](https://github.com/emre/hivesigner-python-client) ### Installation: ``` pip install hivesigner ``` - Usage: Import script as module. ``` import get_hive_engine_hc_hot_link #Example usage get_hive_engine_hc_hot_link.get_he_hc_hot_link('anthonyadavisii','HDR','1','test post id') ``` Should output as follows: ``` 'https://hivesigner.com/sign/custom_json?authority=active&required_auths=%5B%22anthonyadavisii%22%5D&required_posting_auths=%5B%5D&id=ssc-mainnet-hive&json=%7B%22contractName%22%3A%22tokens%22%2C%22contractAction%22%3A%22transfer%22%2C%22contractPayload%22%3A%7B%22symbol%22%3A%22HDR%22%2C%22to%22%3A%22hive-dr%22%2C%22quantity%22%3A%221%22%2C%22memo%22%3A%22test+post+id%22%7D%7D' ``` ### Test Results ![image.png](https://images.ecency.com/DQmRzRAQXS89oJqnvLdb9gR7AtfLWaEmSr78M4MEcZnqrkA/image.png) https://hiveblocks.com/tx/602b425598f18fb2ca2d6d0b1da274dd64f1fb9f ![image.png](https://images.ecency.com/DQmb2Y4bLtAEFGTK4Hjbe2PwXuFPjzEu9YNgKz8T6Zi3zyp/image.png) I plan on refining this so it may be run as a script in addition to interactively. Feel free to fork and suit to your purpose. I will be using it as part of the abuse reporting functionality for Hive Downvote Rewards project (@hive-dr) formerly @steemflagrewards. ### Thank you for your time and supporting this work --- ### Additional Links: *HiveEngine* https://hive-engine.com/ (Below included in Github repo for onboarding potential) Are you interested in the HIVE social media blockchain? Get started with my links below: *Ecency Referral Link* https://ecency.com/?referral=anthonyadavisii *HiveOnboard* https://hiveonboard.com?ref=anthonyadavisii https://media.giphy.com/media/3oEdva9BUHPIs2SkGk/giphy.gif
author | anthonyadavisii |
---|---|
permlink | python-hot-signing-link-generation-tool-for-hiveengine-transfers |
category | hive-139531 |
json_metadata | {"links":["https://github.com/anthonyadavisii/get_hive_engine_hc_hot_link","https://github.com/emre/hivesigner-python-client","https://hivesigner.com/sign/custom_json?authority=active&required_auths=%5B%22anthonyadavisii%22%5D&required_posting_auths=%5B%5D&id=ssc-mainnet-hive&json=%7B%22contractName%22%3A%22tokens%22%2C%22contractAction%22%3A%22transfer%22%2C%22contractPayload%22%3A%7B%22symbol%22%3A%22HDR%22%2C%22to%22%3A%22hive-dr%22%2C%22quantity%22%3A%221%22%2C%22memo%22%3A%22test+post+id%22%7D%7D","https://hiveblocks.com/tx/602b425598f18fb2ca2d6d0b1da274dd64f1fb9f","https://hive-engine.com/","https://ecency.com/?referral=anthonyadavisii","https://hiveonboard.com?ref=anthonyadavisii"],"image":["https://images.ecency.com/DQmSM3gjcQqHZ53kd5W56F9SPxmBo1FVkcEMBHVZ9qEzxMa/image.png","https://i.imgur.com/LpeiYAd.gif","https://images.ecency.com/DQmRzRAQXS89oJqnvLdb9gR7AtfLWaEmSr78M4MEcZnqrkA/image.png","https://images.ecency.com/DQmb2Y4bLtAEFGTK4Hjbe2PwXuFPjzEu9YNgKz8T6Zi3zyp/image.png","https://media.giphy.com/media/3oEdva9BUHPIs2SkGk/giphy.gif"],"users":["emrebeyler","steemflagrewards"],"tags":["hive-139531","opensource","python","hiveconnect","hiveengine","hive","hotsigning","palnet","neoxian"],"app":"ecency/3.0.9-mobile","format":"markdown+html"} |
created | 2020-10-24 21:56:15 |
last_update | 2020-10-26 13:39:03 |
depth | 0 |
children | 2 |
last_payout | 2020-10-31 21:56:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 1.298 HBD |
curator_payout_value | 1.287 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 2,978 |
author_reputation | 196,074,471,102,788 |
root_title | "Python Hot Signing Link Generation Tool for HiveEngine transfers" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 0 |
post_id | 100,238,647 |
net_rshares | 12,833,090,701,971 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
mammasitta | 0 | 4,207,183,801 | 0.66% | ||
good-karma | 0 | 95,830,506,989 | 6.66% | ||
livingfree | 0 | 275,207,595,125 | 4% | ||
created | 0 | 667,313,923,167 | 4% | ||
esteemapp | 0 | 109,716,189,342 | 6.66% | ||
anthonyadavisii | 0 | 179,438,527,169 | 71% | ||
freebornsociety | 0 | 3,754,473,392 | 20% | ||
jznsamuel | 0 | 125,038,637,622 | 54% | ||
trumpman | 0 | 3,832,103,124,466 | 100% | ||
nicanor-mosquera | 0 | 5,544,477,703 | 100% | ||
ladybug146 | 0 | 106,043,141,795 | 100% | ||
slickhustler007 | 0 | 3,543,508,019 | 100% | ||
fersher | 0 | -752,170,167 | -100% | ||
circleoffriends | 0 | 1,045,634,512 | 100% | ||
deathwing | 0 | 218,896,002,973 | 100% | ||
esteem.app | 0 | 1,994,570,883 | 6.66% | ||
investegg | 0 | 205,536,448,843 | 5.09% | ||
edicted | 0 | 1,398,394,828,947 | 50% | ||
philnewton | 0 | 1,052,813,085 | 15% | ||
steemflagrewards | 0 | 432,102,048,447 | 100% | ||
cadawg | 0 | 243,792,268,640 | 70% | ||
antisocialists | 0 | 639,108,650 | 10% | ||
antisocialist | 0 | 413,847,176,208 | 100% | ||
lordbutterfly | 0 | 585,152,674,583 | 100% | ||
saboin | 0 | 141,535,233,222 | 15% | ||
enforcer48 | 0 | 129,204,943,126 | 15% | ||
fernandosoder | 0 | 8,386,569,099 | 100% | ||
cryptoandcoffee | 0 | 262,650,169,483 | 20% | ||
smartvote | 0 | 66,634,924,729 | 3.1% | ||
oakshieldholding | 0 | 0 | 1.5% | ||
sbi8 | 0 | 127,040,651,981 | 60.78% | ||
atempt | 0 | -451,987,530 | -100% | ||
demo123 | 0 | 104,202,268 | 100% | ||
giftgiver | 0 | 200,138,256,031 | 100% | ||
src3 | 0 | 6,491,310,812 | 10% | ||
memehub | 0 | 2,276,163,736,664 | 100% | ||
sfr-treasury | 0 | 3,188,173,943 | 100% | ||
astil.codex | 0 | 313,307,437 | 70% | ||
ilias.fragment | 0 | 283,735,865 | 70% | ||
ticketyboo | 0 | 13,752,478,333 | 100% | ||
ticketywoof | 0 | 13,750,442,999 | 100% | ||
sbi-tokens | 0 | 541,539,088 | 2.34% | ||
partitura.pal | 0 | 279,792,578 | 100% | ||
alafaqueyou | 0 | 3,916,462,487 | 100% | ||
borbina | 0 | 13,847,953,020 | 100% | ||
downvoteme | 0 | 57,585,443,629 | 50% | ||
tonimontana.neo | 0 | 0 | 0.53% | ||
upyournose | 0 | 10,020,564,690 | 100% | ||
rubberhose | 0 | 10,010,201,574 | 100% | ||
oopsie-poopsie | 0 | 3,955,480,842 | 100% | ||
toni.pal | 0 | 0 | 0.55% | ||
cmdd | 0 | 0 | 100% | ||
hive-187635 | 0 | 20,063,599,362 | 100% | ||
caturday.curator | 0 | 105,293,236,407 | 100% | ||
saboin.trail | 0 | 931,805,304 | 100% | ||
mehmetfix | 0 | 5,683,989,587 | 7% | ||
adamdabeast | 0 | 8,539,758,610 | 100% | ||
hiveyoda | 0 | 2,337,633,425 | 4% | ||
master-lamps | 0 | 62,166,486 | 100% | ||
equeqtra | 0 | 762,026,453 | 100% | ||
hextech | 0 | 6,039,474,690 | 33% | ||
ninnu | 0 | 2,926,845,332 | 0.66% | ||
ecency | 0 | 394,724,937,383 | 6.66% | ||
musicua | 0 | 4,693,545,344 | 100% | ||
ecency.stats | 0 | 1,031,222,366 | 6.66% | ||
trangbaby | 0 | 1,666,317,899 | 10.2% | ||
mecurry | 0 | 741,391,232 | 100% | ||
betterdev | 0 | 18,806,471,527 | 100% | ||
photonium | 0 | 0 | 100% |
Your post has been **voted** as a part of [Encouragement program](https://ecency.com/esteem/@good-karma/encouragement-program-continues-82eafcd10a299). Keep up the good work! <br>Dear reader, follow and support this author, Install Android: https://android.ecency.com, iOS: https://ios.ecency.com mobile app or desktop app for Windows, Mac, Linux: https://desktop.ecency.com<br>Learn more: https://ecency.com <br>Join our discord: https://discord.me/ecency
author | ecency |
---|---|
permlink | re-20201026t142441718z |
category | hive-139531 |
json_metadata | {"tags":["ecency"],"app":"ecency/3.0.5-welcome","format":"markdown+html"} |
created | 2020-10-26 13:24:42 |
last_update | 2020-10-26 13:24:42 |
depth | 1 |
children | 0 |
last_payout | 2020-11-02 13:24:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 456 |
author_reputation | 549,971,547,212,413 |
root_title | "Python Hot Signing Link Generation Tool for HiveEngine transfers" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 100,260,529 |
net_rshares | 0 |
https://twitter.com/Bhattg18/status/1320205816146788352
author | poshbot |
---|---|
permlink | re-python-hot-signing-link-generation-tool-for-hiveengine-transfers-20201025t033249z |
category | hive-139531 |
json_metadata | "{"app": "beem/0.24.8"}" |
created | 2020-10-25 03:32:51 |
last_update | 2020-10-25 03:32:51 |
depth | 1 |
children | 0 |
last_payout | 2020-11-01 03:32:51 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 55 |
author_reputation | 5,554,335,374,496 |
root_title | "Python Hot Signing Link Generation Tool for HiveEngine transfers" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 100,241,300 |
net_rshares | 0 |