Bitcoin Forum
May 23, 2024, 07:38:35 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to assemble this type of pay to pubkey hash transaction ?  (Read 135 times)
ytrezq (OP)
Member
**
Offline Offline

Activity: 285
Merit: 27


View Profile
April 03, 2019, 11:41:36 PM
 #1

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.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
April 05, 2019, 06:20:24 PM
 #2

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.
ytrezq (OP)
Member
**
Offline Offline

Activity: 285
Merit: 27


View Profile
April 06, 2019, 07:52:01 AM
 #3

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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!