Digine-Labs / rosettanet

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

feat: Implement eth_protocolVersion method #165

Closed Boreas09 closed 2 months ago

Boreas09 commented 3 months ago

Returns the current Ethereum protocol version.

Parameters :

None Returns :

`protocol version: A hexadecimal indicating the current Ethereum protocol version.

Request :

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

Response :

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x41"
}

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

/rosettanet/docs/methodsStatus.md

methodsStatus.md