Bitcoin Forum
November 13, 2024, 01:33:53 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: x  (Read 164 times)
SwayStar123 (OP)
Member
**
Offline Offline

Activity: 77
Merit: 147

https://watchdominion.org


View Profile
June 27, 2018, 05:19:29 PM
Last edit: October 07, 2023, 12:26:11 PM by SwayStar123
 #1

x

KingScorpio
Sr. Member
****
Offline Offline

Activity: 1470
Merit: 325



View Profile WWW
June 27, 2018, 05:33:03 PM
 #2

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 Cheesy


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.


entropy0
Full Member
***
Offline Offline

Activity: 412
Merit: 100


Que sera sera


View Profile
June 29, 2018, 03:09:35 AM
 #3

unless the funds are placed in an intermediary account

Grow your Discord community with panda-bot! https://pandabot.fatpanda.club
eternalgloom
Legendary
*
Offline Offline

Activity: 1792
Merit: 1283



View Profile WWW
June 29, 2018, 08:51:05 AM
 #4

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 Smiley

mocacinno
Legendary
*
Offline Offline

Activity: 3570
Merit: 5233


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
June 29, 2018, 12:42:32 PM
Last edit: July 04, 2018, 11:05:25 AM by mocacinno
 #5

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 Smiley

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 Sad

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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Nanashev
Newbie
*
Offline Offline

Activity: 75
Merit: 0


View Profile
July 02, 2018, 11:11:19 AM
 #6

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!
bitcoinfuck
Full Member
***
Offline Offline

Activity: 634
Merit: 106


Europe Belongs To Christians


View Profile
July 02, 2018, 03:39:28 PM
 #7

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

[/url]
eternalgloom
Legendary
*
Offline Offline

Activity: 1792
Merit: 1283



View Profile WWW
July 03, 2018, 11:05:17 AM
 #8

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 Smiley

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 Sad

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.

Dilerium90
Full Member
***
Offline Offline

Activity: 756
Merit: 108



View Profile
July 03, 2018, 11:17:38 AM
 #9

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 Cheesy

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.

PERSISTENCE   //   BUY XPRT now!
●✦●───●✦●───  Protocol Powering Next-Gen Financial Products  ───●✦●───●✦●
│██ ██ ███ █████   DeFi    NFT    PoS  █████ ███ ██ ██│
eternalgloom
Legendary
*
Offline Offline

Activity: 1792
Merit: 1283



View Profile WWW
July 03, 2018, 01:06:25 PM
 #10

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 Cheesy

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

TryNinja
Legendary
*
Offline Offline

Activity: 3010
Merit: 7441


Top Crypto Casino


View Profile WWW
July 03, 2018, 03:25:32 PM
 #11

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.

███████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████

███████████████████████
.
BC.GAME
▄▄▀▀▀▀▀▀▀▄▄
▄▀▀░▄██▀░▀██▄░▀▀▄
▄▀░▐▀▄░▀░░▀░░▀░▄▀▌░▀▄
▄▀▄█▐░▀▄▀▀▀▀▀▄▀░▌█▄▀▄
▄▀░▀░░█░▄███████▄░█░░▀░▀▄
█░█░▀░█████████████░▀░█░█
█░██░▀█▀▀█▄▄█▀▀█▀░██░█
█░█▀██░█▀▀██▀▀█░██▀█░█
▀▄▀██░░░▀▀▄▌▐▄▀▀░░░██▀▄▀
▀▄▀██░░▄░▀▄█▄▀░▄░░██▀▄▀
▀▄░▀█░▄▄▄░▀░▄▄▄░█▀░▄▀
▀▄▄▀▀███▄███▀▀▄▄▀
██████▄▄▄▄▄▄▄██████
.
..CASINO....SPORTS....RACING..


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
TryNinja
Legendary
*
Offline Offline

Activity: 3010
Merit: 7441


Top Crypto Casino


View Profile WWW
July 03, 2018, 04:31:41 PM
 #12

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.

███████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████

███████████████████████
.
BC.GAME
▄▄▀▀▀▀▀▀▀▄▄
▄▀▀░▄██▀░▀██▄░▀▀▄
▄▀░▐▀▄░▀░░▀░░▀░▄▀▌░▀▄
▄▀▄█▐░▀▄▀▀▀▀▀▄▀░▌█▄▀▄
▄▀░▀░░█░▄███████▄░█░░▀░▀▄
█░█░▀░█████████████░▀░█░█
█░██░▀█▀▀█▄▄█▀▀█▀░██░█
█░█▀██░█▀▀██▀▀█░██▀█░█
▀▄▀██░░░▀▀▄▌▐▄▀▀░░░██▀▄▀
▀▄▀██░░▄░▀▄█▄▀░▄░░██▀▄▀
▀▄░▀█░▄▄▄░▀░▄▄▄░█▀░▄▀
▀▄▄▀▀███▄███▀▀▄▄▀
██████▄▄▄▄▄▄▄██████
.
..CASINO....SPORTS....RACING..


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
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!