DappHero Docs
  • Getting Started 👋🏽
  • DappHero Basics
    • How does it work? 🧐
    • Setting Up Your Project 🏗️
      • Projects
      • Smart Contracts
    • An Intro to Features 🎁
  • Features
    • Network ⛓️
    • User 🤖
    • 3box 👯‍♂️
    • Smart Contracts 👩🏾‍🔬
      • Adding Smart Contracts 🏗️
        • Contract Details
      • Create a Method Instance
      • Inputs
      • Invoke
      • Outputs
      • Events
      • Advanced: Automatically clearing Inputs
      • Advanced: Getting the Current User's Address Dynamically
      • Advanced: Sending ETH to a contract method
      • Listening to Events
      • Resources: Learn More
      • Resources: Test Contracts
    • Collectibles 🃏
      • Getting Started
      • Single Collectibles
      • Listing Collectibles
      • Displaying Token Metadata
      • Advanced: $CURRENT_USER
      • Advanced: $URL
      • Advanced: $THIS
      • Advanced: Properties
      • Calling Smart Contracts inside Collectibles
      • Collectible Example
  • No-Code Integrations
    • Webflow 🎁
      • Getting Started with Webflow
      • Add DappHero Elements
      • Learn more about WebFlow
  • Examples
    • Coming soon...
  • Advanced
    • Engine Events
    • Force Refresh
    • Database
    • Ethereum Provider
  • Updates
    • ChangeLog
  • Bug Bounty
Powered by GitBook
On this page

Was this helpful?

  1. DappHero Basics
  2. Setting Up Your Project 🏗️

Smart Contracts

The Smart Contract Page

PreviousProjectsNextAn Intro to Features 🎁

Last updated 4 years ago

Was this helpful?

Smart contracts are the primary way of interacting with the Ethereum blockchain. DappHero does not currently create or deploy smart contracts, so you will need to have already a smart contract deployed to a network to connect.

Name

Each smart contract needs a name inside DappHero. The name does not have to be the "official" name of the smart contract as deployed on the blockchain. DappHero will use to refer to the configuration settings regarding your contract, and it is essential to remember precisely. Pick something without spaces or special characters. This information should not be secret.

Description

Here you can leave notes about the smart contract. It is useful if you need to refer to your project in the future and want to organize some information regarding your settings.

Network

The Network settings are where you describe your contract. Here you will need to provide three things:

  • Network - this can be Mainnet Ethereum or any of the public testnets. Private networks are currently not supported.

  • Deployed Address - this is the actual ethereum address at which the contract you wish to connect is deployed.

  • Contract ABI - this is a JSON object which describes the smart contract and smart contract methods you are trying to connect in DappHero.

Load ABI from Etherscan

Protect

When green and locked, your contract settings can not be accidentally changed.

For smart contracts that have been verified on the block explorer it is now possible to automatically load their ABI. This feature is supported by Mainnet, Rinkeby, Ropsten, Kovan, and Goerli. It will not work on other networks.

To have your contract verified, you can a helpful article to about verifying smart contracts.

Etherscan.io
use this tool
learn more
The new Contract interface