Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Wrong Value in balance #3

Open
BhavyaGoelAppinventiv opened this issue Dec 27, 2021 · 1 comment
Open

Wrong Value in balance #3

BhavyaGoelAppinventiv opened this issue Dec 27, 2021 · 1 comment

Comments

@BhavyaGoelAppinventiv
Copy link

BhavyaGoelAppinventiv commented Dec 27, 2021

I am using the sample app with my test key. everything is working fine but balance. Some time balance is negative some time it's a random number, which is different from the balance in my account. Please help us to resolve that.

Balance Request :
let req = BasicRPCRequest(
id: properties.rpcId,
jsonrpc: Web3.jsonrpc,
method: "eth_getBalance",
params: [address, block]
)
properties.provider.send(request: req, response: response)

@BhavyaGoelAppinventiv
Copy link
Author

I am using the sample app with my test key. everything is working fine but balance. Some time balance is negative some time it's a random number, which is different from the balance in my account. Please help us to resolve that.

Balance Request :

 let req = BasicRPCRequest(
                id: properties.rpcId,
                jsonrpc: Web3.jsonrpc,
                method: "eth_getBalance",
                params: [address, block]
            )
            properties.provider.send(request: req, response: response)

Values we are sending in req

▿ RPCRequest<EthereumValue>
  - id : 1
  - jsonrpc : "2.0"
  - method : "eth_getBalance"
  ▿ params : EthereumValue
    ▿ valueType : ValueType
      ▿ array : 2 elements
        ▿ 0 : EthereumValue
          ▿ valueType : ValueType
            - string : "0xab429566f324d0f6b740c225f5421be27ea692dc"
        ▿ 1 : EthereumValue
          ▿ valueType : ValueType
            - string : "latest"

Screenshot 2021-12-27 at 12 39 58 PM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant