When transferring your Steem-Dollars assets to exchange, you have to fill in the correct memo otherwise your money is likely to get lost.
A few months ago, I accidentally transfered 100 SBD to @blocktrades but luckily a few hours later I got the refund. You don’t get lucky everytime. Therefore I think it is less likely for things to go wrong if this can be done automatically via scripts.
I have written a Python script based on Steem-Python library and it works quite well for me.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | from steem import Steem from steem.account import Account from keys import account_akey from nodes import steem_nodes id = 'justyy' wif = { "active": account_akey[id] } steem = Steem(nodes = steem_nodes, keys = wif) account = Account(id, steemd_instance=steem) balance = account.balances x = float(balance['total']['SBD']) print("@" + id + " has " + str(x) + " SBD") if x >= 40: y = 30 print("transfering " + str(y) + " SBD from @" + id + " to @bittrex") steem.transfer("bittrex", amount = y, asset = 'SBD', memo = "The MEMO key required by your exchange", account = id) |
from steem import Steem from steem.account import Account from keys import account_akey from nodes import steem_nodes id = 'justyy' wif = { "active": account_akey[id] } steem = Steem(nodes = steem_nodes, keys = wif) account = Account(id, steemd_instance=steem) balance = account.balances x = float(balance['total']['SBD']) print("@" + id + " has " + str(x) + " SBD") if x >= 40: y = 30 print("transfering " + str(y) + " SBD from @" + id + " to @bittrex") steem.transfer("bittrex", amount = y, asset = 'SBD', memo = "The MEMO key required by your exchange", account = id)
Let the script run once per hour via crontab. When account balance is larger than 40 SBD, automatically it transfers 30 to your exchange account.
Advantages of Programmatically Transferring your Funds
- Saves your time.
- Can’t get wrong.
- You start to feel that your are actually earning something on SteemIt.
You don’t need to use Python, you can also use steem-js as long as you put in the correct MEMO.
You may also like: 通过程序来减少到交易所转帐出错的可能
–EOF (The Ultimate Computing & Technology Blog) —
loading...
Last Post: CoinTools v0.0.3: Adding Total Market Cap USD Chart, Localization and Stock Price Emoji
Next Post: Utopian Moderators & Supervisors v0.0.10 - Steem Nodes Ping Tool + Sponsors Tab