Created
March 3, 2020 21:33
-
-
Save denniswon/22497c53442135af8ac3c2ddf9eda6be to your computer and use it in GitHub Desktop.
Explorer nodes in shard 0 and shard 1
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
======================= | |
shard 1 explorer node: | |
dennis.won@Jongs-MacBook-Pro:~/harmony-one/harmony (pr_staking_txn_history_t3) $ curl --location --request POST 'http://127.0.0.1:9599' --header 'Content-Type: application/json' --data-raw '{ | |
"jsonrpc": "2.0", | |
"method": "hmyv2_getTransactionsHistory", | |
"params": [{ "address": "one103q7qe5t2505lypvltkqtddaef5tzfxwsse4z7", "fullTx": true, "txType": "ALL", "order": "ASC" }], | |
"id": 1 | |
}' | |
{"jsonrpc":"2.0","id":1,"result":{"transactions":[{"blockHash":"0xe30e9b3aea9f37ef5498a47ca159ce881495a32091a86e5fa914b8a94ec88311","blockNumber":56,"from":"one103q7qe5t2505lypvltkqtddaef5tzfxwsse4z7","timestamp":1583270509,"gas":21000,"gasPrice":1000000000,"hash":"0x116e9f2563274ed4d738fd991eb10ee03a4119c7e0a6366f38e8a3f298f860a7","input":"0x","nonce":0,"to":"one129r9pj3sk0re76f7zs3qz92rggmdgjhtwge62k","transactionIndex":0,"value":10000000000000000000,"shardID":0,"toShardID":0,"v":"0x28","r":"0x7bf59745ec4c7a786bedf5f6c908907aec738170debaeca64c6348f7f1b4af4b","s":"0x32976cdf4176cac714825ffd2bafe07720048cd0b5ce1d11284507c56d230ad0"},{"blockHash":"0xb44f8ad3a66365a582c39ee99b8a057a365acab7ee843f749150878a642db634","blockNumber":62,"from":"one103q7qe5t2505lypvltkqtddaef5tzfxwsse4z7","timestamp":1583270557,"gas":21000,"gasPrice":1000000000,"hash":"0xb6d7f3c80edc4593078edbc8b76069c226602990d1ea8c4be8ca6c86f49fc58a","input":"0x","nonce":1,"to":"one129r9pj3sk0re76f7zs3qz92rggmdgjhtwge62k","transactionIndex":0,"value":10000000000000000000,"shardID":0,"toShardID":0,"v":"0x27","r":"0x5f767ce4879e362a6cf485b34aa1c4fb8ad9ce380817fc8dac23a57cb54b7dd0","s":"0x27a02567c6ca28596ad488c4e11d71fce0d4d35a616f5bac82d20e8f269eb910"}]}} | |
======================= | |
shard 0 explorer node: | |
dennis.won@Jongs-MacBook-Pro:~/harmony-one/harmony (pr_staking_txn_history_t3) $ curl --location --request POST 'http://127.0.0.1:9512' --header 'Content-Type: application/json' --data-raw '{ | |
"jsonrpc": "2.0", | |
"method": "hmyv2_getTransactionsHistory", | |
"params": [{ "address": "one103q7qe5t2505lypvltkqtddaef5tzfxwsse4z7", "fullTx": true, "txType": "ALL", "order": "ASC" }], | |
"id": 1 | |
}' | |
{"jsonrpc":"2.0","id":1,"result":{"transactions":[{"blockHash":"0xe30e9b3aea9f37ef5498a47ca159ce881495a32091a86e5fa914b8a94ec88311","blockNumber":56,"from":"one103q7qe5t2505lypvltkqtddaef5tzfxwsse4z7","timestamp":1583270509,"gas":21000,"gasPrice":1000000000,"hash":"0x116e9f2563274ed4d738fd991eb10ee03a4119c7e0a6366f38e8a3f298f860a7","input":"0x","nonce":0,"to":"one129r9pj3sk0re76f7zs3qz92rggmdgjhtwge62k","transactionIndex":0,"value":10000000000000000000,"shardID":0,"toShardID":0,"v":"0x28","r":"0x7bf59745ec4c7a786bedf5f6c908907aec738170debaeca64c6348f7f1b4af4b","s":"0x32976cdf4176cac714825ffd2bafe07720048cd0b5ce1d11284507c56d230ad0"},{"blockHash":"0xb44f8ad3a66365a582c39ee99b8a057a365acab7ee843f749150878a642db634","blockNumber":62,"from":"one103q7qe5t2505lypvltkqtddaef5tzfxwsse4z7","timestamp":1583270557,"gas":21000,"gasPrice":1000000000,"hash":"0xb6d7f3c80edc4593078edbc8b76069c226602990d1ea8c4be8ca6c86f49fc58a","input":"0x","nonce":1,"to":"one129r9pj3sk0re76f7zs3qz92rggmdgjhtwge62k","transactionIndex":0,"value":10000000000000000000,"shardID":0,"toShardID":0,"v":"0x27","r":"0x5f767ce4879e362a6cf485b34aa1c4fb8ad9ce380817fc8dac23a57cb54b7dd0","s":"0x27a02567c6ca28596ad488c4e11d71fce0d4d35a616f5bac82d20e8f269eb910"}]}} | |
Even shard 1 Explorer node returns shard 0 (same shard) transactions via hmyv2_getTransactionsHistory API. | |
How does the explorer node in one shard knows about txns on the other shard? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment