account = "ufm.test"
nodelist = NodeList()
nodelist.update_nodes()
nodes = nodelist.get_nodes(hive=True)
hive = Hive(node=nodes)
def sell_token(symbol, amount, price, account):
he_market = Market(blockchain_instance=hive)
market_trans = he_market.sell(account, amount, symbol, price)
c = Comment(loaded_post, steem_instance=hive)
c.reply(str(market_trans), "market_tx", account)
def buy_token(symbol, amount, price, account):
he_market = Market(blockchain_instance=hive)
market_trans = he_market.buy(account, amount, symbol, price)
c = Comment(loaded_post, steem_instance=hive)
c.reply(str(market_trans), "market_tx", account)
def stake_token(amount, symbol, account):
he_wallet = Wallet(account, blockchain_instance=hive)
stake_trans = he_wallet.stake(amount=amount, symbol=symbol, receiver=account)
time.sleep(1)
c = Comment(loaded_post, steem_instance=hive)
c.reply(str(stake_trans), "stake_tx", account)
def unstake_token(amount, symbol, account):
he_wallet = Wallet(account, blockchain_instance=hive)
unstake_trans = he_wallet.unstake(amount=amount, symbol=symbol)
time.sleep(1)
c = Comment(loaded_post, steem_instance=hive)
c.reply(str(unstake_trans), "stake_tx", account)
def transfer_hive(to, amount, asset, memo, account):
hive_account = Account(account, blockchain_instance=hive)
hive_tx = hive_account.transfer(to, amount, asset, memo, account)
time.sleep(4)
c = Comment(loaded_post, steem_instance=hive)
c.reply(str(hive_tx), "hive_tx", account)
def power_up_hive(to, amount, account):
hive_account = Account(account, blockchain_instance=hive)
hive_power_tx = hive_account.transfer_to_vesting(amount, to, account)
time.sleep(4)
c = Comment(loaded_post, steem_instance=hive)
c.reply(str(hive_power_tx), "hive_tx", account)
def power_down_hive(amount, account):
hive_account = Account(account, blockchain_instance=hive)
h_v = hive.token_power_to_vests(amount)
hive_power_tx = hive_account.withdraw_vesting(h_v, account)
time.sleep(4)
c = Comment(loaded_post, steem_instance=hive)
c.reply(str(hive_power_tx), "hive_tx", account)
def approve_witnesses(witness, account):
hive_account = Account(account, blockchain_instance=hive)
witness_tx = hive_account.approvewitness(witness, account)
time.sleep(4)
c = Comment(loaded_post, steem_instance=hive)
c.reply(str(witness_tx), "witness_tx", account)
def remove_witnesses(witness, account):
hive_account = Account(account, blockchain_instance=hive)
witness_tx = hive_account.disapprovewitness(witness, account)
time.sleep(4)
c = Comment(loaded_post, steem_instance=hive)
c.reply(str(witness_tx), "witness_tx", account)
def delegate_tokens(to, symbol, quantity, account):
json_object = {
"contractName": "tokens",
"contractAction": "delegate",
"contractPayload": {
"to": to,
"symbol": symbol,
"quantity": str(quantity)
}
}
idxxx = "ssc-mainnet-hive"
trx = hive.custom_json(idxxx, json_object, required_posting_auths=[account])
time.sleep(4)
c = Comment(loaded_post, steem_instance=hive)
c.reply(str(trx), "delegation_tx", account)
delegate_tokens('taskmanager', 'SPORTS', 1, account)
time.sleep(20)
sell_token("ARCHON", 0.001, 0.3, "ufm.test")
time.sleep(30)
buy_token("DHEDGE", 1, 0.275, "ufm.test")
time.sleep(30)
stake_token(0.0001, "ARCHON", "ufm.test")
time.sleep(30)
unstake_token(0.0001, "ARCHON", "ufm.test")
time.sleep(30)
transfer_hive("taskmanager", 0.001, "HIVE", "testing", "ufm.test")
time.sleep(30)
power_down_hive(0.01, "ufm.test")
time.sleep(30)
power_up_hive("ufm.test", 0.01, "ufm.test")
time.sleep(30)
remove_witnesses("busy.witness", "ufm.test")
time.sleep(30)
approve_witnesses("blocktrades", "ufm.test")
delegate_tokens('taskmanager', 'SPORTS', 1, account)
time.sleep(20)
!end
{'expiration': '2021-02-17T08:00:42', 'ref_block_num': 23985, 'ref_block_prefix': 1696969732, 'operations': [['custom_json', {'required_auths': ['ufm.test'], 'required_posting_auths': [], 'id': 'ssc-mainnet-hive', 'json': '{"contractName":"market","contractAction":"sell","contractPayload":{"symbol":"ARCHON","quantity":"0.00100000","price":"0.3"}}'}]], 'extensions': [], 'signatures': ['1f2925f6cad0c5de98f2a92f271b1040c9e0d876dbc43847e387ab87613315c94030ae976f37f91a18cca810527b9f60590f3b92097f30281fde45f71d97526122'], 'trx_id': '0cf544835bee2a5595dfe12088f9ec6e042ccc25'}
{'expiration': '2021-02-17T08:01:15', 'ref_block_num': 24002, 'ref_block_prefix': 2425266918, 'operations': [['custom_json', {'required_auths': ['ufm.test'], 'required_posting_auths': [], 'id': 'ssc-mainnet-hive', 'json': '{"contractName":"market","contractAction":"buy","contractPayload":{"symbol":"DHEDGE","quantity":"1.00000000","price":"0.275"}}'}]], 'extensions': [], 'signatures': ['2068885d0411cfd818c18b3397181906addf73f5e078ea544613658077fa670a087834ffc822deba37651ae0a92b086720fac259d1ffdfff99891119ae22a24633'], 'trx_id': '4d8cee1210008f70f09db5338a7c25e6a214e93a'}
{'expiration': '2021-02-17T08:01:45', 'ref_block_num': 24003, 'ref_block_prefix': 3419194285, 'operations': [['custom_json', {'required_auths': ['ufm.test'], 'required_posting_auths': [], 'id': 'ssc-mainnet-hive', 'json': '{"contractName":"tokens","contractAction":"stake","contractPayload":{"symbol":"ARCHON","to":"ufm.test","quantity":"0.00010000"}}'}]], 'extensions': [], 'signatures': ['2049eeea9a848c0bf410b32b9b433f1d6332b5a68117d1b5ff6485c57431f145b52385503f04871da1f0d65fbdbbf5df3fc6ae35b8e3865081e1b475e49ee051f8'], 'trx_id': 'ead7ea9fc3e90a3b96a482e30caa2ad4b27ffa05'}
{'expiration': '2021-02-17T08:02:21', 'ref_block_num': 24023, 'ref_block_prefix': 2841610554, 'operations': [['custom_json', {'required_auths': ['ufm.test'], 'required_posting_auths': [], 'id': 'ssc-mainnet-hive', 'json': '{"contractName":"tokens","contractAction":"unstake","contractPayload":{"symbol":"ARCHON","quantity":"0.00010000"}}'}]], 'extensions': [], 'signatures': ['1f349474fb4c2f03a34cb280c65f11aeec528a929100bd712f2855bfd3a3839ac01368901da8942fc1c0e192cf79cd660b2ff24a3f310df98e6b6fbe77e417c73d'], 'trx_id': 'c1053e2e854c7aac2f171b2d893eadfb6a1cd198'}
{'expiration': '2021-02-17T08:02:54', 'ref_block_num': 24031, 'ref_block_prefix': 1845311740, 'operations': [['transfer', {'from': 'ufm.test', 'to': 'taskmanager', 'amount': '0.001 HIVE', 'memo': 'testing'}]], 'extensions': [], 'signatures': ['1f7c2c0927d9680a3a5fce77388e6ae246e67c3ff578c74c5ae1b3493d01c3d6da34b7a76648bf1608a5e79b0b9d1249b36124159c81e2306cb9e8e6b3359e0fed'], 'trx_id': '9e67c176224423ce1604241870fdfed92cdb5d64'}
{'expiration': '2021-02-17T08:03:33', 'ref_block_num': 24044, 'ref_block_prefix': 2896655131, 'operations': [['withdraw_vesting', {'account': 'ufm.test', 'vesting_shares': '19.009415 VESTS'}]], 'extensions': [], 'signatures': ['2030bd52b97ad9e6b15dba688f83865052e600522b022129e59882d177f2e80229235348a8770c1974b75bef708392833211644b5aca3a8ddca0f0a2257ff28582'], 'trx_id': '245c1b1830810e3de9b50b5eb728ae21ccbbba96'}
{'expiration': '2021-02-17T08:04:09', 'ref_block_num': 24060, 'ref_block_prefix': 1727353985, 'operations': [['transfer_to_vesting', {'from': 'ufm.test', 'to': 'ufm.test', 'amount': '0.010 HIVE'}]], 'extensions': [], 'signatures': ['206fa102dce5254092f2721836f21208d2535e7c8f81b9b15e9a80ad859db80e0b611950d52c8cb04e67326bc2519c534ff6f224c714e5b088c3398d8d4540d7c6'], 'trx_id': 'aae3b44345249b87a02dbd04171bacdd08170261'}
{'expiration': '2021-02-17T08:14:36', 'ref_block_num': 24270, 'ref_block_prefix': 3421254123, 'operations': [['custom_json', {'required_auths': [], 'required_posting_auths': ['ufm.test'], 'id': 'ssc-mainnet-hive', 'json': '{"contractName":"tokens","contractAction":"delegate","contractPayload":{"to":"taskmanager","symbol":"SPORTS","quantity":"1"}}'}]], 'extensions': [], 'signatures': ['1f41a3fd2c811d1d1afdb1e4767994f0a8e620b180a702bf90bf04e42e1749bcbd480855bc110355e3b7ea4b937e66281bd99cc9341ea821e9c6ef02d6e0681eeb'], 'trx_id': '423ba2559607bbfd24fec6b1d1ebd5b969b5e243'}
{'expiration': '2021-02-17T08:15:03', 'ref_block_num': 24275, 'ref_block_prefix': 130899308, 'operations': [['custom_json', {'required_auths': ['ufm.test'], 'required_posting_auths': [], 'id': 'ssc-mainnet-hive', 'json': '{"contractName":"market","contractAction":"sell","contractPayload":{"symbol":"ARCHON","quantity":"0.00100000","price":"0.3"}}'}]], 'extensions': [], 'signatures': ['1f50aa5a07e2ad5763fff18edbd1f433439fc4cb38b2c3be367263acb8784c68b11bdd4ada4cbfd507ad2e3a382971e2047e666b2d38dc1fdeef42780df5973b5a'], 'trx_id': 'c0f7ceae4d574f2e88dc301f795cf6af65eddf5f'}
{'expiration': '2021-02-17T08:15:39', 'ref_block_num': 24291, 'ref_block_prefix': 2944542003, 'operations': [['custom_json', {'required_auths': ['ufm.test'], 'required_posting_auths': [], 'id': 'ssc-mainnet-hive', 'json': '{"contractName":"market","contractAction":"buy","contractPayload":{"symbol":"DHEDGE","quantity":"1.00000000","price":"0.275"}}'}]], 'extensions': [], 'signatures': ['1f6edfe8ad23eec94dbc0aaa1c11651e2fabe103a83e66a712991daf1ffcad9da936da091658dc0bb10e8939d5150979ffaaff8866ff0202fa50dc7e8a74dda8e1'], 'trx_id': 'b879d8f2d72c3fc8155dd7db1dcbef82338fc178'}
{'expiration': '2021-02-17T08:16:12', 'ref_block_num': 24297, 'ref_block_prefix': 2183041691, 'operations': [['custom_json', {'required_auths': ['ufm.test'], 'required_posting_auths': [], 'id': 'ssc-mainnet-hive', 'json': '{"contractName":"tokens","contractAction":"stake","contractPayload":{"symbol":"ARCHON","to":"ufm.test","quantity":"0.00010000"}}'}]], 'extensions': [], 'signatures': ['1f2f5a0d7b2a61ba5653f76f77720d56d08ce4c06c44618456600ed352d0116f9a1353d9960ed2cf74082cb384e826817d7ba3fbcd3b35f14e24d3f039b3a14e23'], 'trx_id': '5c773fd63fc13531b6624b0659490b8d5cf21a14'}
{'expiration': '2021-02-17T08:16:48', 'ref_block_num': 24313, 'ref_block_prefix': 1668947120, 'operations': [['custom_json', {'required_auths': ['ufm.test'], 'required_posting_auths': [], 'id': 'ssc-mainnet-hive', 'json': '{"contractName":"tokens","contractAction":"unstake","contractPayload":{"symbol":"ARCHON","quantity":"0.00010000"}}'}]], 'extensions': [], 'signatures': ['1f01ba0dd7242cf5ff2ab5d2d258824f92b3d3af6f70d25648216e00de29218ee97bb59864d5988ec129c3e9a60dfcc30801742d821cd202d1506c043b2a529481'], 'trx_id': 'ca0322bbde9caeaf71746a2522f8079f0475713c'}
{'expiration': '2021-02-17T08:17:21', 'ref_block_num': 24321, 'ref_block_prefix': 1033227007, 'operations': [['transfer', {'from': 'ufm.test', 'to': 'taskmanager', 'amount': '0.001 HIVE', 'memo': 'testing'}]], 'extensions': [], 'signatures': ['1f40735b4a224f47e43f3c2cc1850ffd51807659d0fac6fe7a32d979a6518c3f501a8f7914edead7a04ffe8b7d5a2b33b319be2100a2a0be4bf4b3133537d1bba9'], 'trx_id': '32e026e2e88293ea260e6d9cfddd312a127ec394'}
{'expiration': '2021-02-17T08:17:57', 'ref_block_num': 24336, 'ref_block_prefix': 2831955650, 'operations': [['withdraw_vesting', {'account': 'ufm.test', 'vesting_shares': '19.009398 VESTS'}]], 'extensions': [], 'signatures': ['207b161b731a5781ac0502910c59057fa0fb612cd03d60d22a55951104f1b4105356d18e78c0adeab0ab5a12a5226d37b0950ad22fa8229c3b0c4338b021080ca4'], 'trx_id': '547b7f592fb4ea589fefb138659d29a8ef3cb84a'}
{'expiration': '2021-02-17T08:18:36', 'ref_block_num': 24343, 'ref_block_prefix': 581725814, 'operations': [['transfer_to_vesting', {'from': 'ufm.test', 'to': 'ufm.test', 'amount': '0.010 HIVE'}]], 'extensions': [], 'signatures': ['2024f56327fffb782b0dfe86ddbed447ace76b3d1214da2eb46e0cf0082e486b382ca825c2ed7f39d9e9a200c695fd8b3ca6a69c263317c44456a835bd3422c623'], 'trx_id': 'fef35dd00537e6b807796ec30aa9c287212943f7'}
{'expiration': '2021-02-17T08:39:00', 'ref_block_num': 24756, 'ref_block_prefix': 637750546, 'operations': [['custom_json', {'required_auths': [], 'required_posting_auths': ['ufm.test'], 'id': 'ssc-mainnet-hive', 'json': '{"contractName":"tokens","contractAction":"delegate","contractPayload":{"to":"taskmanager","symbol":"SPORTS","quantity":"1"}}'}]], 'extensions': [], 'signatures': ['205f782a2066f0e87a326b2ab8a28256299b58572311a47f6f64f7d7f92f8e561065f18ff836c94849202175f330af9b13d8c641c1be3b0136edd1022af7027c68'], 'trx_id': 'd6f3ea9f4d99ec065aca4c5413798d2f0576599f'}
{'expiration': '2021-02-17T08:39:27', 'ref_block_num': 24758, 'ref_block_prefix': 2087497088, 'operations': [['custom_json', {'required_auths': ['ufm.test'], 'required_posting_auths': [], 'id': 'ssc-mainnet-hive', 'json': '{"contractName":"market","contractAction":"sell","contractPayload":{"symbol":"ARCHON","quantity":"0.00100000","price":"0.3"}}'}]], 'extensions': [], 'signatures': ['1f1a8c44b577db23e438e0a3b5cc8d236f8863a6f0bd24519ac30492696eb39dec5d2ff641295d67169bfb9dbe8b3c242dbef84d0e8724d60b27d3c91b53a5f994'], 'trx_id': '19a1d3bfbbb5106a273cc183a6be8e39270a4b45'}
{'expiration': '2021-02-17T08:40:00', 'ref_block_num': 24776, 'ref_block_prefix': 1482890773, 'operations': [['custom_json', {'required_auths': ['ufm.test'], 'required_posting_auths': [], 'id': 'ssc-mainnet-hive', 'json': '{"contractName":"market","contractAction":"buy","contractPayload":{"symbol":"DHEDGE","quantity":"1.00000000","price":"0.275"}}'}]], 'extensions': [], 'signatures': ['1f295a00b58ddccadf2df46eb2e898ac5012dc5ff8aae3226a77bb56fad91b71ef1f8581a0986c6a7f0e9f590920418f8cd3f4b08c828fe63c68d56d0b2481ccb8'], 'trx_id': '499908b552fc657ddb07b8ab4241b54477203d91'}
{'expiration': '2021-02-17T08:40:33', 'ref_block_num': 24780, 'ref_block_prefix': 3634842107, 'operations': [['custom_json', {'required_auths': ['ufm.test'], 'required_posting_auths': [], 'id': 'ssc-mainnet-hive', 'json': '{"contractName":"tokens","contractAction":"stake","contractPayload":{"symbol":"ARCHON","to":"ufm.test","quantity":"0.00010000"}}'}]], 'extensions': [], 'signatures': ['1f15a675bc73cd4211fde33af4098f9f13574ac5026b868e6b9270fbce6e8eb29158bf17e4505ebc45ded89ce6ac29da63511d60f0c27a71c0e11a6fccfccb8c3c'], 'trx_id': '73197e552bb8556763caf8f905c1d0f5db2007d9'}
{'expiration': '2021-02-17T08:41:06', 'ref_block_num': 24799, 'ref_block_prefix': 2330993352, 'operations': [['custom_json', {'required_auths': ['ufm.test'], 'required_posting_auths': [], 'id': 'ssc-mainnet-hive', 'json': '{"contractName":"tokens","contractAction":"unstake","contractPayload":{"symbol":"ARCHON","quantity":"0.00010000"}}'}]], 'extensions': [], 'signatures': ['1f449308ef77fecb287eb38869364f568ce5e475e9b85dac7eef4ca0c422a4a3e6085d43bcdcb4bbde6fdf47355ffda17b77956860dfe079935c7d0cd88c2e8abb'], 'trx_id': '5439580a95c214f2765ffa8ed0983fbdb1472d0b'}
{'expiration': '2021-02-17T08:41:39', 'ref_block_num': 24805, 'ref_block_prefix': 1574361661, 'operations': [['transfer', {'from': 'ufm.test', 'to': 'taskmanager', 'amount': '0.001 HIVE', 'memo': 'testing'}]], 'extensions': [], 'signatures': ['1f7bf1f9b4274dce7d0e6ba70f0b68c64f2b86825c9014c54a3fbcf6add1a4e21445a6b93342750e6a2c59279abcce0a510ca9ee38ad34b7b54ed932a7b9ca8c93'], 'trx_id': '0b90ee4a1935ee155c27452f25caf4770fa9f988'}
{'expiration': '2021-02-17T08:42:18', 'ref_block_num': 24821, 'ref_block_prefix': 1071574724, 'operations': [['withdraw_vesting', {'account': 'ufm.test', 'vesting_shares': '19.009370 VESTS'}]], 'extensions': [], 'signatures': ['201324b7356dff847281fe0869a1ee3d0e68eef53add934bc9c9ab7012bc64057f117b4a0f17186847b66e87b925dfe90d424acebfc2b498d99f04c6c0baf512fb'], 'trx_id': 'e97a078ec0eda2b633fcd1cd6513e689d85941d2'}
{'expiration': '2021-02-17T08:42:57', 'ref_block_num': 24824, 'ref_block_prefix': 3736887258, 'operations': [['transfer_to_vesting', {'from': 'ufm.test', 'to': 'ufm.test', 'amount': '0.010 HIVE'}]], 'extensions': [], 'signatures': ['1f319a7d135b6a651161354b6061e1b79f0a32af1271bd9d852bb06ddf53d44f2c207cc7009fd40dcad53cd9081ca23637f87b26307a85039c6d258ca0d0fe5a2d'], 'trx_id': 'c691cde93692a1282bb680e8774f9e12a7af0eaf'}
Congratulations @ufm.test! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :
Your next target is to reach 100 comments.
You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word
STOPCheck out the last post from @hivebuzz:
Congratulations @ufm.test! You received a personal badge!
You can view your badges on your board and compare yourself to others in the Ranking
Check out the last post from @hivebuzz: