Search content
Sort by

Showing 20 of 80 results by igda23gh
Post
Topic
Board Обменники
Re: Сервис обмена криптовалют Top-Changer
by
igda23gh
on 12/03/2021, 02:43:26 UTC
Хороший обменник. Отработали быстро
Post
Topic
Board Кодеры
Re: Помогите!
by
igda23gh
on 14/11/2020, 17:47:03 UTC
Попытаюсь пояснить на примере.
Откройте код страницы:
view-source:https://ads.0xbt.net/ads.html
Вы увидите там скрипт запроса к сети эфира:
Code:
<script>
    var web3 = new Web3(new Web3.providers.HttpProvider("https://node3.web3api.com"));
    // var web3 = new Web3(new Web3.providers.HttpProvider("https://mainnet.infura.io/v3/80f1c00345214da4bdbc4d02f35fb265"));
  
    var version = web3.version.api;
    console.log(version);
    var MyContract;
    var myContractInstance;
    try {
        MyContract = web3.eth.contract([{"constant":true,"inputs":[],"name":"getAds","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newAds","type":"string"}],"name":"setAds","outputs":[],"payable":true,"stateMutability":"payable","type":"function"}]);
        myContractInstance = MyContract.at("0x30783ee8fdf264f59a1846b24dbfc73ab4aa7d18");
    }
..............т.д...........................
Это применительно к данному контракту, адаптируйте под свой.

Далее - кнопка запроса:
Code:
<button type='button' id='btn_5' class="knopka" onclick="ethcall2('getAds', 'input_5','myanswer_5','string', '|string', 'btn_5');"><b><span style="color:white;">Get <i class="fa fa-btc"></i> Ads</span></b></button>
адаптируйте

Теперь подключение к Метамаск и отправление транзакций(в примере сеть бинанс):
view-source:https://ads.0xbt.net/ads-bsc.html
view-source:https://ads.0xbt.net/dapp.html
Те же манипуляции........)))


Я не могу понять как эту проблему обойти. Пишу через VCode Studio. Юзаю Node js.
В IDE проблемы нет, но со стороны клиента - такая ошибка.
Насколько я понял, метод require не используется браузерами. Но как мне тогда позднее использовать этот код на страничке сайта? И как проверять работоспособность сейчас.

Post
Topic
Board Кодеры
Re: Помогите!
by
igda23gh
on 12/11/2020, 11:06:17 UTC
В принципе я могу вам поспособствовать.
Но здесь уже нужно использовать js.
Я так же как и вы начинал с нуля и до сих пор не соображаю в js, так что до всего дохожу эмпирически.
Попробуйте на примере https://ads.0xbt.net самостоятельно разобраться, да потратите время, но иначе так и застрянете в ж....)))
Ну уж если не сообразите, то кидайте свой контракт и как будет время, сделаю вам вашу страничку/dapp)))

Solidity  во многом похож на Js. Я тоже знаю его довольно поверхностно, но в строках кода ориентироваться могу. Эмпирически я дошел до понимания solidity. Писал и читал, пока однажды меня просто не осенило, что перед глазами теперь вполне понятные команды, а не набор символов. Вообще жалею, что еще в детстве не начал изучать программирование).


Спасибо за ссылку. Я внимательно изучу всё. Но если у вас есть ссылки на какие-нибудь примеры реализации чего-то пообного, то буду рад, если вы поделитесь)
Post
Topic
Board Кодеры
Re: Помогите!
by
igda23gh
on 12/11/2020, 11:02:35 UTC
Чистый браузер это песочница, из нее во взрослый мир блокчейнов не пускают.
Так что если очень хочется из песочницы браузера пообщаться со взрослыми с блокчейном, то нужен посредник - папа или мама плагин метамаск например. Этот посредник должен уметь принимать сообщения от детей скриптов из песочницы браузера чтобы потом переводить эти сообщения на язык взрослых блокчейнов.
Таким образом, ваша задача состоит сейчас в том, чтобы научиться говорить хотя бы на том уровне, чтобы вас понимали родные папа и мама прочитать документацию к АПИ функциям метамаска которые обеспечивают интерфес между браузерными скриптами и блокчейном

Спасибо за ответ. Я в курсе этой теоретической части. Вся загвоздка в том, что у меня не хватает знаний для реализации. В случае со смарт-контрактами, можно изучить Solidity на начальном уровне и просмотрев коды чужих контрактов разобраться как реализовать что-то своё. Но в моем случае, примеры готового кода посмотреть просто негде. Я не нашел ничего, что при нажатии на кнопку (допустим регистрации) обращалось бы к метамаску и позволяло через поля на сайте отправлять инфу в блокчейн.
Post
Topic
Board Кодеры
Topic OP
Помогите!
by
igda23gh
on 10/11/2020, 16:11:54 UTC
Приветствую. Увлекся программированием. Познания у меня в этом вопросе слабые и разрозненные. Осилил написание простенького смарт-контракта ETH. Теперь хотелось бы попробовать сделать простенькую HTML страничку с помощью которой можно было бы взаимодействовать со смарт-контрактом.

По содержанию, нужны два поля. Одно вписывает инфу в блокчейн обращаясь к функции, а другое считывает, если указать в нем предмет(адрес или id). А под этими полями главная кнопка которая обращается к плагину метамаска и формирует транзакцию, с заданными условиями (вроде определенного разработчиком ценника). Так же, важно чтобы эта транзакция записывала в блокчейн инфу из первого поля, если таковая была указана.

