spend from p2sh with bitcoinj

i am try to spend the coins on a p2sh first, i generate p2sh and send coins to that p2sh ECKey clientKey = new ECKey(); ECKey serverKey = new ECKey(); ECKey thirdPartyKey = new ECKey(); List<ECKey> keys = ImmutableList.of(clientKey, serverKey,thirdPartyKey); Script multisigScript = ScriptBuilder.createP2SHOutputScript(2, keys); String address = multisigScript.getToAddress(params).toString(); then i send coins to the…

Details