bitpay / bitcore-lib

A pure and powerful JavaScript Bitcoin library
https://bitcore.io/
Other
611 stars 1.03k forks source link

how transaction add a P2SH ouput ? #274

Closed liwei00wade closed 5 years ago

liwei00wade commented 5 years ago

I want to send some coin to a P2SH address, How to build the transaction ?

matiu commented 5 years ago

please see the docs.

it depends, maybe https://github.com/bitpay/bitcore-lib/blob/master/docs/examples.md#create-a-2-of-3-multisig-p2sh-address.