0

Can we send Pay-to-PubKeyHash (P2PKH) to an address which starts from 3 . I tried to send raw transaction to one of my coinbase address which starts from 3 but it send to completely different address which starts from 1 . How can I send transaction to address which starts from 3 ?

1
  • Sounds like you are trying to sent bitcoin to a P2SH address (beginning with a 3) at Coinbase.com ? How are you constructing the transaction? May 10, 2019 at 20:05

1 Answer 1

2

Can we send Pay-to-PubKeyHash (P2PKH) to an address which starts from 3

No.

How can I send transaction to address which starts from 3 ?

Construct scriptPub as OP_DUP OP_PUSH(bytes20) OP_EQUAL where bytes20 decoded from 3-address

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.