[Lightsteem] Broadcasting transactions
I have managed to decouple the signing from steem-python. (Work in progress, not released yet.)
Current internal API to broadcast operations:
from lightsteem.client import Client
from lightsteem.datastructures import Operation
c = Client(
keys=["<private_key>",])
op = Operation('account_witness_vote', {
'account': '<your_account>',
'witness': 'emrebeyler',
'approve': True,
})
c.broadcast(op)
To bundle operations:
from lightsteem.client import Client
from lightsteem.datastructures import Operation
c = Client(
keys=["<private_key>",])
ops = [
Operation('transfer', {
'from': 'emrebeyler',
'to': '<receiver_account_1>',
'amount': '0.001 SBD',
'memo': 'test1!'
}),
Operation('transfer', {
'from': 'emrebeyler',
'to': '<receiver_account_2>',
'amount': '0.001 SBD',
'memo': 'test1!'
}),
]
c.broadcast(ops)
Stop by Lightsteem Discord to join the fun.