This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const avalanche = require("avalanche"); | |
| let bintools = avalanche.BinTools.getInstance(); | |
| const ID = 1; | |
| const ava = new avalanche.Avalanche("api.avax-test.network", 443, "https", networkID); | |
| const xchain = ava.XChain(); | |
| let xKeychain = xchain.keyChain(); | |
| let keypair = xKeychain.makeKey(); | |
| //p ublic and private keys | |
| let pubkstr = keypair.getPublicKeyString(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fuji: { | |
| url: 'https://api.avax-test.network/ext/bc/C/rpc', | |
| gasPrice: 225000000000, | |
| chainId: 43113, | |
| accounts: [ | |
| "0x7727b8bf7f114f93cede28f67da7ac4fbcd34d481f4bb1597256102985ebea17", //private key | |
| "0x40c933e2b79efc76286ad0190d64eeg43dd6724a4b2674bb2f83ac63c2aabe19", | |
| "0x1637e4c222057f9d3b177d7a5dd1aba62baf9ebe0fa511cb2944b0e70b062a68", | |
| "0x5a4758ffb1216ab80ce6c6fa374833f1f10f1966ca9ff7fa13332e4bd78d43c7", | |
| "0x4d4849a8d599a6adc9d58a3b76fcf90dcedea99fed5a425dc4f4a55f120ce8e8", |
OlderNewer