Hemi
DiscordGithub
  • 🏠Main
    • Welcome to the Hemi Docs
    • Getting Started
      • Developer Quickstart
      • Enthusiast Quickstart
      • Miner Quickstart
    • Network Details
  • ⛰️Foundational Topics
    • The Architecture
      • Consensus and Security Protocols
      • Ethereum Rollups
        • Pros & Cons
        • Decentralized Rollups
      • Sequencer Consensus
        • Proof-of-Stake (PoS)
        • PoS-Only Pitfalls
        • PoS Solutions
      • Proof-of-Proof (PoP)
        • Proof-of-Proof Consensus & Bitcoin Finality
        • Proof-of-Proof vs. Merged Mining
        • Running a PoP Mining
      • Tunnels
        • Ethereum Tunnel
        • Bitcoin Tunnel
      • Ethereum Virtual Machine (EVM)
      • Blocks
      • Transactions
      • Gas
    • Nodes & Clients
      • Node Guides
    • Wallet Support
  • 📖How-To Tutorials
    • Using Hemi
      • Wallet Setup
        • EVM Wallet Setup
        • BTC Wallet Setup
          • Switch Bitcoin Networks
      • Tunnel from Ethereum
        • Tunnel ERC20s via Native Tunnel
        • Tunnel ERC20s via 3rd Party
          • Tunnel via Stargate
      • Tunnel from Bitcoin
        • Tunnel BTC via Native Tunnel
        • Tunnel BTC via 3rd Party
      • Stake
      • Developer Tooling
        • Set Up a Safe Wallet
        • Create a Capsule
      • PoP Mining
        • CLI PoP Miner
          • (Testnet) Add tHEMI to MetaMask
          • (Mainnet) Add PoPPoints to Metamask
        • Web PoP Miner (deprecated)
    • Developing on Hemi
      • General
        • HelloWorld.sol
        • Deploy an ERC-20 Token
      • hVM & hBK
        • Using the hBK Demo App
        • Get Bitcoin Balance with Remix
  • ⚙️Building Bitcoin Apps
    • Introduction
    • Hemi Virtual Machine (hVM)
      • Motivation
      • Feature Summary
      • Deploy on hVM
    • Hemi Bitcoin Kit (hBK)
      • Overview
      • hBK Smart Contract
  • ⚙️Tooling
    • viem
    • Contract Addresses
    • Contract Verification
    • Data Indexing
    • Oracles
  • 📝Incentives
    • Points
    • Grants
    • Retroactive Funding
    • One-Off Spends
  • ⚡Additional Resources
    • Partners
    • FAQ
    • Official Links
    • Brand Kit
  • 📨Send Feedback
    • Bug Report
    • Contact Us
Powered by GitBook
On this page
  • General
  • Smart Contract Deployments
  • Navigating the Hemi Portal
  • Capsules
  • Grants
  • Getting Involved

Was this helpful?

Edit on GitHub
Export as PDF
  1. Additional Resources

FAQ

PreviousPartnersNextOfficial Links

Last updated 2 months ago

Was this helpful?

General

Where can I learn more about Hemi?

You can learn more about Hemi by reading our documentation, visiting our website, reading the whitepaper, or joining the community on Discord.

How do I earn points, and how does incentivized testnet work?

Check out Incentives for the most recent info.

Smart Contract Deployments

Why is my smart contract deployment failing on the testnet even though the contract seems to be created?

🌐 Overview

  • Deployment issues on testnet can stem from using features or opcodes not yet supported by the testnet's version of the EVM.

  • Check the Raw trace tab

👀 Common Culprits

  • One frequent cause is the use of the PUSH0opcode, which was introduced in EIP-3855 with the Shanghai upgrade.

✅ Solutions

  • To avoid such issues, it's best to wait until testnet officially supports these new features before attempting to deploy contracts that rely on them.

  • 📜 We will make an announcement when we update this soon!

Gas Usage (e.g. are you at 100%?)

🌐 Overview

  • Deployment failures can often be traced back to insufficient gas allocation.

  • When a transaction consumes all allocated gas without completing, the network rejects it to avoid executing transactions that could run indefinitely.

👀 Common Culprits

  • 100% Gas Consumption: If a transaction fails and the gas usage is 100%, it suggests the gas limit set for the contract's deployment was too low to cover the computation required.

    • Check Gas usage & limit by txn

✅ Solutions

  • Increase Gas Limit: Adjust the gas limit upwards based on the complexity of your contract and the estimations provided by gas estimation tools.

  • Optimize Contract Code: Review and optimize your smart contract code to reduce gas consumption. This can involve simplifying functions, removing unnecessary operations, or leveraging patterns that consume less gas.

  • Test Thoroughly

Did you verify your Smart Contract?

🌐 Overview

Preparing your smart contract for deployment involves a critical step: verification. This process not only helps in catching potential issues early but also enhances the contract's integrity before it goes live.

🔍 Verification is Key

Verifying your smart contract is paramount to ensure its readiness for deployment. This crucial step provides valuable insights into any potential errors or vulnerabilities that could compromise its performance or security.

🛠 Steps to Verify:

  • Navigate to Contract Details: Access your contract's details within your development environment or via a testnet blockchain explorer where your contract will be deployed.

  • Look for the Verify and Publish option. Selecting this begins the verification process, which is essential for assessing whether your contract operates as intended and is ready for interaction with users.

Navigating the Hemi Portal

What tokens are currently supported?

You can use our platform to access a variety of tokens, including ETH, USDT, USDC, and DAI.

What is tunneling? What is a tunnel?

The Hemi Tunnel is designed for seamless cross-chain transactions.

Hemi’s Bitcoin and Ethereum Tunnels improve security while decentralizing asset portability. They do this by leveraging the Hemi Virtual Machine, which gives the network direct awareness of Bitcoin’s and Ethereum’s states.

Capsules

What is Capsule?

Grants

How do I apply for a grant?

wip

How do we review grants?

wip

Getting Involved

How do I partner with Hemi?
How do we review partnership inquiries?

Read our review process in Partners.

about verifying smart contracts deployed on Hemi.

Capsule is an asset transfer protocol that allows anyone to batch and transfer multiple assets in a single package on Hemi. Additionally, it provides users and developers with advanced functionality like gasless transactions, re-routing/recalling, and configurable security. Learn more about Capsule Labs by visiting the Capsule .

You can find the partnership inquiry form .

Have more questions or concerns? E-mail support@hemi.xyz or

⚡
Read more
site
here
join our Discord.