Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api eth_getBalance, get pending balance occurrence error #43

Open
nowto opened this issue Oct 11, 2018 · 0 comments
Open

api eth_getBalance, get pending balance occurrence error #43

nowto opened this issue Oct 11, 2018 · 0 comments

Comments

@nowto
Copy link

nowto commented Oct 11, 2018

Describe the bug
api eth_getBalance, get pending balance occurrence error.
when TAG param is "pending", return error.

To Reproduce

  1. prepare request json
{"jsonrpc":"2.0","method":"eth_getBalance","params":["0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b","pending"],"id":7}
  1. send request to eth_getBalance api
  2. it return:
{
  "jsonrpc": "2.0",
  "id": "",
  "error": {
    "code": -32603,
    "message": "Internal error",
    "data": "runtime error: invalid memory address or nil pointer dereference"
  }
}

Expected behavior
for example:

{
  "jsonrpc": "2.0",
  "id": 6,
  "result": "0x7fffffffffffffff"
}
json

**Desktop (please complete the following information):**
 - OS: Ubuntu
 - Version: 18.04 lts
 - Golang Version: go1.10.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant