status-go icon indicating copy to clipboard operation
status-go copied to clipboard

feat_: locally handled methods package base structure

Open kounkou opened this issue 8 months ago • 1 comments

Description

fixes #5417

Connector service aims at handling eth_ methods received through RPC or WS endpoints. However, some API's must be implemented locally. That's the case for :

  • eth_sendTransaction
  • eth_sign
  • eth_chainId
  • eth_requestAccounts

This PR is created to implement the base structure for implementing those API's. The PR includes implementation for the eth_chainId API.

Important changes:

  • [x] Add local node base structure for eth* calls
  • [x] Add eth_chainId

Test

Tested with Postman that we can query the eth_chainId

{
    "jsonrpc": "2.0",
    "id": 37,
    "result": "{\"jsonrpc\":\"2.0\",\"id\":0,\"result\":\"0x1\"}"
}

Screenshot from 2024-06-28 02-30-38

kounkou avatar Jun 24 '24 16:06 kounkou