Author

Topic: raw TX and remains (Read 667 times)

newbie
Activity: 26
Merit: 5
September 03, 2015, 12:51:23 PM
#3
I think for create raw transaction you need to specify exactly how much for each output or it will become a transaction fee.

Yes sum of inputs - sum of outputs = miner fee
staff
Activity: 3458
Merit: 6793
Just writing some code
September 03, 2015, 08:27:30 AM
#2
I think for create raw transaction you need to specify exactly how much for each output or it will become a transaction fee.
jr. member
Activity: 43
Merit: 7
September 03, 2015, 06:51:19 AM
#1
Hello, can I set all remains coins from TX id for sending?

for example prepare raw tx

Quote
createrawtransaction '[{"txid":"fba4b0a1e11b68c587aae3578844d68131c807913767a1efc9a699d38ecd9f06","vout":1,"scriptPubKey":"a914e8fa0f97c663ba132bd81e6d657c46825d390e6c87",
"redeemscript":"524104d9546728bb1d1bf309ef3c2c7278d8d306052ecf7dc81443f16e75ae607099dfcfc573a3e 71553bd8321d91c209bab03aa999befa6e77734c0f4dd34ef78ebfd41041050ff637a97fa462dff a19d0bc013869f6231895019bd9f263a0a55a067665cfca4473aab1dc38e8aecf359e23ce6bb35f f900bc84fdd890a3b982ea50dd92f4104e086dce7893384cbfa89fbbf7d33de3f1ee01279a1e981 0d952f1c440e91fc7ee7cb9cf070dfbdee397e123c363d140221e81610b7bd695905fbf198edfd7 1a153ae"}]' '{"motbFuaf7Q7xWqBbo7zFu83sdNBspvYkFY":0.0001}'

Can I set ALL_REMAINS_FROM_txid instead of 0.0001 ?

Quote
'{"motbFuaf7Q7xWqBbo7zFu83sdNBspvYkFY":ALL_REMAINS_FROM_txid}'
Jump to: