Code Monkey home page Code Monkey logo

hedera-sample's Introduction

hedera-sample

Sample project to interact with hedera

  • Add 3 properties to your .env file
HEDERA_PORTAL_ACCOUNT_ID=
HEDERA_PORTAL_PRIVATE_KEY=
HEDERA_NETWORK=testnet

for HEDERA_PORTAL_ACCOUNT_ID and HEDERA_PORTAL_PRIVATE_KEY, you can create account on hedera testnet portal https://docs.hedera.com/guides/testnet/testnet-access,

You can call this function for doing a mint function call on the contract

"mint-nft" : "node scripts/mint-nft.js"

appData.json, contains the data that this will use where this project is smart enough to create a account if the deploy section is empty and also the contract address is updated when you deploy using deploy.js

  "accounts": {
    "deploy": {
      "accountId": "0.0.34344242",
      "privateKey": "0x8bacb2c8c048558136c950cc69cb7e4690fac834dc509364a70efba155d1a586"
    }
  },
  "contracts": {
    "contractAddress": "0x00000000000000000000000000000000020c0ebc"
  }

To check your transactions in hedera you can go to dragon glass https://testnet.dragonglass.me/hedera

hedera-sample's People

Contributors

sunnywahi-anz avatar sunnywahi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.