Author

Topic: bitcoin rpc createrawtransaction error (Read 127 times)

newbie
Activity: 7
Merit: 0
October 29, 2019, 07:51:08 PM
#3
thank you very much! that solved it!
staff
Activity: 3374
Merit: 6530
Just writing some code
October 29, 2019, 04:53:20 PM
#2
arg 2:
Code:
ADDR => 0.00005
ADDR => 0.00015000000000000001

Getting the following error: Request error: {"code":-3,"message":"Invalid amount"}

This code used to work around ~1 month ago and I'm wondering if anything has changed... any help is appreciated.
This shouldn't have ever worked. There are way too many decimal places in your second output. Bitcoin only goes down to 8 decimal places, anything beyond that is invalid.
newbie
Activity: 7
Merit: 0
October 29, 2019, 04:35:09 PM
#1
Hello everyone,

I am calling bitcoin RPC createrawtransaction command with the following args:

arg 1:
Code:
[{"txid":"TXID","vout":19,"address":"ADDR","label":"","scriptPubKey":"PUB_KEY","amount":0.0002,"confirmations":139242,"spendable":true,"solvable":true,"desc":"...","safe":true,"priority":27.8484}]

arg 2:
Code:
ADDR => 0.00005
ADDR => 0.00015000000000000001

Getting the following error: Request error: {"code":-3,"message":"Invalid amount"}

This code used to work around ~1 month ago and I'm wondering if anything has changed... any help is appreciated.
Jump to: