BlockDAG Docs
  • 🎯Introduction to BlockDAG
  • ⭐GETTING STARTED
    • What is BDAG?
    • Introductory Concepts
      • Decentralized Application (dApps)
      • Accounts
        • EVM Account
        • UTXO Account
      • Transactions
      • Blocks
      • EVM
        • Opcodes
      • Gas Fees
    • Nodes and Mining
      • Testnet Node Setup
    • BlockDAG Architecture
      • Architecture Overview
      • Core Modules and Components
      • Development and Implementation
      • Blockchain Features
      • Consensus Algorithm
  • TEST/MAIN NETWORKS
    • Testnet Alpha
    • Testnet Beta 1: Primordial
      • Network Details
  • BlockDAG Tools
    • Block Explorer
    • Faucet
    • Smart Contract IDE
      • IDE Layout
      • How to create and deploy
    • Contracts Wizard
  • BlockDAG Client APIs
    • EVM RPC
    • WebSocket
  • BlockDAG dApps
    • Create dApps
    • dApps Overview
    • Reflection User Guide
      • Home
      • Reflection Dashboard
      • Reflection
    • Lottery User Guide
      • Lottery Dashboard
      • Lottery
      • Participants
  • Block Explorer
    • EVM
      • Home
      • Block List
        • Block Detail
      • Transaction List
        • Transaction Detail
      • Address Details
      • Contract Listing
        • Contract Details
          • Transfer Tab
          • Holders Tab
          • Events Tab
          • Info Tab
          • Contract Tab
            • Code Tab
            • Read Tab
            • Write Tab
        • Contract Owner
        • Contract Verification
        • Contract Transaction Details
      • Tokens List
        • Token Detail
          • Transfer Tab
            • Transfer Detail Tab (Overview)
            • Transfer Detail (Logs)
          • Holders Tab
            • Holders Detail
          • Events Tab
          • Info Tab
          • Contracts Tab
        • Token Transfer
      • Node Visualizer
      • Faucet
    • UTXO
      • UTXO Home
      • Block List (UTXO)
        • Block Details (UTXO)
      • Transaction List (UTXO)
        • Transaction Details (UTXO)
      • Address Details (UTXO)
Powered by GitBook

Copyright © BlockDAG

On this page
  • FILE EXPLORER:
  • SETTINGS:
  • GITHUB ACCESS TOKEN:
  • IPFS SETTING:
  • Steps to Deploy a Smart Contract through BlockDAG IDE:

Was this helpful?

Edit on GitHub
  1. BlockDAG Tools
  2. Smart Contract IDE

How to create and deploy

PreviousIDE LayoutNextContracts Wizard

Last updated 1 month ago

Was this helpful?

This tab is accessible in the main panel. By using the toggle button , a user can switch between different templates or open new files from the files section.

FILE EXPLORER:

Click on the workspace option on the left panel to access the file explorer module. In the file explorer, users can manage their workspace and files, and can also access the context menu by right clicking on the folder. This menu provides options for users to perform various actions on their files and folders such as renaming, copying or deleting files.

Workspaces basically allows the user to better manage their files by enabling you to separate projects. You can perform the following functions through this.

  • Add a workspace

  • Dropdown menu create, delete, rename or download a particular Workspace.

  • Choose a Workspace.

  • Expand button

  • Create a file

  • Create a folder

  • Publish the Workspace to a GIST

  • Load a file into the current Workspace

  • By clicking on the drop-down menu,you can access the following options

SETTINGS:

  • To access the settings option, click on the “settings” on the bottom of the left panel.

  • You can choose the option of resetting to the default setting to get back the settings as they were originally.

  • The word wrap setting allows for wrapping the text or not

  • Personal mode, mode can be used while connecting to a local node.

GITHUB ACCESS TOKEN:

To carry out git operations on github and create GISTS, it is necessary to provide the access token. It provides specific permissions to execute git commands. Depending upon the operations entered, the user might need to enter the username and email address.

Please note: the IDE does not store any password information.

IPFS SETTING:

These above details are necessary to deploy the contract. If the details are not provided, then you’ll be using the INFURA mode which does not persist the data.

Steps to Deploy a Smart Contract through BlockDAG IDE:

Step 2: Create a New File in the Workspace

  • From the left-panel menu, navigate to “Workspace” and click on the “Create New File” icon.

  • Name the new file “blockdag.sol” under the “contracts” folder.

  • A new file will be generated, and the main editor panel will open with a blank file.

Step 3: Write or Import a Solidity Contract

  • Write or import your Solidity contract into the “BlockDAG IDE”.

Step 4: Compile the Smart Contract

  • Configure the Solidity compiler settings within the “BlockDAG IDE”.

  • Select your Solidity contract file (blockdag.sol) and click on “Compile”.

  • Upon successful compilation, your contract will be ready for deployment. You should see a confirmation of a successful compile on your screen.

Step 5: Compilation

Configure the Solidity compiler settings within BlockDAG IDE

  • Click on 'Compile' for the 'blockdag.sol' file to compile the contract.

  • Upon successful compilation, your screen will resemble the following:

Step 6: Deployment

Navigate to the 'Deploy & Run Transactions' sidebar in the left panel.

To utilize this module, a compiled contract is necessary. If there is a contract name in the 'CONTRACT' select box (located under the 'VALUE' input field), you can proceed with using this module.

  • BlockDAG Provider: For connecting BlockDAG IDE to an injected web3 provider. The most common injected provider is MetaMask

  • Hardhat Provider: For connecting BlockDAG IDE to a local Hardhat test chain.

  • Ganache Provider: For connecting BlockDAG IDE to a local Truffle Ganache test chain.

  • Click 'Deploy' and confirm the transaction on the metamask.

You can also watch our tutorial video to learn how to deploy any smart contract using the BlockDAG IDE.

Step 1: Access the BlockDAG IDE Go to

https://ide.primordial.bdagscan.com/