Bitcoin Forum

Other => Serious discussion => Topic started by: ytrezq on April 03, 2019, 11:41:36 PM



Title: How to assemble this type of pay to pubkey hash transaction ?
Post by: ytrezq on April 03, 2019, 11:41:36 PM
I’d like to perform a transaction like this…
Code:
<expiry time> CHECKLOCKTIMEVERIFY DROP DUP HASH160 <pubKeyHash> EQUALVERIFY CHECKSIG
Which brings many questions :
— How to encode
Code:
<expiry time>
for setting the timing as a block height ?
— How to convert an address to a pubkeyHash ?
— How to assemble this into bytecode the network can understand ?
— How to automatically select utxo ?
— How to publish the resulting transaction to Bitcoin testnet ?

I’d like to install nothing. Which means I’d prefer a web service. Otherwise Windows or Linux is Ok.
Also, yes I’d like to do this from a Wallet or a private key as Text. And as result, I don’t want to perform signing an utxo selection manually. I mean automatically like with a normal transaction as only the output needs to be manual.


Title: Re: How to assemble this type of pay to pubkey hash transaction ?
Post by: jackg on April 05, 2019, 06:20:24 PM
So niw you don't want a wallet?

You can make a virtual environment, install one and then just delete everything I don't knie why you're making it so hard for yourself.

Look at python venv and how it works for a virtual environment.


Title: Re: How to assemble this type of pay to pubkey hash transaction ?
Post by: ytrezq on April 06, 2019, 07:52:01 AM
So niw you don't want a wallet?

You can make a virtual environment, install one and then just delete everything I don't knie why you're making it so hard for yourself.

Look at python venv and how it works for a virtual environment.
I installed and downloaded the blockchain of Bitcoin core since then.