I'm trying to create&sign an offline raw transaction, but I'm stuck with signing it.
What I did tried far to send a single input to a new address:
createrawtransaction '[{"txid":"here-i-put-the-tx-where-clams-were-received","vout":here-is-the-output-number-in-the-tx}]' '{"here-is-the-recipient-address":here-comes-the-amount-to-send}'
That worked and returned a hex-string. But now I want to sign it:
signrawtransaction "here-goes-the-hex-string-from-above" '[{"txid":"here-is-the-tx-again","vout":here-again-the-output-number,"scriptPubKey":"WHERE-DO-I-GET-THIS-FROM?"}]' '["here-is-the-private-key-from-the-sender-address"]'
I thought I could get the scriptPubKey via decoderawtransaction, but there is only an asm value, and no hex.