I have been doing a little experimenting with setting up a multisg wallet using only the vanilla client (full node).
These are my steps:
1. Create the wallet using bitcoind createmultisig and save the redeem script
2. Send some money in a transaction
3. decode raw transaction from above to get outputs / script pub key
4. create a raw transaction with syntax like:
./bitcoind createrawtransaction '[{"txid":"idfrom2","vout":0,"scriptPubKey":"pubkeyfrom3","redeemScript":"redeemscriptfrom1"}]' '{"destinationaddress":0.01}'
5. sign the raw transaction on 2 machines with the private keys
6. do sendrawtransaction <rawtransaction>
Unfortunately I got a -22 transaction rejected error!
I then tried submitting it at
https://blockchain.info/pushtx but got error "Script not of right size, expecting 2 but got 4"
I searched online and found another site,
https://coinb.in/send-raw-transaction.html, and managed to successfully send the raw transaction there.
It seems to be it's been 2 years since P2SH was committed to bitcoind. Am I doing something wrong or are these transactions not yet accepted on all nodes?