"scriptPubKey":"WHERE-DO-I-GET-THIS-FROM?"
Run "validateaddress" on the address. It shows the scriptPubKey as one of the outputs.
I'm sorry, but I can't get it to work. When I run validateaddress with the sender address and use the pubkey it returns, signrawtransaction only returns the hex again and says it failed.
Is there any step-by-step example that guides through the entire process?
Also, does it matter if the client is not synced?