Сколько не бился, в реализации так и не продвинулся. Знаю, что реализовать это нужно как то с web3js. Но примеров готового кода для такого решения нигде не нашел.

Буду благодарен тем кто откликнется и сможет написать в ветку такой код. А то я так и не пойму принцип его создания...

Заранее спасибо, тем кто откликнется.
Post
Topic
Board Service Announcements
Re: Ditex - cryptocurrency aggregator
by
igda23gh
on 09/09/2020, 09:47:04 UTC
How your service works?
Post
Topic
Board Service Announcements
Re: Ditex - cryptocurrency aggregator
by
igda23gh
on 29/07/2020, 02:15:00 UTC
Can I use any convenient wallet in my work?
Post
Topic
Board Service Announcements
Re: Ditex - cryptocurrency aggregator
by
igda23gh
on 22/07/2020, 01:50:18 UTC
Can I use any convenient wallet in my work?
Post
Topic
Board Service Announcements
Re: Miner Performance-Boosting Firmware By MSKMINER
by
igda23gh
on 17/07/2020, 06:33:11 UTC
Where can I read reviews from your customers?
Post
Topic
Board Service Announcements
Re: Miner Performance-Boosting Firmware By MSKMINER
by
igda23gh
on 13/07/2020, 04:02:16 UTC
The firmware looks like a logical way out of the situation, especially against the background of the large organizations occupying a large share of the bitcoin mining market. Does your project have competitors?
Post
Topic
Board Service Announcements
Re: Ditex - cryptocurrency aggregator
by
igda23gh
on 13/07/2020, 04:00:43 UTC
Does your project have competitors?
Post
Topic
Board Service Announcements
Re: MSKMINER Maintenance and sale of mining equipment
by
igda23gh
on 10/07/2020, 03:06:18 UTC
What devices do you have?

Read the author’s post, for starters.

Learn to understand the context. I ask about which devices are currently available, and not about what they offer in principle.
Post
Topic
Board Service Announcements
Re: MSKMINER Maintenance and sale of mining equipment
by
igda23gh
on 10/07/2020, 03:00:00 UTC
What devices do you have?
Post
Topic
Board Service Announcements
Re: Ditex - cryptocurrency aggregator
by
igda23gh
on 10/07/2020, 02:57:13 UTC
This is a great project. I will believe that you will develop and scale further.
Post
Topic
Board Service Announcements
Re: Ditex - cryptocurrency aggregator
by
igda23gh
on 03/07/2020, 05:07:52 UTC
Great project! I like the way your software works. I hope you do not abandon this business and continue to develop the project.
Thanks! We are glad that you are using our platform!

Great job guys. Very user-friendly interface.
Post
Topic
Board Service Announcements
Re: Ditex - cryptocurrency aggregator
by
igda23gh
on 26/06/2020, 04:14:39 UTC
Mike Novogratz Predicts Deadlines For New Bitcoin Rally

Mike Novogratz, the head of Galaxy Digital, a crypto-trading bank, is sure that institutional investors' attention to digital assets will push Bitcoin to growth in the next 6-24 months.

The billionaire admitted that he was in a hurry, trying to attract institutionalists to the digital asset market three years ago.  However, now, in his opinion, an excellent moment has come for a new attempt:

 “Galaxy can continue to invest in cryptocurrencies and other business areas, but the real core of our offer is serving institutional customers.  If they don’t come, then with luck we are all bad,”said Novograts. Also, the businessman is confident that the measures taken by the Fed to support the economy will affect the price of the coin.

“In the week after the crisis began, the Fed printed more dollars than for the entire period 2008-2009,” Novogratz claims. By this, he confirmed his April forecast, in which he noted that government anti-crisis measures make Bitcoin attractive to investors in the long term as a non-inflationary asset.



Mike is incompetent as a market analyst. He tells people only what is beneficial to his business. This is not the person, paying attention to the words of which you can evaluate the market and its prospects.

This time, he gave his forecast a wide spread between the dates). This is not analytics, but fortune telling.

If he guesses, he will boast about it. And if he makes a mistake, he will criticize the market and bitcoin, like John McCaffee. From bitcoin maximalist will turn into criticism).

If Novorgratz says to buy, then it's time to sell.)
Post
Topic
Board Service Announcements
Re: Ditex - cryptocurrency aggregator
by
igda23gh
on 15/06/2020, 07:22:45 UTC
All features work great. I will continue to monitor your development.
Post
Topic
Board Service Announcements
Re: Ditex - cryptocurrency aggregator
by
igda23gh
on 25/05/2020, 03:39:51 UTC
Do you have minimum and maximum limits?
Post
Topic
Board Trading Discussion
Re: LH-CRYPTO - analytics and news for traders
by
igda23gh
on 26/09/2019, 03:09:43 UTC
This is bad! I was badly hurt by the last drop in price. When will growth begin???

This is a cryptocurrency market. In order to trade here-you need good nerves and the ability to think quickly.
There's no point in panicking. Bitcoin will grow. You just need to wait for this moment and earn.
Post
Topic
Board Announcements (Altcoins)
Re: [ANN] Emirex Official - The Infrastructure for the New Digital Economy
by
igda23gh
on 26/09/2019, 03:07:05 UTC
The price of bitcoin has fallen dramatically. Are you sure that it is a good idea to conduct a token sale now?

Honestly the price of BTC is not an issue, if people believe in the project, it can work, plus we are talking about the exchange

I agree with you. But this does not mean that we can underestimate the value of the BTC price. Bitcoin price is an indicator of profitability and market growth. When the price falls too low - weak low-liquid exchanges will close.