Hello Developers, If I have PRV’s in my Keychains For Example- If I have 10 Prv’s in Anon Keychain and I want to check the PRV balance of my keychain without visiting my Incognito Wallet. Is there an RPC Call like “getbalancebyprivatekey” that can be used to check the keychain balance?
Let us assume two scenarios here
-
Scenario A
Where I am running an Incognito Node and generating PRV Rewards and withdrawing these rewards in my Keychain. How do I read/check my PRV balance? I do know that I can use “getbalancebyprivatekey” RPC. For this RPC to work with Incognito V2 I will have to submit the OTA key either using Default Mode(Validators/Shard) or Enhanced Mode(Full Node Owners). Depending on whether I am a Validator or Full node owner I can choose the mode.
Let us assume I am a validator and not a full node owner, how do I get an access token in that scenario?
Is there any other way to read the PRV balances that hit my wallet after I withdraw my rewards? -
Scenario B
Here I am not running any Nodes, I just received PRVs in my incognito wallet. is there a way I can check the PRV balance of the wallet using an RPC? Because if I am not a Node owner there is no way I can get an access token and if I do not get an access token I cannot submit the OTA Key using enhanced Mode.
My goal is to be able to read the PRV balance of my Keychains using an RPC call or any other code. Please Guide me @sid @Gaurav_Saini