• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
SmartHoldem Community

Community

Подключение к DevNet

Scheduled Pinned Locked Moved Блоги
2 Posts 2 Posters 2.0k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • TechnoL0gT Offline
    TechnoL0gT Offline
    TechnoL0g
    wrote on last edited by TechnoL0g
    #1
    1. Настроить кошелек https://github.com/smartholdem/smartholdem-wallet/releases
    • В настройки > управление сетями > Testnet
      добавить dev-seed: https://nodedev.smartholdem.io
      или/ Создать новую сеть и добавить dev-seed: https://nodedev.smartholdem.io
    • сохранить
    • может потребоваться перезапуск кошелька
    1. Переключиться на DevNet/Tesnet в верхнем меню
    2. Получить адрес D... и фразы
    3. Получить монеты в https://devfaucet.smartholdem.io/ (транзакция ~3 минуты)
    4. Обозреватель DEvNet http://devexplorer.smartholdem.io/#/
    5. При использовании https://github.com/smartholdem/sthjs-wrapper с DevNet в формировании транзакций необходимо указать версию dev-сети в options {version: 0x1e} (для mainnet указывать версию не требуется)
    const smartholdemApi = require("sthjs-wrapper");
    
    smartholdemApi.init("dev"); // devnet or main
    
    // Сформировать транзакцию
    let options = {
      version: 0x1e, //это версия dev-net
      vendorField: "Comment field (optional)",
      secondPassphrase: "Sender second passphrase (optional)"
    };
    let tx = smartholdemApi.createTransaction("Sender passphrase",
                          "Address of recipient",
                          "Amount to send in 10^8 (Integer)",
                          options);
    
    console.log(tx);
    
    // отправить в сеть
    let transaction = smartholdemApi.sendTransactions([tx], (error, success, response) => {
        console.log(response);
    });
    
    
    1. Установка ноды DevNet
    git clone -b development https://github.com/smartholdem/smartholdem-node-a.git
    

    далее по инструкции https://github.com/smartholdem/smartholdem-node-a

    Эксперт по сверхъестественному в области IT / Expert in the supernatural the IT

    P 1 Reply Last reply
    6
  • P Offline
    P Offline
    pegas55
    replied to TechnoL0g on last edited by
    #2

    @technol0g Что это? И зачем?

    1 Reply Last reply
    1

Decentralized Gaming Platform
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search