I was brainstorming something ferocious and trying to figure out how to help the platforms.... I came up with this and attempting to link the currencies on Hive Engine that actually have solid backing. This is just the first draft of the PeakeCoin trailing bot. I may add other currencies to it as well, I'm just not sure how resource credit-heavy this would actually be. With this being the rough draft we'll see. Since I created @PeakeCoin, I have never made it staking, so you can earn more. I have always had the issue of some rough distribution to facilitate usage. So, what I started working on was a PeakeCoin following bot. So it's one that follows @pimp.token earnings and gives them a super small percentage of PEK. <center></center> I've been trying to get @enginewitty up to speed with all this coding stuff I'm working on, and hopefully this may expedite him to hop on this train, lol. I worked on this on Sunday evening. I'm sorry, but I was working on the Sabbath. If you want, you can definitely read over this, implement it, or improve it, just let me know because any help can be the greatest of help. ``` import requests import time import os from nectar import Hive hive = Hive() def send_pek(username, amount): # Replace these with your Hive account and private active key HIVE_ACCOUNT = "your_hive_account" ACTIVE_KEY = "your_private_active_key" # NEVER share or hardcode in public code! # Prepare the custom_json payload for Hive Engine token transfer json_data = [ "transfer", { "symbol": "PEK", "to": username, "quantity": f"{amount:.8f}", "memo": "PIMP reward" } ] try: tx = hive.broadcast_custom_json( username=HIVE_ACCOUNT, key=ACTIVE_KEY, id="ssc-mainnet-hive", json_data=json_data, required_posting_auths=[], required_active_auths=[HIVE_ACCOUNT] ) print(f"Sent {amount} PEK to {username}. TX: {tx}") except Exception as e: print(f"Failed to send PEK to {username}: {e}") REWARDED_TXIDS_FILE = "rewarded_txids.txt" def load_rewarded_txids(): if not os.path.exists(REWARDED_TXIDS_FILE): return set() with open(REWARDED_TXIDS_FILE, "r") as f: return set(line.strip() for line in f if line.strip()) def save_rewarded_txid(txid): with open(REWARDED_TXIDS_FILE, "a") as f: f.write(txid + "\n") def main(): rewarded_txids = load_rewarded_txids() while True: try: payload = { "jsonrpc": "2.0", "id": 1, "method": "find", "params": { "contract": "tokens", "table": "transfers", "query": {"symbol": "PIMP"}, "limit": 100, "sort": "desc" } } r = requests.post("https://api.hive-engine.com/rpc/contracts", json=payload, timeout=10) data = r.json() for t in data.get("result", []): txid = t.get("transactionId") to_user = t.get("to") pimp_amt = float(t.get("quantity", 0)) # Integer division: every 100 PIMP, reward 0.00000001 PEK pek_amt = int(pimp_amt // 100) * 0.00000001 if pek_amt > 0 and txid not in rewarded_txids: send_pek(to_user, pek_amt) rewarded_txids.add(txid) save_rewarded_txid(txid) except Exception as e: print(f"Error: {e}") time.sleep(60) # Run every minute if __name__ == "__main__": main() ``` Appreciate all the looking around... big shout out to @ecoinstant for the helping hands of putting people together to improve the community.
author | paulmoon410 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
permlink | pimp-peakecoin-trailing-bot | ||||||||||||
category | hive-111011 | ||||||||||||
json_metadata | "{"app":"ecency/4.0.4-vision","tags":["hive-111011","leo","leofinance","creativecoin","palnet","archon","proofofbrain","bee","peakecoin","ctp","ecency"],"format":"markdown+html","image":["https://images.ecency.com/DQmVEHJURcMtAhvGSXfHkXcnGTdhgupenEoh5T2FpE92W7o/image.png"],"thumbnails":["https://images.ecency.com/DQmVEHJURcMtAhvGSXfHkXcnGTdhgupenEoh5T2FpE92W7o/image.png"],"description":"I was brainstorming something ferocious and trying to figure out how to help the platforms.... I came up with this and attempting to link the currencies on Hive Engine that actually have solid backing.","image_ratios":["1.0000"]}" | ||||||||||||
created | 2025-05-19 02:48:24 | ||||||||||||
last_update | 2025-05-19 02:48:24 | ||||||||||||
depth | 0 | ||||||||||||
children | 3 | ||||||||||||
last_payout | 2025-05-26 02:48:24 | ||||||||||||
cashout_time | 1969-12-31 23:59:59 | ||||||||||||
total_payout_value | 0.353 HBD | ||||||||||||
curator_payout_value | 0.427 HBD | ||||||||||||
pending_payout_value | 0.000 HBD | ||||||||||||
promoted | 0.000 HBD | ||||||||||||
body_length | 3,976 | ||||||||||||
author_reputation | 40,455,560,339,093 | ||||||||||||
root_title | "Pimp/PeakeCoin Trailing Bot" | ||||||||||||
beneficiaries |
| ||||||||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||||||||
percent_hbd | 0 | ||||||||||||
post_id | 142,819,450 | ||||||||||||
net_rshares | 2,446,305,365,210 | ||||||||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
phusionphil | 0 | 12,888,956,281 | 95% | ||
dylanhobalart | 0 | 63,962,627,589 | 11% | ||
jznsamuel | 0 | 112,839,976,082 | 100% | ||
enginewitty | 0 | 90,657,609,280 | 100% | ||
saffisara | 0 | 192,098,587,419 | 100% | ||
joeyarnoldvn | 0 | 452,262,762 | 1.47% | ||
summertooth | 0 | 12,469,811,784 | 18.75% | ||
hope-on-fire | 0 | 55,238,170,053 | 6% | ||
killerwhale | 0 | 44,713,106,940 | 100% | ||
rumplestiltskin | 0 | 28,524,428,554 | 100% | ||
yangyanje | 0 | 6,751,800,228 | 25% | ||
silvergoldbotty | 0 | 85,903,122,774 | 100% | ||
omra-sky | 0 | 145,636,790,647 | 100% | ||
steemitcomics | 0 | 1,430,475,114 | 100% | ||
anomallies | 0 | 9,938,008,708 | 100% | ||
steveconnor | 0 | 97,913,628,199 | 50% | ||
jim888 | 0 | 250,953,246,657 | 6% | ||
dynamicrypto | 0 | 7,038,187,210 | 12.5% | ||
powerpaul | 0 | 33,521,504,576 | 100% | ||
psyborg | 0 | 10,705,315,909 | 100% | ||
antdroid | 0 | 11,028,368,163 | 100% | ||
hazem91 | 0 | 9,733,712,576 | 40% | ||
katrina-ariel | 0 | 36,153,679,197 | 100% | ||
memepress | 0 | 1,622,069,380 | 47.5% | ||
monchhichi23 | 0 | 955,717,201 | 100% | ||
ambiguity | 0 | 12,762,675,988 | 25% | ||
holovision | 0 | 17,696,327,011 | 100% | ||
thesummoner | 0 | 10,727,399,721 | 100% | ||
lunamoon | 0 | 46,743,275,490 | 100% | ||
khaldeesi | 0 | 46,449,218,278 | 100% | ||
freyamber | 0 | 47,066,366,217 | 100% | ||
chain.games | 0 | 21,596,574,390 | 100% | ||
r-e-d | 0 | 7,737,813,387 | 100% | ||
lord-of-the-d | 0 | 10,683,827,735 | 100% | ||
steemforsteem | 0 | 962,638,333 | 100% | ||
toonuts | 0 | 2,237,377,343 | 100% | ||
twonuts | 0 | 2,274,894,593 | 100% | ||
letlove | 0 | 2,885,125,232 | 100% | ||
allied-mafia | 0 | 8,269,642,095 | 100% | ||
steemforschool | 0 | 963,695,146 | 100% | ||
steemforschools | 0 | 1,150,894,472 | 100% | ||
itwasme | 0 | 1,466,673,987 | 100% | ||
steemvpn | 0 | 28,041,832,356 | 95% | ||
mind.force | 0 | 3,622,923,688 | 25% | ||
x40l1n | 0 | 46,971,770,965 | 100% | ||
theblooded | 0 | 973,719,728 | 100% | ||
blooded | 0 | 976,155,686 | 100% | ||
theclan | 0 | 1,998,528,868 | 100% | ||
angeltree | 0 | 1,979,382,476 | 100% | ||
christmasclub | 0 | 2,170,143,744 | 100% | ||
freedomring | 0 | 1,264,890,009 | 25% | ||
publicview | 0 | 22,807,641,957 | 100% | ||
sandymeyer | 0 | 39,549,714,278 | 12.5% | ||
birthdaywishes | 0 | 973,930,520 | 100% | ||
youdo | 0 | 2,421,884,674 | 100% | ||
bi0digital | 0 | 10,164,088,991 | 100% | ||
wittys.angels | 0 | 985,402,145 | 100% | ||
wittysangels | 0 | 985,408,807 | 100% | ||
hive-127039 | 0 | 766,042,654 | 25% | ||
zelegations | 0 | 10,488,648,054 | 95% | ||
janaliana | 0 | 721,718,018 | 12.5% | ||
timhorton | 0 | 10,080,295,175 | 95% | ||
cerberus-dji | 0 | 2,286,630,969 | 95% | ||
hivecannabis | 0 | 3,814,942,941 | 42% | ||
newigennity | 0 | 292,569,856,845 | 100% | ||
angiel | 0 | 23,536,469,588 | 100% | ||
sassafrass | 0 | 3,321,587,308 | 100% | ||
hive-vpn | 0 | 2,043,999,765 | 95% | ||
zaddyboy | 0 | 532,427,290 | 12.5% | ||
bellelynn | 0 | 1,449,642,757 | 100% | ||
dr460n3y3 | 0 | 4,546,558,593 | 100% | ||
b34w0lf | 0 | 8,154,136,004 | 100% | ||
timmy-turnip | 0 | 2,672,209,436 | 50% | ||
jim-crypto | 0 | 1,206,405,292 | 25% | ||
holovision.cash | 0 | 1,817,147,124 | 100% | ||
mochilub | 0 | 2,588,720,418 | 12.5% | ||
marshmellowman | 0 | 8,261,965,429 | 55% | ||
beffeater | 0 | 5,420,844,914 | 25% | ||
churchoftheway | 0 | 2,906,115,482 | 100% | ||
hive-165007 | 0 | 3,077,836,833 | 100% | ||
thebigfish | 0 | 147,502,157,665 | 100% | ||
psyberx | 0 | 2,311,394,475 | 1% | ||
willkomo | 0 | 745,329,652 | 100% | ||
thgaming | 0 | 4,037,480,499 | 25% | ||
mmoonn | 0 | 1,533,964,517 | 100% | ||
dr-animation | 0 | 1,515,066,385 | 100% | ||
tokencav | 0 | 50,321,593,769 | 50% | ||
w1tty | 0 | 6,809,454,202 | 100% | ||
psybercurator | 0 | 11,940,835,555 | 100% | ||
willendorfia | 0 | 8,326,977,046 | 100% | ||
peakecoin | 0 | 1,389,468,612 | 100% | ||
vetfunding | 0 | 17,456,736,853 | 50% | ||
monkeymanking | 0 | 2,018,520,289 | 100% | ||
wahlterwhite | 0 | 2,831,632,201 | 12.5% | ||
karina.yana | 0 | 1,844,693,736 | 100% | ||
nism | 0 | 36,934,820,670 | 100% | ||
psx-bank | 0 | 1,916,761,203 | 100% | ||
thetradecenter | 0 | 19,159,443,508 | 100% | ||
peakecoin.bnb | 0 | 955,471,155 | 100% | ||
strangedad | 0 | 1,576,935,967 | 100% | ||
blemish | 0 | 2,219,424,769 | 100% |
Woop Woop! School is winding down and I can put more focus on Hive things here soon. If you can make it, should come to the !pimp chats Wednesday morning 9am EST.
author | enginewitty |
---|---|
permlink | re-paulmoon410-swl1up |
category | hive-111011 |
json_metadata | {"tags":["hive-111011"],"app":"peakd/2025.5.6","image":[],"users":[]} |
created | 2025-05-20 23:13:39 |
last_update | 2025-05-20 23:13:39 |
depth | 1 |
children | 2 |
last_payout | 2025-05-27 23:13:39 |
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 | 162 |
author_reputation | 693,845,252,695,147 |
root_title | "Pimp/PeakeCoin Trailing Bot" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 142,859,235 |
net_rshares | 33,419,012,561 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
paulmoon410 | 0 | 31,996,181,733 | 100% | ||
dr-animation | 0 | 1,422,830,828 | 100% |
I'm full time employed. Unless someone here can pay my salary? I'd be glad to quit working. I would love to join the conversation. No rush my guy. I get it. I just need money....lol, kids are expensive.
author | paulmoon410 |
---|---|
permlink | re-enginewitty-2025520t194142642z |
category | hive-111011 |
json_metadata | {"type":"comment","tags":["hive-111011"],"app":"ecency/3.3.2-mobile","format":"markdown+html"} |
created | 2025-05-20 23:41:42 |
last_update | 2025-05-20 23:41:42 |
depth | 2 |
children | 0 |
last_payout | 2025-05-27 23:41: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 | 203 |
author_reputation | 40,455,560,339,093 |
root_title | "Pimp/PeakeCoin Trailing Bot" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 142,859,584 |
net_rshares | 0 |
Test !PAKX
author | tokenpimp |
---|---|
permlink | re-enginewitty-swm7iw |
category | hive-111011 |
json_metadata | {"tags":["hive-111011"],"app":"peakd/2025.5.6","image":[],"users":[]} |
created | 2025-05-21 14:13:48 |
last_update | 2025-05-21 14:13:48 |
depth | 2 |
children | 0 |
last_payout | 2025-05-28 14:13:48 |
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 | 10 |
author_reputation | 16,079,424,016,430 |
root_title | "Pimp/PeakeCoin Trailing Bot" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 142,878,596 |
net_rshares | 0 |