Bitcoin Forum
July 05, 2024, 06:38:40 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Lock a wallet  (Read 396 times)
Zosuda (OP)
Member
**
Offline Offline

Activity: 92
Merit: 10


View Profile
September 26, 2016, 11:54:14 AM
 #1

Hello is there anyway to lock a Bitcoin wallet for a set amount of time for example 6 months.

As soon as I save I get to around 0.2 and cant help but spend it.

Would love to lock my finals away while I save.

Thanks for reading.
altcoinhosting
Hero Member
*****
Offline Offline

Activity: 896
Merit: 1006


View Profile
September 26, 2016, 11:58:39 AM
 #2

Bitcoin core has a way to UNlock your wallet for a certain period. I don't think it can lock it for a certain period of time tough (walletlock hasn't got any parameters).

You could send the funds to yourself and use tx.nLockTime to lock the transaction untill a certain block??? I've never done this myself, but more info can be found here: https://bitcointalk.org/index.php?topic=321550.0

An other option is to generate a 2 of 2 multisig wallet, so the signature of your spouse/best friend is needed to spend the funds?

Just on a personal note: why do you have the urge to spend every satoshi you have? A gambling problem? In this case, it might be wise to seek some help instead of searching for a technical solution... Just my personal opinion tough, you can do whatever you want, it's your life Wink

achow101
Staff
Legendary
*
Offline Offline

Activity: 3444
Merit: 6746


Just writing some code


View Profile WWW
September 26, 2016, 12:10:24 PM
 #3

You could create an address which uses OP_CHECKLOCKTIMEVERIFY. This would prevent any bitcoin from that address from being spent until you are past a certain locktime.

Zosuda (OP)
Member
**
Offline Offline

Activity: 92
Merit: 10


View Profile
September 26, 2016, 12:39:55 PM
 #4

Bitcoin core has a way to UNlock your wallet for a certain period. I don't think it can lock it for a certain period of time tough (walletlock hasn't got any parameters).

You could send the funds to yourself and use tx.nLockTime to lock the transaction untill a certain block??? I've never done this myself, but more info can be found here: https://bitcointalk.org/index.php?topic=321550.0

An other option is to generate a 2 of 2 multisig wallet, so the signature of your spouse/best friend is needed to spend the funds?

Just on a personal note: why do you have the urge to spend every satoshi you have? A gambling problem? In this case, it might be wise to seek some help instead of searching for a technical solution... Just my personal opinion tough, you can do whatever you want, it's your life Wink

I don't have an issue :p just see something to add to my collection and buy it lol

Thanks for the tips will look into them Smiley
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!