Delegating SP to @minnowsupport with Steem Python

Words
193
Reading
1 min
Listen
Play
9y

Pimephales_promelas.jpg

The Minnow Support Team is changing Steemit forever for minnows. By pooling our combined Steem Power, minnowsupport@minnowsupport has become a force for good on the platform.

One great way that Steemians can help this cause is by delegating Steem Power to the minnowsupport@minnowsupport account. When you delegate Steem Power, you essentially are "lending" a bit of your power to the account you delegate it to. You still own the SP and can remove the delegation at any time.

For those that are interested in contributing to the cause, but want to keep their keys locally, Steem Python is a great option!

This simple Python script makes it easy to delegate SP to minnowsupport@minnowsupport!

Would love to hear feedback.


print('MinnowSupport Delegator')

from steem import Steem
from steem.converter import Converter

stact = input('Please provide your account name.')
stkey = input('Please provide your private active key. This information is stored locally and will not be transmitted elsewhere. ===> ')

steem = Steem(keys=[stkey])
sp = int(input('How much SP do you want to delegate to @minnowsupport? '))
vests = '{} VESTS'.format(Converter().sp_to_vests(sp))

steem.delegate_vesting_shares('minnowsupport', vests, stact)
print(sp, 'SP delegated to @minnowsupport from ', stact, '. Thank you for your support!')

Delegating SP to @minnowsupport with Steem Python | Ecency