vechain-sdk-js icon indicating copy to clipboard operation
vechain-sdk-js copied to clipboard

🐛 [BUG] - Some RPC methods don't work as expected

Open victhorbi opened this issue 6 months ago • 4 comments

  • [ ] eth_estimateGas
  • [ ] eth_getTransactionCount (known)
  • [x] eth_gasPrice
  • [ ] eth_getCode
  • [x] eth_getLogs
e.g.
{
    "jsonrpc": "2.0",
    "error": {
        "methodName": "ethGetLogs()",
        "errorMessage": "Method \"ethGetLogs\" failed.",
        "data": {
            "code": -32603,
            "message": "Method \"ethGetLogs\" failed.",
            "data": {
                "params": "[{\"address\":\"0x170f4ba8e7acf6510f55db26047c83d13498af8a\"}]",
                "url": "http://mainnet.vechain.org",
                "innerError": "{\"methodName\":\"HttpClient.http()\",\"errorMessage\":\"Invalid URL: http://mainnet.vechain.org/logs/event\",\"data\":{\"method\":\"POST\",\"url\":\"http://mainnet.vechain.org/logs/event\",\"message\":\"Request failed\"},\"innerError\":{\"methodName\":\"HttpClient.http()\",\"errorMessage\":\"Invalid URL: http://mainnet.vechain.org/logs/event\",\"data\":{\"method\":\"POST\",\"url\":\"http://mainnet.vechain.org/logs/event\",\"status\":405}}}"
            }
        }
    },
    "id": 1
}

victhorbi avatar Aug 02 '24 15:08 victhorbi