Bitcoin Forum

Bitcoin => Project Development => Topic started by: SwayStar123 on June 27, 2018, 05:19:29 PM



Title: x
Post by: SwayStar123 on June 27, 2018, 05:19:29 PM
x


Title: Re: HelpMeHodl
Post by: KingScorpio on June 27, 2018, 05:33:03 PM
A simple smart contract which does what the title says! "Help Me Hodl" it is for all the emotional traders who cant help but sell at a loss because of their emotions, even if they know its not the right choice

This contracts takes whatever money you send to it and sends it back to you in exactly 2102000 blocks (approximately 1 year) so you can gain the full price appreciation without the limitations of your emotions :D


smart contracts can easily be outdone, simply by removing funds out of the wallet that is interlinked with smart contracts, leaving an empty wallet behind.

no way such a contract can then be enforced.



Title: Re: HelpMeHodl
Post by: entropy0 on June 29, 2018, 03:09:35 AM
unless the funds are placed in an intermediary account


Title: Re: HelpMeHodl
Post by: eternalgloom on June 29, 2018, 08:51:05 AM
I just do the same thing through coinb.in, it's reasonably easy and you can just set the locktime yourself.
You can definitely turn something similar into a service, people would probably be interested in it.

If you manage to build a service that does this, please update :)


Title: Re: HelpMeHodl
Post by: mocacinno on June 29, 2018, 12:42:32 PM
I just do the same thing through coinb.in, it's reasonably easy and you can just set the locktime yourself.
You can definitely turn something similar into a service, people would probably be interested in it.

If you manage to build a service that does this, please update :)

thats what i was thinking, most people dont know what locking and things like that are, so this is for them, and untill i learn to code this will just be a dream as i have no funds to hire someone to do it :(

you don't need to hire somebody, like eternalgloom already said: if you don't know how to create a transaction manually, you can always use coinb.in

  • suft to coinb.in
  • download their sourcecode
  • unzip the sourcecode, open the index.html
  • go to new => transaction
  • enter a funded address for which you own the private key
  • click on "advanced", enter a locktime
  • as output, enter an address whose private key you also own... The value of the output should be the sum of the values of the inputs minus the fee*
  • generate the unsigned transaction, save it on your disk, go offline
  • open coinb.in's index.html again, click on sign
  • paste your unsigned tx + private key, sign the transaction, save the signed transaction, reboot your pc, go back online
  • use coinb.in or any other service that allows you to broadcast signed transactions to broadcast your transaction

* in order to calculate an appropriate fee, you can always use https://coinb.in/#fees

EDIT on the 4th of june 2018: it seem like coinb.in might have some problems signing, it might be best to try out this procedure on the testnet*
source: https://bitcointalk.org/index.php?topic=4594240.0;topicseen


Title: Re: HelpMeHodl
Post by: Nanashev on July 02, 2018, 11:11:19 AM
I think if someone will love to HODL their bitcoin, they would be no need giving the coin out to any person or organisation. Before one invest in bitcoin, he or she must know that is a calculated risk and henceforth be ready to bear the consequence. For all i know most of these people or organisations who promise you HODL your bitcoins on your behalf and give you huge profits in addition are fraudsters. So please watch out!


Title: Re: HelpMeHodl
Post by: bitcoinfuck on July 02, 2018, 03:39:28 PM
Even Bitcoin already support this features with nTimelock, CSV, CLTV or HTLC. You also can set the timestamp or block height for configure when the bitcoin is spendable.

I don't see the point of your thread.

it has point cause its on the ethereum, and small miners prefer ETH over BTC


Title: Re: HelpMeHodl
Post by: eternalgloom on July 03, 2018, 11:05:17 AM
I just do the same thing through coinb.in, it's reasonably easy and you can just set the locktime yourself.
You can definitely turn something similar into a service, people would probably be interested in it.

If you manage to build a service that does this, please update :)

thats what i was thinking, most people dont know what locking and things like that are, so this is for them, and untill i learn to code this will just be a dream as i have no funds to hire someone to do it :(

you don't need to hire somebody, like eternalgloom already said: if you don't know how to create a transaction manually, you can always use coinb.in

  • suft to coinb.in
  • download their sourcecode
  • unzip the sourcecode, open the index.html
  • go to new => transaction
  • enter a funded address for which you own the private key
  • click on "advanced", enter a locktime
  • as output, enter an address whose private key you also own... The value of the output should be the sum of the values of the inputs minus the fee*
  • generate the unsigned transaction, save it on your disk, go offline
  • open coinb.in's index.html again, click on sign
  • paste your unsigned tx + private key, sign the transaction, save the signed transaction, reboot your pc, go back online
  • use coinb.in or any other service that allows you to broadcast signed transactions to broadcast your transaction

* in order to calculate an appropriate fee, you can always use https://coinb.in/#fees

Yeah indeed that's the process, but I can see that it could be a bit daunting for newbies.
I could imagine that new users might misplace their redeem script or do not know how to get their public key.

When I tried it for the first time, I made sure that I read everything twice just to not make any errors.
This could be done a lot easier IMO.


Title: Re: HelpMeHodl
Post by: Dilerium90 on July 03, 2018, 11:17:38 AM
A simple smart contract which does what the title says! "Help Me Hodl" it is for all the emotional traders who cant help but sell at a loss because of their emotions, even if they know its not the right choice

This contracts takes whatever money you send to it and sends it back to you in exactly 2102000 blocks (approximately 1 year) so you can gain the full price appreciation without the limitations of your emotions :D

Wow. That's really interesting way to "HODL" coins. I didn't know that. But is it have risk? I mean, when if there will be some changes in ecosystem, don't i lose my coins?
And i will be very fun, when the price of the coin will go higher and you can't sell it.


Title: Re: HelpMeHodl
Post by: eternalgloom on July 03, 2018, 01:06:25 PM
A simple smart contract which does what the title says! "Help Me Hodl" it is for all the emotional traders who cant help but sell at a loss because of their emotions, even if they know its not the right choice

This contracts takes whatever money you send to it and sends it back to you in exactly 2102000 blocks (approximately 1 year) so you can gain the full price appreciation without the limitations of your emotions :D

Wow. That's really interesting way to "HODL" coins. I didn't know that. But is it have risk? I mean, when if there will be some changes in ecosystem, don't i lose my coins?
And i will be very fun, when the price of the coin will go higher and you can't sell it.

What OP is suggesting doesn't actually exist you know... Not in the way he's describing it at least.

 OP_CHECKLOCKTIMEVERIFY (OP_HODL) is similar, but isn't recommended for far-future time locks.
I think timelocks of a year should be fine, but any longer than that could spell disaster.

More info here:
https://en.bitcoin.it/wiki/Timelock#Far-future_locks


Title: Re: HelpMeHodl
Post by: TryNinja on July 03, 2018, 03:25:32 PM
I dont know if its possible but maybe coins will be sent back once set profit is reached? like 700$ per coin or perhaps 30% profit? (increase in price atleast, not profit per say)
You can't do this without a third party.

Who would set the price? 1 BTC is always 1 BTC.


Title: Re: HelpMeHodl
Post by: TryNinja on July 03, 2018, 04:31:41 PM
again this is  for ethereum not bitcoin, price would be taken from coinmarketcap, they have usd and btc  value both, so you can use either to set
Sure... I think you should always make that clear. Keep in mind that you made this thread in the "Bitcoin -> Project Development" board. Which is why I always think you are talking about BTC and not ETH.

Anyways, it's probably possible, but you will always rely on CoinMarketCap. What if they go down? Or if they ever put a fake price/bug out and show a higher/lower price? It's not ideal having to rely on a third party.