Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jplomas/zond-web3-demo
https://github.com/jplomas/zond-web3-demo
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jplomas/zond-web3-demo
- Owner: jplomas
- Created: 2024-01-28T22:38:33.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-28T22:39:31.000Z (10 months ago)
- Last Synced: 2024-04-14T12:52:31.989Z (7 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# QRL Zond Testnet Transaction Test
## Prerequisites
- nodejs
- npmYou 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:
```bash
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)
```