Digine-Labs / rosettanet

Ethereum <> Starknet RPC middleware.
MIT License
34 stars 26 forks source link

feat: Implement web3_clientVersion method #168

Closed Boreas09 closed 1 month ago

Boreas09 commented 1 month ago

Returns the current client version

Parameters :

None Returns :

A string representing the current client version.

Request :

curl https://mainnet.infura.io/v3/YOUR-API-KEY \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"web3_clientVersion","params": [],"id":1}'

Response :

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "Geth/v1.11.6-omnibus-f83e1598/linux-.mdx64/go1.20.3"
}

DO NOT FORGET TO UPDATE methodsStatus.md (set this method as finished)

/rosettanet/docs/methodsStatus.md

methodsStatus.md