Bitcoin Forum

Bitcoin => Project Development => Topic started by: nyeko_12 on April 16, 2017, 01:27:04 AM



Title: Segwit JS activation countdown widget?
Post by: nyeko_12 on April 16, 2017, 01:27:04 AM
Does anyone have Segwit JS activation countdown widget for Bitcoin,Litecoin and Vertcoin(BTC,LTC & VTC)? I could only find python scripts of the vertcoin one, i need a JS one for my static website.


Title: Re: Segwit JS activation countdown widget?
Post by: divinemaniac on April 16, 2017, 07:04:23 AM
hmm. I don't thing that there is an exact time of when Segwit will be activated. Thus, there should not be a way to make a countdown for it.
But, you could have a JS app which looks at how many % of miners/nodes are signalling SegWit.


Title: Re: Segwit JS activation countdown widget?
Post by: nyeko_12 on April 16, 2017, 01:54:06 PM
hmm. I don't thing that there is an exact time of when Segwit will be activated. Thus, there should not be a way to make a countdown for it.
But, you could have a JS app which looks at how many % of miners/nodes are signalling SegWit.

Thats what i kind of want to do(a JS script(app) that shows the % of miners/ that are signaling Segwit for These cryptocurrencies. do you know how to do a JS code for signaling % of miner/nodes that are signaling segwit? if so could you please send me the JS code for it via PM? 

 


Title: Re: Segwit JS activation countdown widget?
Post by: BrewMaster on April 16, 2017, 03:41:50 PM
if you have already found a python version of it that works then all you need to do is to "translate" python to JavaScript.

for that you can open a topic in services board and pay someone to do it for you.

or go to a python related forum and ask someone nicely to do it for you or better yet pay them with bitcoin and introduce them to bitcoin.

if you know JavaScript yourself (at least some basics) you can also find tools online to convert python to JS.
google results example:
http://www.transcrypt.org/
http://pyjs.org/
https://github.com/timothycrosley/jiphy


Title: Re: Segwit JS activation countdown widget?
Post by: nyeko_12 on April 17, 2017, 12:36:17 PM
if you have already found a python version of it that works then all you need to do is to "translate" python to JavaScript.

for that you can open a topic in services board and pay someone to do it for you.

or go to a python related forum and ask someone nicely to do it for you or better yet pay them with bitcoin and introduce them to bitcoin.

if you know JavaScript yourself (at least some basics) you can also find tools online to convert python to JS.
google results example:
http://www.transcrypt.org/
http://pyjs.org/
https://github.com/timothycrosley/jiphy

I have only found the python file for vertcoin.
Not Litecoin or/& bitcoin.


Title: Re: Segwit JS activation countdown widget?
Post by: esotericizm on April 18, 2017, 01:26:25 AM
Not really going to work well if you need it to be done client side. You either need to be running a wallet or requesting the blocks for each activation period from a block explorer. Best way might be to use jquery and scrape the data you need from the other various countdowns.