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
function getAccountTransactions(accAddress, startBlockNumber, endBlockNumber) { | |
// You can do a NULL check for the start/end blockNumber | |
console.log("Searching for transactions to/from account \"" + accAddress + "\" within blocks " + startBlockNumber + " and " + endBlockNumber); | |
for (var i = startBlockNumber; i <= endBlockNumber; i++) { | |
var block = hmy.getBlockByNumbrt(i, true); | |
if (block != null && block.transactions != null) { | |
block.transactions.forEach( function(e) { |
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
====== WALLET BALANCES ====== | |
Using local profile for wallet | |
Account: one1spshr72utf6rwxseaz339j09ed8p6f8ke370zj: | |
Balance in Shard 0: 138.909334809, nonce: 9 | |
Balance in Shard 1: 0.0000, nonce: 0 | |
Using local profile for wallet | |
Account: one1uyshu2jgv8w465yc8kkny36thlt2wvel89tcmg: | |
Balance in Shard 0: 0.0000, nonce: 0 | |
Balance in Shard 1: 138.047409047, nonce: 10 | |
Using local profile for wallet |
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
// import or require Harmony class | |
const { Harmony } = require('@harmony-js/core'); | |
// import or require settings | |
const { ChainID, ChainType } = require('@harmony-js/utils'); | |
const URL_TESTNET = `https://api.s0.b.hmny.io`; | |
const URL_MAINNET = `https://api.s0.t.hmny.io`; | |
// 1. initialize the Harmony instance |
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
0x05C6651BF91B37184fE340F61dD76D41034e9922 | |
0x666d9dac081ccea209091d6e06d76678b09dcca3 | |
0x6750DB41334e612a6E8Eb60323Cb6579f0a66542 | |
0xE25ABC3f7C3d5fB7FB81EAFd421FF1621A61107c |
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
ubuntu@ip-172-31-16-131:~/harmony-one/harmony (master) $ ./scripts/go_executable_build.sh | |
building cmd/harmony/main.go | |
# command-line-arguments | |
fatal error: runtime: out of memory | |
runtime stack: | |
runtime.throw(0x6765cc, 0x16) | |
/usr/local/go/src/runtime/panic.go:617 +0x72 | |
runtime.sysMap(0xc010000000, 0x4000000, 0x8587b8) | |
/usr/local/go/src/runtime/mem_linux.go:170 +0xc7 |
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
async sendTransaction(contractAddress, privateKey, from, to, amount, callback) { | |
let sendAmount = web3.utils.toWei(amount.toString(), 'ether') | |
const consumerContract = new web3.eth.Contract(config.erc20ABI, contractAddress); | |
const myData = consumerContract.methods.transfer(to, sendAmount).encodeABI(); | |
const gasPriceGwei = 3; | |
const gasLimit = 3000000; |
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
package syncing | |
import ( | |
"bytes" | |
"encoding/hex" | |
"fmt" | |
"reflect" | |
"sort" | |
"strconv" | |
"sync" |
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
package syncing | |
import ( | |
"bytes" | |
"encoding/hex" | |
"fmt" | |
"reflect" | |
"sort" | |
"strconv" | |
"sync" |
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
zerolog-validator-127.0.0.1-9110.log:{"level":"warn","port":"9110","ip":"127.0.0.1","error":"rpc error: code = DeadlineExceeded desc = context deadline exceeded","IP":"127.0.0.1","Port":"6004","caller":"/Users/dennis.won/harmony/api/service/syncing/syncing.go:698","time":"2019-08-31T12:19:51.161641-07:00","message":"[Sync]GetBlockChainHeight failed"} | |
zerolog-validator-127.0.0.1-9110.log:{"level":"error","port":"9110","ip":"127.0.0.1","error":"leveldb: not found","caller":"/Users/dennis.won/harmony/node/node_cross_shard.go:70","time":"2019-08-31T12:19:51.295978-07:00","message":"[ProcessingHeader] ReadCrossLink cannot read previousLink with number 11, shardID 1"} | |
zerolog-validator-127.0.0.1-9110.log:{"level":"error","port":"9110","ip":"127.0.0.1","error":"leveldb: not found","caller":"/Users/dennis.won/harmony/node/node_cross_shard.go:70","time":"2019-08-31T12:19:51.29602-07:00","message":"[ProcessingHeader] ReadCrossLink cannot read previousLink with number 11, shardID 1"} | |
zerolog-validator-127.0.0.1-9110.log |
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
* eb761340 - Merge cross-shard into master (7 days ago) <Rongjian Lan> | |
|\ | |
| * b4c9a326 - (tag: pangaea-20190822.0) [Pangaea] Update wallet.ini bootnodes (#1406) (8 days ago) <Christopher Liu> | |
| * 460c76bd - [Pangaea] New bootnode servers (#1405) (8 days ago) <Christopher Liu> | |
| * cbce10b9 - Merge pull request #1385 from john-harmony/local_with_explorer (8 days ago) <Leo Chen> | |
| |\ | |
| | * 6f15fbd8 - add explorer configuartion for local (9 days ago) <john-harmony> | |
| * | d21bc08e - Merge pull request #1388 from harmony-ek/fix_kill_node (8 days ago) <Leo Chen> | |
| |\ \ | |
| | * | edef0987 - Use kill_node.sh for killing nodes (9 days ago) <Eugene Kim> |