Hemi 백서

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 13쪽 중 5쪽

n-chain transactions align with Ethereum-based bridging logic. #### **🙋‍♂️ Who might run a BSS node?** * **Validator/Sequencer Operators:** Entities responsible for generating Hemi blocks and maintaining chain consensus. #### **🏁 Requirements** * Connect to a live [bfgd](https://github.com/hemilabs/heminetwork/blob/main/cmd/bfgd) instance. **➡️ View complete instructions via the** [**hemilabs GitHub repo.**](https://github.com/hemilabs/heminetwork?tab=readme-ov-file#%EF%B8%8F-running-bssd) *** ## Modified Geth Node #### **🌐 Overview** * Hemi Network runs a specialized Geth implementation that supports extended functionalities, enabling seamless interaction between Hemi’s chain state and Ethereum’s mainnet. * This modified Geth node manages Ethereum transactions and block headers in a way tailored for Hemi’s bridging protocols. The node also consolidates Ethereum state so that BSS nodes (and other Hemi components) can quickly verify or execute cross-chain logic. #### **🏁 Requirements** * Clone the [Hemi Network GitHub](https://github.com/hemilabs/heminetwork) and follow instructions for the Modified Geth build. # Wallet Support {% hint style="info" %} ## 📜 **TL;DR:** * The Ethereum network currently comprises a variety of networks with varying functionality, however Hemi builds primarily on only two: Ethereum mainnet and Sepolia. * The Bitcoin network currently comprises a variety of networks with varying functionality, however Hemi builds primarily on only two: Bitcoin Mainnet and Bitcoin Testnet. {% endhint %} *** ## 🔵 EVM Wallets ### Key Terms and Concepts * [**EVM (Ethereum Virtual Machine):**](/foundational-topics/the-architecture/ethereum-virtual-machine-evm) A decentralized computing platform that allows developers to build and deploy smart contracts. MetaMask is an EVM wallet, meaning it can interact with any blockchain compatible with the EVM, not just Ethereum. * **Private Key:** A secret code that allows you to access and control your cryptocurrency in your wallet. It is crucial never to share your private key with anyone, as it grants complete control over your funds. * **Public Address:** An address that you can share with others to receive funds. It is a string of alphanumeric characters that acts like an account number on the blockchain. * **Seed Phrase:** A series of 12 or 24 words that serve as a backup to restore access to your wallet. This phrase should be stored securely and privately; if lost or compromised, you could lose access to your funds. * **Gas Fees:** Transaction fees paid to miners or validators on the blockchain to process and confirm transactions. Fees vary based on network congestion and the complexity of the transaction. * **dApps (Decentralized Applications):** Applications that run on a blockchain network rather than a centralized server. MetaMask allows users to interact with dApps directly from their browser. *** ### Ethereum Explorer: Etherscan [Etherscan](https://etherscan.io) is the primary blockchain explorer for Ethereum, providing a comprehensive interface to view transaction details, address balances, token transfers, and smart contract interactions. It’s an invaluable tool for MetaMask users to verify transaction status, track gas fees, and explore the Ethereum blockchain in depth. * To view transaction details, address balances, token transfers, and smart contract interactions on the Hemi Network, visit the [Hemi block explorer](https://explorer.hemi.xyz). *** ### Ethereum Networks The Ethereum network currently comprises a variety of networks with varying functionality, however Hemi build primarily on only two: * **Ethereum Mainnet:** The primary Ethereum network where real ETH transactions occur. It is the live network that supports the Ethereum economy and decentralized applications (dApps), with transactions being irreversible and involving real value and fees. * **Sepolia Testnet:** A testing environment for Ethereum that mimics the Mainnet but uses testnet ETH with no real value. It allows developers and users to test applications, transactions, and upgrades without risking real funds, providing a stable and efficient testing ground for Ethereum-based projects. {% hint style="success" %} If you are ready to get started with Ethereum, you can learn how to [**set up an EVM wallet** ](/how-to-tutorials/using-hemi/wallet-setup/metamask-wallet-setup)and interact with Ethereum on Hemi. {% endhint %} *** ## 🟠 BTC Wallets ### Key Terms and Concepts * **Private Key:** A secret code that allows you to access and control your cryptocurrency in your wallet. It is crucial never to share your private key with anyone, as it grants complete control over your funds. * **Public Address:** An address that you can share with others to receive funds. It is a string of alphanumeric characters that acts like an account number on the blockchain. * **Seed Phrase:** A series of 12 or 24 words that serve as a backup to restore access to your wallet. This phrase should be stored securely and privately; if lost or compromised, you could lose access to your funds. * **Confirmation:** The process by which a Bitcoin transaction is included in a block on the blockchain. Each confirmation represents a layer of verification, with multiple confirmations providing increased security against double-spending. * **UTXO (Unspent Transaction Output):** A key concept in Bitcoin that represents the amount of Bitcoin available to spend. UTXOs are outputs from previous transactions that have not yet been spent, and they form the balance of your Bitcoin wallet. * **Mempool (Memory Pool):** The mempool is a holding area for unconfirmed transactions on a blockchain, where they wait to be included in the next block by miners or validators. Transactions are prioritized based on their attached fees; those with higher fees are typically confirmed faster. Monitoring the mempool helps users gauge current network congestion and set appropriate transaction fees for quicker confirmations. *** ### Bitcoin Address Types Bitcoin addresses are the unique identifiers used to send and receive Bitcoin. Over time, several address types have been introduced to improve Bitcoin’s efficiency, security, and scalability.&#x20; #### Types of Bitcoin Addresses: * **Legacy (P2PKH):** This is the original and most widely recognized address format. &#x20; * **Nested SegWit (P2SH-P2WPKH):** An interim solution that allows the benefits of SegWit while maintaining compatibility with Legacy wallets. * **Native SegWit (bech32):** Native SegWit, also known as bech32, introduces significant improvements in transaction efficiency and scalability.&#x20; * **Taproot:** Taproot is the latest upgrade to Bitcoin’s address formats, focusing on enhanced privacy, scalability, and flexibility. *** ### Bitcoin Explorer: Mempool.space * [Mempool.space](https://mempool.space) is a blockchain explorer for Bitcoin that visualizes the current state of the mempool, the pool of unconfirmed transactions, and provides insights into transaction fees and block confirmations. It is particularly useful for BTC wallet users to check the status of their transactions and understand current network congestion. * To view transaction details, address balances, token transfers, and smart contract interactions on the Hemi network, visit the [Hemi block explorer](https://explorer.hemi.xyz). *** ### Bitcoin Networks The Bitcoin network currently comprises a variety of networks with varying functionality, however Hemi build primarily on only two: * **Bitcoin Mainnet:** The primary Bitcoin network where real BTC transactions occur. It is the live network that supports the Bitcoin economy and has actual value, with transactions being irreversible and fees applying. * **Bitcoin Testnet:** A testing environment for Bitcoin that mimics the Mainnet but uses test BTC with no real value. Developers and users can test applications, transactions, and upgrades without risking real funds. (Not to be confused with Bitcoin Testnet4, a version of Bitcoin Testnet with updated configurations and more stability for testing purposes. It offers an alternative and more reliable test environment compared to the older Testnet3, with no real value attached to the test BTC. {% hint style="success" %} If you are ready to get started with Bitcoin, you can learn how to [**set up a BTC wallet**](/how-to-tutorials/using-hemi/wallet-setup/btc-wallet-setup) and interact with Bitcoin on Hemi. {% endhint %} *** ## 💼 Hardware Wallets If you use a hardware wallet and want to interact with Hemi, you can connect it through MetaMask to manage your assets securely. This approach allows you to maintain control of your private keys while accessing the Hemi network. For a step-by-step guide on connecting MetaMask with a hardware wallet, please refer to [this guide from Ledger Academy](https://www.ledger.com/academy/security/the-safest-way-to-use-metamask). # Using Hemi Follow along with some of the tutorials to help you get a head start when building your first Hemi project.&#x20; {% hint style="info" %} **Note:** You may be eligible to earn Hemi [points](https://points.absinthe.network/hemi/start) by completing tutorials. Visit our [dashboard](https://points.absinthe.network/hemi/start) for more information on active quests. {% endhint %} ### Wallet Setup <table><thead><tr><th width="217">Tutorial</th><th width="384">Description</th><th>Difficulty</th></tr></thead><tbody><tr><td><a href="/discover/getting-started/developers">Set Up an EVM Wallet</a></td><td>Learn how to set up and get started with an EVM (<a href="https://metamask.io">MetaMask</a>) wallet.</td><td>🟢 Easy</td></tr><tr><td><a href="/how-to-tutorials/using-hemi/wallet-setup/btc-wallet-setup">Set Up a BTC Wallet</a></td><td>Learn how to set up and get started with a BTC (<a href="https://unisat.io">UniSat</a>) wallet.</td><td>🟢 Easy</td></tr></tbody></table> *** ### Tunneling <table><thead><tr><th width="217">Tutorial</th><th width="384">Description</th><th>Difficulty</th></tr></thead><tbody><tr><td><a href="/how-to-tutorials/using-hemi/tunnel-from-ethereum/tunnel-eth-to-hemi">Tunnel ETH to Hemi</a></td><td>Learn how to <a href="/foundational-topics/the-architecture/tunneling">tunnel</a> (bridge) your ETH assets to and from Hemi.</td><td>🟢 Easy</td></tr><tr><td><a href="/how-to-tutorials/using-hemi/tunnel-from-bitcoin">Tunnel BTC to Hemi</a></td><td>Learn how to <a href="/foundational-topics/the-architecture/tunneling">tunnel</a> (bridge) your BTC assets to and from Hemi.</td><td>🟢 Easy</td></tr><tr><td><a href="/how-to-tutorials/using-hemi/stake">Stake on Hemi</a></td><td>Learn about <a href="/how-to-tutorials/using-hemi/stake">staking</a> on Hemi.</td><td>🟢 Easy</td></tr></tbody></table> *** ### Developer Tooling <table><thead><tr><th width="198">Tutorial</th><th width="397">Description</th><th>Difficulty</th></tr></thead><tbody><tr><td><a href="/how-to-tutorials/using-hemi/developer-tooling/set-up-a-safe-wallet">Set Up a Safe Wallet</a></td><td>Learn about multi-sig wallets and set up a <a href="https://safe.global">Safe</a> Wallet on Hemi.</td><td>🟢 Easy</td></tr><tr><td><a href="/how-to-tutorials/using-hemi/developer-tooling/create-a-capsule">Create a Capsule</a></td><td>Learn about gasless transactions, re-routing/recalling, and configurable security with <a href="broken://pages/0Tb3yNIIHy5udB9WaZbs">Capsules</a> on Hemi.</td><td>🟡 Medium</td></tr></tbody></table> *** ### PoP Miner <table><thead><tr><th width="194">Tutorial</th><th width="397">Description</th><th>Difficulty</th></tr></thead><tbody><tr><td><a href="/how-to-tutorials/using-hemi/pop-mining/setup-part-1">Run the CLI PoP Miner</a></td><td>Set up and run your PoP miner, either by downloading pre-built binaries or by building from source.</td><td>🟡 Medium</td></tr><tr><td><a href="/how-to-tutorials/using-hemi/pop-mining/setup-part-1/add-themi-to-metamask">Add tHEMI to MetaMask</a></td><td>Earning tHEMI rewards from PoP mining? Add the token contract address and view rewards.</td><td>🟢 Easy</td></tr></tbody></table> # Wallet Setup # EVM Wallet Setup {% hint style="info" %} ## 📜 **TL;DR:** * [MetaMask](https://metamask.io/download/), available as a browser extension and mobile app, is designed to let users easily manage their cryptocurrencies and interact with dApps. * This guide walks you through adding the Hemi network to MetaMask, including setting up network details like RPC URL, Chain ID, and Block Explorer URL. * For a step-by-step guide on connecting MetaMask with a hardware wallet, please refer to [this guide from Ledger Academy](https://www.ledger.com/academy/security/the-safest-way-to-use-metamask). {% endhint %} *** ## 🏁 Prerequisites * [MetaMask Extension Download ](https://metamask.io/download/)to execute transactions and smart contract interactions within the Ethereum network. *** ## 📚 Tutorial ### Video {% embed url="<https://vimeo.com/1027100796?share=copy>" %} ### 1. Open the MetaMask Extension <figure><img src="https://3063395300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBrGAUP9hcnvqWQvHZlN0%2Fuploads%2FSXESUUfSzzCwZnV2hoVi%2F1.png?alt=media&amp;token=30a803ab-84f9-4fcc-b62f-fce287ebe3d4" alt="" width="188"><figcaption></figcaption></figure> *** ### 2. Access Network Selection Settings Click on the network-selection dropdown, which is found at the top left of the MetaMask window. <figure><img src="https://3063395300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBrGAUP9hcnvqWQvHZlN0%2Fuploads%2FzKUm7LqXBtwhW53h3qwZ%2F2.png?alt=media&amp;token=753585d6-5a05-4d9a-aff0-30c9aa3699f2" alt="" width="359"><figcaption></figcaption></figure> *** ### 3. Select "Add Network" <figure><img src="https://3063395300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBrGAUP9hcnvqWQvHZlN0%2Fuploads%2FLBpKsikX0NIjZLeNgZrK%2F3.png?alt=media&amp;token=e0cd04b8-4b07-4369-ae22-5239927a0509" alt="" width="348"><figcaption></figcaption></figure> *** ### 4. Add a Network Manually <figure><img src="https://3063395300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBrGAUP9hcnvqWQvHZlN0%2Fuploads%2Fe8GKSJ6C8qJVE3Y8bAM5%2F4.png?alt=media&amp;token=db4f1fbf-590a-45b3-b404-16ba709faa15" alt=""><figcaption></figcaption></figure> *** ### 5. **Enter Network Details** In the "`Add a network manually"` settings, input the following information for the Hemi testnet network: <table><thead><tr><th width="289"></th><th>Hemi mainnet</th></tr></thead><tbody><tr><td><strong>Gas Token/Currency Symbol</strong></td><td>ETH</td></tr><tr><td><strong>ChainID</strong></td><td>43111</td></tr><tr><td><strong>RPC API endpoint</strong></td><td>https://rpc.hemi.network/rpc</td></tr><tr><td><strong>Explorer</strong></td><td><a href="https://explorer.hemi.xyz">https://explorer.hemi.xyz</a></td></tr></tbody></table> For Hemi testnet, input the following information instead: <table><thead><tr><th width="289"></th><th>Hemi testnet</th></tr></thead><tbody><tr><td><strong>Gas Token/Currency Symbol</strong></td><td>ETH</td></tr><tr><td><strong>ChainID</strong></td><td>743111</td></tr><tr><td><strong>RPC API endpoint</strong></td><td>https://testnet.rpc.hemi.network/rpc</td></tr><tr><td><strong>Explorer</strong></td><td><a href="https://testnet.explorer.hemi.xyz">https://testnet.explorer.hemi.xyz</a></td></tr></tbody></table> *** ### 6. **Your EVM wallet is ready to go! 🎉** Select `Save` to add the Hemi network to your MetaMask. *** ## 🔄 Switch between Ethereum Mainnet and Sepolia After you have set up your EVM wallet on MetaMask, you may want to explore some of the unique features on Hemi testnet. This requires switching the connected network in your MetaMask wallet. {% hint style="info" %} To ensure visibility of your `ETH` on the Sepolia testnet, toggle the `Show test networks`option in MetaMask: * Select the drop down on the left * Toggle `Show Test Networks` * Select `Sepolia` {% endhint %} <figure><img src="https://3063395300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBrGAUP9hcnvqWQvHZlN0%2Fuploads%2FXadzCIQ11sdn0ETtQROL%2F1b.png?alt=media&amp;token=17907c71-75ec-41cb-b1ac-ab946f262df7" alt="" width="563"><figcaption></figcaption></figure> *** # BTC Wallet Setup {% hint style="info" %} 📜 **TL;DR:** * [UniSat](https://unisat.io), available as a browser extension and mobile app, is designed to let users easily manage their Bitcoin assets and interact with dApps. * This guide walks you through setting up your UniSat wallet. {% endhint %} *** ## 🏁 Prerequisites #### 1. Add the UniSat Chrome extension Navigate to the [UniSat extension download](https://chromewebstore.google.com/detail/unisat-wallet/ppbibelpcjmhbdihakflkdcoccbgbkpo) and click `'Add to Chrome.'` <figure><img src="https://3063395300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBrGAUP9hcnvqWQvHZlN0%2Fuploads%2F7jP4QgTX2Q60WP9XfyxS%2Fimage.png?alt=media&amp;token=2a1d30ab-9a1e-40fd-b462-18e1a595f5a5" alt=""><figcaption></figcaption></figure> Click `'Add extension.'` *** ## 📚 Tutorial ## Video {% embed url="<https://vimeo.com/1027100341>" %} ### 1. Open the UniSat Chrome extension Open the UniSat extension and click `'Create new wallet.'` <figure><img src="https://3063395300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBrGAUP9hcnvqWQvHZlN0%2Fuploads%2FBwV1TgVPDAwIzXlzzGNl%2Fimage.png?alt=media&amp;token=066067f8-24fc-411b-8dcb-6d861df14917" alt=""><figcaption></figcaption></figure> *** ### 2. Create a password <figure><img src="https://3063395300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBrGAUP9hcnvqWQvHZlN0%2Fuploads%2FkIZhcysdMAJsqTHzU7UY%2Fimage.png?alt=media&amp;token=8b21652a-33e4-4699-832b-b12fab99207f" alt=""><figcaption></figcaption></figure> *** ### 3. Copy your secret recovery phrase {% hint style="danger" %} **Make sure to save your private key.** Your private key provides full access to your wallet and funds. * Hemi team members will never ask you for private keys. * Do not share it with anyone. {% endhint %} <figure><img src="https://3063395300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBrGAUP9hcnvqWQvHZlN0%2Fuploads%2FIVok9LPwBgpdoifB3phk%2Fimage.png?alt=media&amp;token=ada3f1b0-d8aa-438b-ae0d-25dfc6b2e0b7" alt=""><figcaption></figcaption></figure> After you have saved your private key in a secure area, click `'Continue.'` *** ### 4. Select address type Hemi currently uses two primary address types: * **Legacy (P2PKH):** PoP mining currently requires a P2PKH address, although this may change at some point in the future.&#x20; * **Native SegWit (P2WPKH):** For everything else on Hemi (i.e., Bitcoin tunneling), any address type can be used but P2WPKH will (generally) be the cheapest fee-wise. {% hint style="info" %} We recommend creating a **Native SegWit** wallet to jumpstart in the Bitcoin ecosystem. New wallets and other address types can be created in the future. {% endhint %} <figure><img src="https://3063395300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBrGAUP9hcnvqWQvHZlN0%2Fuploads%2FMPpeOJCoHsofSZd32L3H%2Fimage.png?alt=media&amp;token=1375caf9-8ada-4d08-baae-b8e4af7c4eb4" alt=""><figcaption></figcaption></figure> After you have selected your address type, click `'Continue.'` *** ### 5. Your UniSat wallet setup is complete! 🎉 <figure><img src="https://3063395300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBrGAUP9hcnvqWQvHZlN0%2Fuploads%2F1Hoh6MLstKMVz3M8Qk6J%2Fimage.png?alt=media&amp;token=8700ce44-4735-46e4-8fac-48320f08f80c" alt=""><figcaption></figcaption></figure> *** # Switch Bitcoin Networks {% hint style="info" %} ## 📜 **TL;DR:** * When setting up your UniSat wallet, the browser extension will default to the Bitcoin mainnet network.&#x20; * If you plan on
프로젝트로 돌아가기