$30 off During Our Annual Pro Sale. View Details »

About Astar Network and building Astar Node / ODC2023

TKLab
August 26, 2023

About Astar Network and building Astar Node / ODC2023

Presentation about Astar Network & building "Astar Node" in ODC2023 Tokyo (45 min)

Explaining Astar Node Construction with a Focus on Developers.

Author: Astar Network Official Ambassador @tksarah
Twitter: @tsarah0822
Web: https://note.com/tksarahweb3

Astar Network:
 https://astar.network/

Open Source Developers Conference 2023 / in Odaiba
 https://event.ospn.jp/odc2023/

"Introducing the public blockchain “Astar Network” from Japan and easy Astar Node construction"
 https://event.ospn.jp/odc2023/session/1078676

TKLab

August 26, 2023
Tweet

More Decks by TKLab

Other Decks in Technology

Transcript

  1. Building Astar Nodes for Further Decentralization
    Aug 26, 2023
    Official Ambassdor | @tksarah
    Open Developers Conference 2023

    View Slide

  2. 本日、お伝えする事
    □ Astar Network 概要
    □ ユースケース
    □ Astar Node 構築

    View Slide

  3. 自己紹介
    ◼ キャリア
    現職: 大手システムインテグレータ所属
    旧職: ソフトウェア、外資系ハードウェアベンダー
    ◼ 経験・能力
    IT Infrastructure 、Cloud Native、
    Support / PreSales / R&D / Evangelist / Consul
    キャリアコンサルタント、専門学校講師、IT技術トレーナー
    ◼ Web3/Crypto 歴
    2021末~ 資産運用しなきゃ、から始まり・・・Web3 R&D
    2022/10~ Astar Network Official Ambassador
    E-Mail: [email protected]
    Web
    Web3: https://note.com/tksarahweb3/
    Other: https://www.tklab.cloud/
    @tsarah0822

    View Slide

  4. 2022年、”Web3元年”
    業界ではじめに発言した人
    言葉の提唱者は Ethereum の共同設立者 Gavin Wood 氏(2014年)
    【本流のWeb3】Web3 Foundation 創始者 “Web3.0(すりーどっとおー)”
    「よりインターネット空間でプライバシーが保たれた“Web”
    セキュアソーシャルオペレーティングシステムを作る・・・」
    マスアダプションに向けて・・・ナラティブを変えたのが(2021年末)
    【巷のWeb3】Andreessen Horowitz(a16z) “web3(ウェブスリー)”
    Web2との対比にとらえ、「ユーザーと開発者により所有され、
    トークンにより組織化された、未来のインターネット」
    Gavin Wood
    Ben Horowitz
    ※ a16z = この業界で一番大きいVC
    https://gavwood.com/dappsweb3.html

    View Slide

  5. マルチチェーン時代の
    スマートコントラクトプラットフォームを目指す
    日本発のパブリックブロックチェーン

    View Slide

  6. Astar Network
    ◼ 2021/12 Polkadot パラチェーンオークション3番目にスロット獲得
    ◼ 2022/1/17 メインネットローンチ
    ◼ 2022、2023 複数の国内の暗号資産取引所に上場
    名称 Astar Network
    開発主導 ファインダー、渡辺創太CEO率いる Stake Technologies PTE LTD
    プロジェクト目標 Web3.0 の基幹インフラを目指す
    ネイティブトークン ASTR
    最大供給量 7,000,000,000
    取引所 Binance , KuCoin , Kraken , Gate.io , OKX 他
    出資 Coincheck Labs、Polychain Capital、Coinbase、Binance、etc
    本田圭佑、Gavin Wood、など
    パートナーシップ Microsoft、Alchemy、DEA、Ginco、BOBG、Synamon、DJT、など

    View Slide

  7. Astar Network 特徴
    Web2 開発者もシームレスに
    Web3 へ参入
    次世代インターネットともいえる
    世界観、真の相互運用性を実現
    開発者の参入時と継続的な開発
    支援による、エコシステムの成長
    #インセンティブ革命
    Multichain Smart
    Contracts
    Cross-chain Application
    Web2 + Web3
    Cross-virtual machine
    Build2Earn
    dApp Staking

    View Slide

  8. dApp Staking (Build 2 Earn)
    Source: https://portal.astar.network/

    View Slide

  9. 【活用事例】天野 喜孝 先生 、初のNFT

    View Slide

  10. 【活用事例】“バーチャル”と“リアル”をつなげた
    Source: https://note.com/tksarahweb3/n/nae6934c764a9
    Source: https://www.calbee.co.jp/newsrelease/220721.php
    • カルビーのご家庭でのごみの嵩(かさ)を削減する取り組み「折パケ」とのコラボ
    • ポテチのおまけがNFTのキャラクター
    • ポテチを食べてNFTキャラクターを育てる
    • ポテチがおいしい、育て、何が生まれるかを楽しむ
    • 更にポテチNFT保有者には今後新たなデジタル体験も予定
    2023年4月
    2022年7月
    Source: https://note.com/tksarahweb3/n/n63393c0db757

    View Slide

  11. 2023 Starmap
    https://astar.network/starmap/

    View Slide

  12. Astar 2.0
    Source: https://astar.network/astar2/
    2023/6/15

    View Slide

  13. “Supernova”
    Source: Sota Watanabe’s speech at WebX conference

    View Slide

  14. Astar Network 3つ のNode
    ◼ Archive Node(アーカイブノード)
    ◼ 過去のブロックの履歴を保存
    ◼ Collator Node
    ◼ トランザクションを候補となるブロックに集約(ブロック生成)
    ◼ バリデータのために状態遷移証明を作成
    ◼ 最新のステート遷移、およびステート遷移に関する証拠をバリデーターに伝達
    ※ Collator 自体がチェーンのセキュリティを担保した役割を持っているわけではない
    ※ ネットワークのセキュリティ担保をしているのは母艦である “Polkadot” のバリデータである
    ◼ Full Node
    ◼ 現在の状態と最新のブロック (デフォルトでは 256 ブロック) のみを保存

    View Slide

  15. Astar Node 構築 – サマリー
    Astar アーカイブノード を ラズパイで稼働
    How to run an Astar Node
    1. Rasberry Pi 400 購入
    2. 外付け SSD、他デバイス 購入
    3. 専用 Ubuntu インストール
    4. Ubuntu 起動
    5. Astar Node (astar-collator) の設定
    6. Astar Node (astar-collator) の起動
    おまけ
    Prometheus & Grafana の導入をして、状態チェック Source:
    Raspberry Pi で Astar Node 動かす①、②、③
    https://note.com/tksarahweb3/n/nb79de3ba53fb
    https://note.com/tksarahweb3/n/nd50f48cf4c50
    https://note.com/tksarahweb3/n/nb7b85f70a629

    View Slide

  16. Astar Node 構築 - 1/3
    対象はアーカイブノード
    Step1:
    必要なものをそろえる
    https://docs.astar.network/docs/build/nodes/archive-node/
    PC、ストレージ、インターネット環境、OS(Ubuntu)
    ※ 4Core,8GB Memory, HDD (>1TB)でも可
    マシンスペック

    View Slide

  17. Astar Node 構築 - 2/3
    対象はアーカイブノード
    Step2:
    OS Ubuntu がインストールされたドライブを用意する
    1, USB フラッシュメモリ or SSD or SDカード の用意
    2, Rufus の用意・・・ ブータブルドライブを作るソフトウェア
    3, ISO の用意・・・ Ubuntu サイトからダウンロード
    1~3を使って、Ubuntu ブータブルドライブを作る
    https://ubuntu.com/tutorials/create-a-usb-stick-on-windows#1-overview
    Ubuntu のバージョンはその時の安定版で問題ないと推測。
    固有のISSUEなどについては、UbuntuやAstar Network 側のGithub
    などを要参照する。
    インストール方法は2種類
    フルセットアップ or Docker コンテナ
    今回はフルセットアップで解説

    View Slide

  18. Astar Node 構築 - 3/3
    対象はアーカイブノード
    Step3:
    Ubuntu を起動して、いざ セットアップ
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt install -y adduser libfontconfig1
    wget $(curl -s
    https://api.github.com/repos/AstarNetwork/Astar/releases/latest | grep
    "tag_name" | awk '{print
    "https://github.com/AstarNetwork/Astar/releases/download/" substr($2,
    2, length($2)-3) "/astar-collator-v" substr($2, 3, length($2)-4) "-ubuntu-
    x86_64.tar.gz"}‘)
    tar zxf astar-collator-v5.11.0-ubuntu-x86_64.tar.gz
    sudo useradd --no-create-home --shell /usr/sbin/nologin astar
    sudo mv ./astar-collator /usr/local/bin/
    sudo chmod +x /usr/local/bin/astar-collator
    sudo mkdir /var/lib/astar
    sudo chown astar:astar /var/lib/astar
    sudo vi /etc/systemd/system/astar.service
    sudo systemctl enable astar.service
    sudo systemctl start astar
    journalctl -f -u astar.service -n 100
    解説:
    apt-get でアップデート
    個別事前に必要なパッケージをインストール
    バイナリをダウンロード
    バイナリを解凍 https://docs.astar.network/docs/build/nodes/archive-node/binary
    解説:
    astar ユーザを作成
    バイナリを移動、実行権限付与
    データディレクトリを作成、属性変更
    設定ファイル(systemd のユニットファイル)の編集
    サービス起動
    起動状態のチェック
    設定ファイルの形式は ini 形式で、
    これについてはドキュメントを参照
    しながら、設定をする。
    個別設定としては「NODE_NAME」
    くらい。

    View Slide

  19. 【参考】起動時ログ

    May 14 22:48:26 hogehost systemd[1]: Started Astar Archive node.

    May 14 22:48:26 hogehost astar-collator[2858]: 2023-05-14 22:48:26 Astar Collator

    May 14 22:48:26 hogehost astar-collator[2858]: 2023-05-14 22:48:26 ✌️ version 5.4.0-6256fbda03a

    May 14 22:48:26 hogehost astar-collator[2858]: 2023-05-14 22:48:26 ❤️ by Stake Technologies , 2019-2023

    May 14 22:48:26 hogehost astar-collator[2858]: 2023-05-14 22:48:26 📋 Chain specification: Astar

    May 14 22:48:26 hogehost astar-collator[2858]: 2023-05-14 22:48:26 🏷 Node name: HOGE_RasPi

    May 14 22:48:26 hogehost astar-collator[2858]: 2023-05-14 22:48:26 👤 Role: FULL

    May 14 22:48:26 hogehost astar-collator[2858]: 2023-05-14 22:48:26 💾 Database: RocksDb at /var/lib/astar/chains/astar/db/full

    May 14 22:48:26 hogehost astar-collator[2858]: 2023-05-14 22:48:26 ⛓ Native runtime: astar-58 (astar-0.tx2.au1)

    May 14 22:48:26 hogehost astar-collator[2858]: 2023-05-14 22:48:26 Parachain id: Id(2006)

    May 14 22:48:26 hogehost astar-collator[2858]: 2023-05-14 22:48:26 Parachain Account: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    May 14 22:48:26 hogehost astar-collator[2858]: 2023-05-14 22:48:26 Parachain genesis state: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    May 14 22:48:26 hogehost astar-collator[2858]: 2023-05-14 22:48:26 Is collating: no

    May 14 22:48:30 hogehost astar-collator[2858]: 2023-05-14 22:48:30 [Parachain] 🔨 Initializing Genesis block/state (state: 0xc945…4da9, header-hash: 0x9eb7…29c6)

    May 14 22:48:38 hogehost astar-collator[2858]: 2023-05-14 22:48:38 [Relaychain] 🔨 Initializing Genesis block/state (state: 0x29d0…4e17, header-hash: 0x91b1…90c3)

    May 14 22:48:38 hogehost astar-collator[2858]: 2023-05-14 22:48:38 [Relaychain] 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Relaychain] 👶 Creating empty BABE epoch changes on what appears to be first startup.

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Relaychain] 🏷 Local node iden tity is: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Relaychain] 💻 Operating system: linux

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Relaychain] 💻 CPU architecture: aarch64

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Relaychain] 💻 Target environment: gnu

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Relaychain] 💻 Memory: 3789MB

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Relaychain] 💻 Kernel: 5.15.0-1028-raspi

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Relaychain] 💻 Linux distribution: Ubuntu 22.04.2 LTS

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Relaychain] 💻 Virtual machine: no

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Relaychain] 📦 Highest known block at #0

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Relaychain] 〽️ Prometheus exporter started at 127.0.0.1:9616

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Relaychain] Running JSON-RPC HTTP server: addr=127.0.0.1:9934, allowed origins=["http://localhost:*", "http://127.0.0.1:*", "https://localhost:*",
    "https://127.0.0.1:*", "https://polkadot.js.org"]

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Relaychain] Running JSON-RPC WS server: addr=127.0.0.1:9945, allowed origins=["http://localhost:*", "http://127.0.0.1:*", "https://localhost:*",
    "https://127.0.0.1:*", "https://polkadot.js.org"]

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Relaychain] Starting with an empty approval vote DB.

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Parachain] 🏷 Local node ident ity is: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Parachain] 💻 Operating system: linux

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Parachain] 💻 CPU architecture: aarch64

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Parachain] 💻 Target environment: gnu

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Parachain] 💻 Memory: 3789MB

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Parachain] 💻 Kernel: 5.15.0-1028-raspi

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Parachain] 💻 Linux distribution: Ubuntu 22.04.2 LTS

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Parachain] 💻 Virtual machine: no

    May 14 22:48:41 hogehost astar-collator[2858]: 2023-05-14 22:48:41 [Parachain] 📦 Highest known block at #0
    ◼ :

    View Slide

  20. 【参考】同期ログ

    Aug 24 21:47:30 tknucbox astar-collator[1384]: 2023-08-24 21:47:30 [Relaychain] ✨ Imported #16990866 (0x498b…3b5c)

    Aug 24 21:47:30 tknucbox astar-collator[1384]: 2023-08-24 21:47:30 [Relaychain] ♻️ Reorg on #16990866,0x498b…3b5c to #16990866,0x59d0…2c94, common ancestor #16990865,0xc6f1…a68f

    Aug 24 21:47:30 tknucbox astar-collator[1384]: 2023-08-24 21:47:30 [Relaychain] ✨ Imported #16990866 (0x59d0…2c94)

    Aug 24 21:47:30 tknucbox astar-collator[1384]: 2023-08-24 21:47:30 [Relaychain] ✨ Imported #16990866 (0xac22…68b6)

    Aug 24 21:47:31 tknucbox astar-collator[1384]: 2023-08-24 21:47:31 [Relaychain] ✨ Imported #16990866 (0x8279…2c9a)

    Aug 24 21:47:31 tknucbox astar-collator[1384]: 2023-08-24 21:47:31 [Relaychain] ✨ Imported #16990866 (0x28af…3705)

    Aug 24 21:47:32 tknucbox astar-collator[1384]: 2023-08-24 21:47:31 [Parachain] ⚙️ Syncing 0.4 bps, target=#4294352 (22 peers), best: #3178488 (0x4a34…55b6), finalized #1011055 (0x649a…4d1e), ⬇ 15.7kiB/s ⬆ 76 B/s

    Aug 24 21:47:32 tknucbox astar-collator[1384]: 2023-08-24 21:47:32 [Relaychain] 💤 Idle (40 peers), best: #16990866 (0x59d0…2c94), finalized #16990863 (0x0ae6…860a), ⬇ 966.2kiB/s ⬆ 848.6kiB/s

    Aug 24 21:47:36 tknucbox astar-collator[1384]: 2023-08-24 21:47:36 [Relaychain] ✨ Imported #16990867 (0x74a8…c830)

    Aug 24 21:47:36 tknucbox astar-collator[1384]: 2023-08-24 21:47:36 [Parachain] ⚙️ Syncing 0.6 bps, target=#4294352 (22 peers), best: #3178491 (0x64c3…08c1), finalized #1011055 (0x649a…4d1e), ⬇ 7.9kiB/s ⬆ 70 B/s

    Aug 24 21:47:37 tknucbox astar-collator[1384]: 2023-08-24 21:47:37 [Relaychain] ✨ Imported #16990867 (0x02e6…50d6)

    Aug 24 21:47:37 tknucbox astar-collator[1384]: 2023-08-24 21:47:37 [Relaychain] 💤 Idle (40 peers), best: #16990867 (0x74a8…c830), finalized #16990864 (0x35dc…1609), ⬇ 870.8kiB/s ⬆ 925.0kiB/s

    Aug 24 21:47:41 tknucbox astar-collator[1384]: 2023-08-24 21:47:41 [Parachain] ⚙️ Syncing 0.6 bps, target=#4294352 (22 peers), best: #3178494 (0xa7ac…2dab), finalized #1011055 (0x649a…4d1e), ⬇ 8.4kiB/s ⬆ 0.1kiB/s

    Aug 24 21:47:42 tknucbox astar-collator[1384]: 2023-08-24 21:47:42 [Relaychain] 💤 Idle (40 peers), best: #16990867 (0x74a8…c830), finalized #16990864 (0x35dc…1609), ⬇ 464.5kiB/s ⬆ 412.8kiB/s

    Aug 24 21:47:42 tknucbox astar-collator[1384]: 2023-08-24 21:47:42 [Relaychain] ✨ Imported #16990868 (0x831f…5810)

    Aug 24 21:47:47 tknucbox astar-collator[1384]: 2023-08-24 21:47:46 [Parachain] ⚙️ Syncing 0.6 bps, target=#4294353 (22 peers), best: #3178497 (0x2764…4db7), finalized #1011055 (0x649a…4d1e), ⬇ 222.4kiB/s ⬆ 99 B/s

    Aug 24 21:47:47 tknucbox astar-collator[1384]: 2023-08-24 21:47:47 [Relaychain] 💤 Idle (40 peers), best: #16990868 (0x831f…5810), finalized #16990866 (0x59d0…2c94), ⬇ 547.2kiB/s ⬆ 523.1kiB/s

    Aug 24 21:47:48 tknucbox astar-collator[1384]: 2023-08-24 21:47:48 [Relaychain] ✨ Imported #16990869 (0xa591…fbca)

    Aug 24 21:47:50 tknucbox astar-collator[1384]: 2023-08-24 21:47:50 [Parachain] assembling new collators for new session 10596 at #3178500

    Aug 24 21:47:52 tknucbox astar-collator[1384]: 2023-08-24 21:47:51 [Parachain] ⚙️ Syncing 0.6 bps, target=#4294353 (22 peers), best: #3178500 (0x589c…942e), finalized #1011055 (0x649a…4d1e), ⬇ 1.5kiB/s ⬆ 76 B/s

    Aug 24 21:47:52 tknucbox astar-collator[1384]: 2023-08-24 21:47:52 [Relaychain] 💤 Idle (40 peers), best: #16990869 (0xa591…fbca), finalized #16990866 (0x59d0…2c94), ⬇ 474.8kiB/s ⬆ 368.3kiB/s

    Aug 24 21:47:56 tknucbox astar-collator[1384]: 2023-08-24 21:47:56 [Relaychain] ✨ Imported #16990870 (0xf830…7f61)

    Aug 24 21:47:57 tknucbox astar-collator[1384]: 2023-08-24 21:47:56 [Parachain] ⚙️ Syncing 0.6 bps, target=#4294354 (22 peers), best: #3178503 (0xea47…a3b2), finalized #1011055 (0x649a…4d1e), ⬇ 5.8kiB/s ⬆ 0.1kiB/s

    Aug 24 21:47:57 tknucbox astar-collator[1384]: 2023-08-24 21:47:57 [Relaychain] 💤 Idle (40 peers), best: #16990870 (0xf830…7f61), finalized #16990867 (0x74a8…c830), ⬇ 535.3kiB/s ⬆ 330.1kiB/s

    Aug 24 21:48:00 tknucbox astar-collator[1384]: 2023-08-24 21:48:00 [Relaychain] ✨ Imported #16990871 (0x293b…1cb1)

    Aug 24 21:48:01 tknucbox astar-collator[1384]: 2023-08-24 21:48:01 [Parachain] ⚙️ Syncing 0.0 bps, target=#4294354 (22 peers), best: #3178503 (0xea47…a3b2), finalized #1011055 (0x649a…4d1e), ⬇ 1.5kiB/s ⬆ 70 B/s

    Aug 24 21:48:02 tknucbox astar-collator[1384]: 2023-08-24 21:48:02 [Relaychain] 💤 Idle (40 peers), best: #16990871 (0x293b…1cb1), finalized #16990868 (0x831f…5810), ⬇ 468.8kiB/s ⬆ 329.9kiB/s

    Aug 24 21:48:06 tknucbox astar-collator[1384]: 2023-08-24 21:48:06 [Parachain] ⚙️ Syncing 0.6 bps, target=#4294354 (22 peers), best: #3178506 (0x61a5…0fe1), finalized #1011055 (0x649a…4d1e), ⬇ 7.8kiB/s ⬆ 0.6kiB/s

    Aug 24 21:48:07 tknucbox astar-collator[1384]: 2023-08-24 21:48:07 [Relaychain] 💤 Idle (40 peers), best: #16990871 (0x293b…1cb1), finalized #16990869 (0xa591…fbca), ⬇ 261.6kiB/s ⬆ 257.2kiB/s

    Aug 24 21:48:08 tknucbox astar-collator[1384]: 2023-08-24 21:48:08 [Relaychain] ✨ Imported #16990872 (0xc8b4…86e4)

    Aug 24 21:48:12 tknucbox astar-collator[1384]: 2023-08-24 21:48:11 [Parachain] ⚙️ Syncing 0.6 bps, target=#4294355 (22 peers), best: #3178509 (0xa7c9…f255), finalized #1011055 (0x649a…4d1e), ⬇ 8.8kiB/s ⬆ 0.1kiB/s

    Aug 24 21:48:12 tknucbox astar-collator[1384]: 2023-08-24 21:48:12 [Relaychain] 💤 Idle (40 peers), best: #16990872 (0xc8b4…86e4), finalized #16990870 (0xf830…7f61), ⬇ 440.7kiB/s ⬆ 311.3kiB/s

    Aug 24 21:48:12 tknucbox astar-collator[1384]: 2023-08-24 21:48:12 [Relaychain] ✨ Imported #16990873 (0x5798…0352)

    Aug 24 21:48:17 tknucbox astar-collator[1384]: 2023-08-24 21:48:16 [Parachain] ⚙️ Syncing 0.2 bps, target=#4294355 (22 peers), best: #3178510 (0x1440…bee4), finalized #1011055 (0x649a…4d1e), ⬇ 1.7kiB/s ⬆ 0.2kiB/s

    Aug 24 21:48:17 tknucbox astar-collator[1384]: 2023-08-24 21:48:17 [Relaychain] 💤 Idle (40 peers), best: #16990873 (0x5798…0352), finalized #16990871 (0x293b…1cb1), ⬇ 595.5kiB/s ⬆ 341.2kiB/s

    Aug 24 21:48:18 tknucbox astar-collator[1384]: 2023-08-24 21:48:18 [Relaychain] ✨ Imported #16990874 (0x237e…c05a)

    Aug 24 21:48:22 tknucbox astar-collator[1384]: 2023-08-24 21:48:21 [Parachain] ⚙️ Syncing 0.2 bps, target=#4294356 (22 peers), best: #3178511 (0xa255…68f0), finalized #1011055 (0x649a…4d1e), ⬇ 5.1kiB/s ⬆ 89 B/s

    Aug 24 21:48:22 tknucbox astar-collator[1384]: 2023-08-24 21:48:22 [Relaychain] 💤 Idle (40 peers), best: #16990874 (0x237e…c05a), finalized #16990871 (0x293b…1cb1), ⬇ 470.3kiB/s ⬆ 395.0kiB/s

    Aug 24 21:48:24 tknucbox astar-collator[1384]: 2023-08-24 21:48:24 [Relaychain] ✨ Imported #16990875 (0x8163…b56c)

    Aug 24 21:48:27 tknucbox astar-collator[1384]: 2023-08-24 21:48:26 [Parachain] ⚙️ Syncing 0.8 bps, target=#4294356 (22 peers), best: #3178515 (0x2533…f1d9), finalized #1011055 (0x649a…4d1e), ⬇ 7.6kiB/s ⬆ 0.1kiB/s

    Aug 24 21:48:27 tknucbox astar-collator[1384]: 2023-08-24 21:48:27 [Relaychain] 💤 Idle (40 peers), best: #16990875 (0x8163…b56c), finalized #16990872 (0xc8b4…86e4), ⬇ 476.0kiB/s ⬆ 336.9kiB/s

    Aug 24 21:48:30 tknucbox astar-collator[1384]: 2023-08-24 21:48:30 [Relaychain] ✨ Imported #16990876 (0x14ed…1797)

    Aug 24 21:48:30 tknucbox astar-collator[1384]: 2023-08-24 21:48:30 [Relaychain] ♻️ Reorg on #16990876,0x14ed…1797 to #16990876,0xe325…02b7, common ancestor #16990875,0x8163…b56c

    Aug 24 21:48:30 tknucbox astar-collator[1384]: 2023-08-24 21:48:30 [Relaychain] ✨ Imported #16990876 (0xe325…02b7)

    Aug 24 21:48:31 tknucbox astar-collator[1384]: 2023-08-24 21:48:31 [Parachain] ⚙️ Syncing 0.8 bps, target=#4294356 (22 peers), best: #3178519 (0x644c…da0e), finalized #1011055 (0x649a…4d1e), ⬇ 4.2kiB/s ⬆ 70 B/s

    Aug 24 21:48:32 tknucbox astar-collator[1384]: 2023-08-24 21:48:32 [Relaychain] 💤 Idle (40 peers), best: #16990876 (0xe325…02b7), finalized #16990873 (0x5798…0352), ⬇ 654.0kiB/s ⬆ 414.3kiB/s

    Aug 24 21:48:36 tknucbox astar-collator[1384]: 2023-08-24 21:48:36 [Relaychain] ✨ Imported #16990877 (0xf832…5e82)

    Aug 24 21:48:36 tknucbox astar-collator[1384]: 2023-08-24 21:48:36 [Parachain] ⚙️ Syncing 1.0 bps, target=#4294357 (22 peers), best: #3178524 (0xaabe…7d99), finalized #1011055 (0x649a…4d1e), ⬇ 8.4kiB/s ⬆ 96 B/s

    Aug 24 21:48:37 tknucbox astar-collator[1384]: 2023-08-24 21:48:37 [Relaychain] 💤 Idle (40 peers), best: #16990877 (0xf832…5e82), finalized #16990874 (0x237e…c05a), ⬇ 422.6kiB/s ⬆ 342.9kiB/s:

    View Slide

  21. 【オプション】Snapshot を使う
    基本的には最初からフル同期するまで待つのがベストプラクティス
    ◼ アーカイブDBスナップショットを“Stakecraft“が提供
    ◼ オペレーション
    1,最新のスナップショットアーカイブダウンロード(2023/8現在: 5、600GB)
    2,ディレクトリを丸ごと入れ替える
    https://docs.astar.network/docs/build/nodes/snapshots
    https://snapshots.stakecraft.com/
    https://note.com/tksarahweb3/n/n5bb1a5d21530

    View Slide

  22. Astar Node 構築後
    ◼ “dApp” 稼働テストのノードとして利用
    このアーカイブノード上で、dApp を動かす場合は、localhost(ループバック)アドレスを使用
    して、直接アクセス
    ◼ 独自の “RPC Server” として利用
    WS/HTTPS エンドポイントを立てる
    ※追加で Nginx Server のセットアップが必要
    https://docs.astar.network/docs/build/nodes/archive-node/nginx/
    https://docs.astar.network/docs/build/EVM/developer-tooling/own-RPC/

    View Slide

  23. 【参考】Grafana
    https://docs.astar.network/docs/build/nodes/collator/secure_setup_guide/node_monitoring

    View Slide

  24. 【参考】Telemetry
    https://telemetry.polkadot.io/

    View Slide

  25. リファレンスページ
    ◼ GitHub
    https://github.com/AstarNetwork
    ◼ Docs
    https://docs.astar.network/
    ◼ WhitePaper
    inside the GitHub
    ◼ Blog
    https://medium.com/astar-network
    ◼ The Astar Bulletin
    https://theastarbulletin.news
    ◼ YouTube
    https://www.youtube.com/c/AstarNetwork
    ◼ Twitter
    https://twitter.com/AstarNetwork
    ◼ Telegram
    https://t.me/PlasmOfficial
    ◼ Discord
    https://discord.gg/mWGt9bH59s
    ◼ Forum
    https://forum.astar.network/

    View Slide

  26. Thank you.

    View Slide