RPC request to a virtual Node

Hi, i’ve got problem with my node, i’m trying to call gettransactionbyhash the result is "Message": "Tx is not existed in mem and block" (did try with tx that from 10 days ago )

another call to getblockchaininfo result[‘BestBlocks’][’-1’] = same as data provided by mainnet.incognito, incscan (i belevie the -1 returns data of the local node, i didnt find any information about that), if i’m not wrong about this call it appears to be something wrong with the vNode

Another issue why i’m unable to change node in the app settings, only can use preferred ones ? @Support

4 Likes

Hi @poisonivy could you please show us the full body and response you have when calling those RPC?

Do you mean the full node one?
Image from iOS (112)
Normally you can change to another environment but your balance/ data will not be transferred together with. Let’s say, Mainnet is the default one that can be used.

2 Likes

Im currently waiting to sync, on another SSD with another Linux…

I do not want to change “environment”, id like to use my node, as mainnet server for example, or just another mainnet node, which in fact should return the same data as the default Mainnet node.

Same story again…
[email protected]: curl “http://192.168.1.76:9334” -H “Content-Type: application/json” -X POST --data ‘{“id”: 1, “method”: “getblockchaininfo”,“params”: “”}’
{
“Id”: 1,
“Result”: {
“ChainName”: “mainnet”,
“BestBlocks”: {
“-1”: {
“Height”: 928307,
“Hash”: “8e6d14749221b1d4b316a946a02db21dca7da1471725ecfc8974ef898209e3e1”,
“TotalTxs”: 0,
“BlockProducer”: “121VhftSAygpEJZ6i9jGkBv7HQDJxtYDYRtBpR5Uu93bZ6StXn8vcqi79KTYerTszhA7TYGK8seTFXXtERuNWpCqB1ABjhyhyyP1Jtpoyjjn5zv4PbsQEjJKXCuBmB8NosvJyTzkh26dVfvV5nUo5bRPs9s7FEvcQdCA11iW6BmgUZJbM8NbyHJormkiHfNcrQUbQuiDY6gGcfDzWRgZvLtGaNPa9Wno82NyumTWGXu74Wpvv6R4uyRPgjisuRct9ZPgqFU7WGJ78DM7APZGakNK8K1wbPDq3aHU3fF92RkfaNt5FmS8LXrifgJfSAj2q886Vw6FSVSGmjwmHwpPgG5DFqoytf2GNYAX1e5xzaUMbxqcSR8APVZe4cXGG38ymVbWPznpH5Qf8gMPjvAKaEbzGcMqyKSDMgCFYayGo2D8GeyD”,
“ValidationData”: “{“ProducerBLSSig”:“3gHLzCdasCGL/XAKvF1agIJQEQX0bH0cLWgp2hyG5X5oPYIqFdknVqsRGgPwoktkwucCGtPNAJgweT0QhBVqvwE=”,“ProducerBriSig”:null,“ValidatiorsIdx”:[0,3,4,5,6],“AggSig”:“mVNiXQjM03Qg4+JMi/U8jyV0L7gbnC1NNpiKOcZuzKs=”,“BridgeSig”:[”","","","",""]}",
“Epoch”: 2653,
“Time”: 1609806898,
“RemainingBlockEpoch”: 243,
“EpochBlock”: 350
},
“0”: {
“Height”: 1,
“Hash”: “eda42a1f8ef9236521147d7a622edd7fe2904a64d49232cf2cc87c943f6e2cb7”,
“TotalTxs”: 179,
“BlockProducer”: “”,
“ValidationData”: “”,
“Epoch”: 0,
“Time”: 1572307200,
“RemainingBlockEpoch”: 0,
“EpochBlock”: 0
},
“1”: {
“Height”: 72902,
“Hash”: “96216d01039d217f49d8f8cd1d5069b530bc0e2b7ae8f6bc90bfdc8ca2fcce85”,
“TotalTxs”: 7217,
“BlockProducer”: “121VhftSAygpEJZ6i9jGkRR3eZfWVTn5LBKGudLCTtYwY4uL76ahvH2YJg5ina51AhPWVQVXcqMFkGYFdLpm2Wk9uY46iinywG25D89g5TAAmTSNRgqp3aG2TBErzmTE3gTJtpEi6Z6VRh7H1taYMWUpKvkozY5PrGzRLTneznHCUGJbYHaGW7gwczq4rsjcgHD5KNtPdYgn9QRkbsMrpQYefLkcXvK83fs7q8d49ps9kknhsxD3WHqMDdJMMtCbX7KHJZZqGJ44HSnxb2uv9CTCPiisWhYUNbfSZPEM6U2o9MFd9kZzZUtZU5nzXWwQxzmBNird58Utb3BdAQjeoBeP36UBzKHCgVnm39pxxCkfcWcaDerUseWo5XaNyeeGXHTMNYFUCRF8CSXUiTbKdcDqBhfnatQV9StMKuydyoN2HJ8C”,
“ValidationData”: “{“ProducerBLSSig”:“E2bc6zyB+EZ+2oLDMZiQBSGZjyN7i/O2tQ3EIY1N+fRay85kBeSEcrqz8y3L6GtdCGrI+nIsH3kxPGy4SrXIyAA=”,“ProducerBriSig”:null,“ValidatiorsIdx”:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,23,24,26,27,28,29,30,31],“AggSig”:“KWItJkqo7/Z4S94PFVTuBqsROmtKu4lf4AM6DOQ4dSA=”,“BridgeSig”:[”","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""]}",
“Epoch”: 0,
“Time”: 1575322200,
“RemainingBlockEpoch”: 0,
“EpochBlock”: 0
},
“2”: {
“Height”: 1,
“Hash”: “4c3277bb3ad4645f77580b2544babac55c83d2b3ea1cf9c1c7bdb4bfd3a49fcd”,
“TotalTxs”: 179,
“BlockProducer”: “”,
“ValidationData”: “”,
“Epoch”: 0,
“Time”: 1572307200,
“RemainingBlockEpoch”: 0,
“EpochBlock”: 0
},
“3”: {
“Height”: 1,
“Hash”: “7a0edd805551905a07088be49fcd00c10e15ff2f82511fdcdddd1bed291f91d6”,
“TotalTxs”: 179,
“BlockProducer”: “”,
“ValidationData”: “”,
“Epoch”: 0,
“Time”: 1572307200,
“RemainingBlockEpoch”: 0,
“EpochBlock”: 0
},
“4”: {
“Height”: 1,
“Hash”: “9c0d2aa82c0eb2a65e8eb9ce0b618aac7b3d738d2fc274e575e5b6d2e7999658”,
“TotalTxs”: 179,
“BlockProducer”: “”,
“ValidationData”: “”,
“Epoch”: 0,
“Time”: 1572307200,
“RemainingBlockEpoch”: 0,
“EpochBlock”: 0
},
“5”: {
“Height”: 1,
“Hash”: “c47efc666cd9250ffce9da90732f3210287b1083619d3b494e144757a732cdf4”,
“TotalTxs”: 179,
“BlockProducer”: “”,
“ValidationData”: “”,
“Epoch”: 0,
“Time”: 1572307200,
“RemainingBlockEpoch”: 0,
“EpochBlock”: 0
},
“6”: {
“Height”: 1,
“Hash”: “771a0b0ce4ccfb1397b48de0bcf1c708d4077ddbc655facaf47d250db03a6a75”,
“TotalTxs”: 179,
“BlockProducer”: “”,
“ValidationData”: “”,
“Epoch”: 0,
“Time”: 1572307200,
“RemainingBlockEpoch”: 0,
“EpochBlock”: 0
},
“7”: {
“Height”: 1,
“Hash”: “e93b48afba183a166c3b3e71b401dc0a74eb23f278012140727af9ecbb2fab89”,
“TotalTxs”: 179,
“BlockProducer”: “”,
“ValidationData”: “”,
“Epoch”: 0,
“Time”: 1572307200,
“RemainingBlockEpoch”: 0,
“EpochBlock”: 0
}
},
“ActiveShards”: 8
},
“Error”: null,
“Params”: “”,
“Method”: “getblockchaininfo”,
“Jsonrpc”: “”
}

[email protected]: curl "http://192.168.1.76:9334" -H "Content-Type: application/json" -X POST --data '{ "id": 1, "method": "gettransactionbyhash", "params": ["60806d32d676a3f8a9fd1f68fda64df6bbb072a62fca3b98cd4c2d4f4caff1b3"] }'
{
        "Id": 1,
        "Result": null,
        "Error": {
                "Code": -1017,
                "Message": "Tx is not existed in mem and block",
                "StackTrace": "-1017: Tx is not existed in block or mempool\nTx is not existed in mem and block\ngithub.com/incognitochain/incognito-chain/rpcserver/rpcservice.NewRPCError\n\t/Users/autonomous/projects/incognito-chain/rpcserver/rpcservice/error.go:291\ngithub.com/incognitochain/incognito-chain/rpcserver/rpcservice.TxService.GetTransactionByHash\n\t/Users/autonomous/projects/incognito-chain/rpcserver/rpcservice/txservice.go:947\ngithub.com/incognitochain/incognito-chain/rpcserver.(*HttpServer).handleGetTransactionByHash\n\t/Users/autonomous/projects/incognito-chain/rpcserver/http_tx.go:264\ngithub.com/incognitochain/incognito-chain/rpcserver.(*HttpServer).ProcessRpcRequest\n\t/Users/autonomous/projects/incognito-chain/rpcserver/http.go:302\ngithub.com/incognitochain/incognito-chain/rpcserver.(*HttpServer).handleRequest.func2\n\t/Users/autonomous/projects/incognito-chain/rpcserver/http.go:182\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1357 "
        },
        "Params": [
                "60806d32d676a3f8a9fd1f68fda64df6bbb072a62fca3b98cd4c2d4f4caff1b3"
        ],
        "Method": "gettransactionbyhash",
        "Jsonrpc": ""
}
1 Like

Txn shows up fine for me using the Txn explorer on Discord. See below.

image

1 Like

Haven’t got any clues where the problem might be, tested on 2 types of Linux, currently Ubuntu Server 20.04, error log stays at 0 bytes

Should i do something additional or is only that

curl -LO https://node.incognito.org/run.sh && sed -i s/xxx/validator_key/ run.sh && sudo bash run.sh

1 Like

Why don’t you just download the run.sh manually, edit the validator key, make the file executable and run it as sudo? This way it’s easier to see where the problem is than just copy paste a long shell command :wink:

3 Likes

I know what im doing, if there is people around here that do copy/paste im not one of them,

The node itself is running, half of the rpc command not working, another half is fine, still no trace of errors

Sorry then I misunderstood your question…

1 Like

There is nothing that needs to be done additionally. Your Node was running just fine. I see the beacon height here.

Let’s find out what is the problem with the RPC you called. I will split this post to avoid the confusion, as this post is mainly about hosting a virtual Node. @poisonivy

1 Like

The problem is your node is a validator. So you can only get the transaction in the shard of your node and your node need to be in committee list to sync shard’s blocks. That’s why you get the error when you get the transaction of other shards.

Tx is not existed in mem and block

Note: -1 is Beacon, 0->7 is Shard.

4 Likes

Didnt know that about sharding…

I have assumed that when -1 (Beacon) = other explorers its fully synced.

Would be nice, if people who run vNodes to see some information about sync status or at least bit more detailed errors to clear the confusion.

Now just gonna wait and see what will happen when i got in to the committee .

Thank you!

3 Likes