3

After I run fresh Tron node with the command

docker run -it -p 9090:9090 --rm --name tron trontools/quickstart

I'm trying to get blocks:

curl -X POST  http://127.0.0.1:9090/wallet/getblockbylimitnext -d '{"startNum": 1, "endNum": 2}'

But instead of an array, the response contains an empty object:

{}

How to make node to work as it described in documentation here: https://tronprotocol.github.io/documentation-en/api/http/?

Vassily
  • 5,263
  • 4
  • 33
  • 63

1 Answers1

0

It should be a GET request. A corresponding pull request to the docs is created.

Vassily
  • 5,263
  • 4
  • 33
  • 63