Giter Site home page Giter Site logo

zond-web3-demo's Introduction

QRL Zond Testnet Transaction Test

Prerequisites

  • nodejs
  • npm

You will also need a QRL Zond Dilithium wallet with some funds in it and access to a Zond node RPC server (a running gzond instance).

Use

  1. Clone repo and run npm install inside the repo directory
  2. Create and edit the .env file as per below (or set the variables in your environment)
  3. Run npm run test

.env file

Ensure there is an .env file in the root of the repo with the following variables set:

PROVIDER = "http://127.0.0.1:8545" # Zond RPC address, default is localhost:8545
PRIVATE_KEY = "0x[hex]" # Private key of the wallet you want to send from, beginning with 0x
FROM_ADDRESS = "0x[hex]" # Address of the wallet you want to send from
TO_ADDRESS = "0x[hex]" # Address of the wallet you want to send to
MAX_FEE_PER_GAS = 2000000000 # Maximum fee per gas, eg. 2000000000, in nShor (1 Shor = 10^9 nShor)
MAX_PRIORITY_FEE_PER_GAS = 1000000000 # Maximum priority fee per gas, eg. 1000000000, nShor (1 Shor = 10^9 nShor)
VALUE_TO_SEND = 10000000000 # Amount to send in nShor (1 Shor = 10^9 nShor)

zond-web3-demo's People

Contributors

jplomas avatar

Watchers

 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.