I'm not sure I understand your question. But it seems like you want to build a transaction that spends from 2 inputs, one being a good old P2SH and the other a P2WSH. While I think that is certainly possible, I don't think it is what you'd usually see in the wild because wallets work with segwit or without.
Then again, I'm not sure what your question is. Nelson On Tuesday, June 25, 2019 at 5:40:50 AM UTC-5, 闫培苓 wrote: > > anyone who can help me,thanks > > -- You received this message because you are subscribed to the Google Groups "bitcoinj" group. To unsubscribe from this group and stop receiving emails from it, send an email to bitcoinj+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/bitcoinj/4e34016d-820c-44ab-8eab-bd383a5cdade%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.