sorry, in my previous post i made the mistake of hashing the wrong thing as public key (forgot to remove the push data OP code). i removed the post right away but it seems i wasn't fast enough.
your public key is indeed correct and the hash is "b4a4ee3ae0d7816333efa3c12c14e345501b0bc5" but your signature is not valid.
broadcasting it with Electrum also gives the same error on OP_CHECKSIG operation step.
in order to sign with bitcoin core, the console method i know of is to use the signrawtransactionwithkey command in your console. you should provide your transaction that needs signing:
0100000001b6bf17c58f3cd20a9b8640f7ad8acbac429e5c6a3b8229454b5b25a91417461b000000001976a914b4a4ee3ae0d7816333efa3c12c14e345501b0bc588acffffffff01002d3101000000001976a914ba9dfc0d1e1ec0369e72a657551ae5b7c9029daa88ac0000000001000000
your private key
cVP1vgAKueUBEgDhbE9zS3yMP6ut4fqAFyCjmGsbZYeNjzR6Yxs5
your previous tranasction you are spending in this format:
'[{"txid":"1b461714a9255b4b4529823b6a5c9e42accb8aadf740869b0ad23c8fc517bfb6","vout":0, "scriptPubKey":"76a914b4a4ee3ae0d7816333efa3c12c14e345501b0bc588ac"}]'
I was able to figure it out, final question:
https://api.blockcypher.com/v1/btc/test3/txs/372f6c0ce5f54d64675f79d58916d492e691507f655d0a1765ce6ed9b90ee9c6I got the decoded tx_hex from chain.so: 0100000001b6bf17c58f3cd20a9b8640f7ad8acbac429e5c6a3b8229454b5b25a91417461b00000
0006b48304502210091e338c62140e64f8a9786f2fff4ae5dce4c9f9a20f117585f19e382628f80
7d022012ef082eb8e8dcb85b39ea4fba65c6724e24cd45457b29bac52d528b9b7668b40121022f5
d96fa55a9edc93f0a4080c992272a6e086930937018be3534289914ff37d4ffffffff0218293101
000000001976a914ba9dfc0d1e1ec0369e72a657551ae5b7c9029daa88ac7eec590000000000197
6a914b4a4ee3ae0d7816333efa3c12c14e345501b0bc588ac00000000
any programmatic way to extract the scriptPubKey for this transaction?
How can I find the scriptPubKey to use for a given transaction? So i can get the current balance and needed txout & scriptPubKey to unlock it?