sendtx -> sendrawtransaction
This commit is contained in:
8
electrum
8
electrum
@@ -50,8 +50,8 @@ Syntax: payto <recipient> <amount> [label]
|
|||||||
<recipient> can be a bitcoin address or a label
|
<recipient> can be a bitcoin address or a label
|
||||||
options:\n --fee, -f: set transaction fee\n --fromaddr, -s: send from address -\n --changeaddr, -c: send change to address
|
options:\n --fee, -f: set transaction fee\n --fromaddr, -s: send from address -\n --changeaddr, -c: send change to address
|
||||||
""",
|
""",
|
||||||
'sendtx':
|
'sendrawtransaction':
|
||||||
'Broadcasts a transaction to the network. \nSyntax: sendtx <tx>\n<tx> must be in hexadecimal.',
|
'Broadcasts a transaction to the network. \nSyntax: sendrawtransaction <tx in hexadecimal>',
|
||||||
'password':
|
'password':
|
||||||
"Changes your password",
|
"Changes your password",
|
||||||
'addresses':
|
'addresses':
|
||||||
@@ -613,8 +613,8 @@ if __name__ == '__main__':
|
|||||||
del(wallet.history[from_addr])
|
del(wallet.history[from_addr])
|
||||||
wallet.save()
|
wallet.save()
|
||||||
|
|
||||||
elif cmd == 'sendtx':
|
elif cmd == 'sendrawtransaction':
|
||||||
tx = args[1]
|
tx = Transaction(args[1])
|
||||||
r, h = wallet.sendtx( tx )
|
r, h = wallet.sendtx( tx )
|
||||||
print_msg(h)
|
print_msg(h)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user