Quick Python SBD Sender

in #steem-python6 years ago

As a series of Steem-Python scripts I have been creating, today I wanted to show you a simple code that allows you to make transfers in Python.

To start, create the python file:

sudo nano sbd_sender.py



Then paste this code inside:

# PYTHON quick SBD sender
from steem import Steem
s = Steem(
    nodes=["http://rpc.buildteam.io"],
    keys=["PRIV POSTING", "PRIV ACTIVE"]
)
print ("welcome to quick SBD Sender")
to = input("Please provide receiver account: ")
amount1 = input("Please provide amount to send: ")
amount = float(amount1)
memo = input("Please provide a memo (optional) or press enter to continue: ")

s.commit.transfer(
    to, 
    amount, 
    "SBD", 
    memo= memo, 
    account="YOUR ACCOUNT"
)
print (amount1 + " SBD has been sent to " + to)

Make sure to change your keys and your account fields

To run the the script just type:

python3 sbd_sender.py



The result should look like this:

Captura de pantalla 2018-04-23 a la(s) 16.22.49.png

Head over to your account history and you should see the transfer:

Captura de pantalla 2018-04-23 a la(s) 16.26.47.png

Let me know what you think and make sure the check out my other scripts here:

https://github.com/PixelNoob/python-steem

Sort:  

You got a 30.77% upvote from @dailyupvotes courtesy of @hcf27!

Please upvote this comment to support the service.

you can test the script by sending some SBD to me.

haha will do!

Will you please create an upvote bot that use multiple accounts to upvote a single post like smartsteem? And we can run it at a day time on windows pc without needing any cloud space, as we don't want to run it 24/7. Only when pc is on with the bot software running?

Thank you!

Great and valuable post.
Very informative.
Nice content.
I like this post.
Its the best way to send Sbd.🤗💙

Thanks @chitty for sharing this post.

Upvoted + resteemed your post.

really very good information of steem-python matter.its fully new thing for me.because i don,t know its matter.today i have got a new idea your good tropic.always sharing helpfull post in your blog.very well done friend..thank you for your information providing.. @chitty

Really beautiful information about steem-python.I don't understand from steem-python code........Please be happy to tell me about this issue.........

I hope like its

great work bro

Coin Marketplace

STEEM 0.26
TRX 0.11
JST 0.033
BTC 64359.90
ETH 3105.50
USDT 1.00
SBD 3.87