Skip to content

Commit

Permalink
fix: chainid docs
Browse files Browse the repository at this point in the history
  • Loading branch information
claytonneal committed Mar 7, 2025
1 parent 079f7cd commit f068a14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Hex, HexUInt } from '@vechain/sdk-core';
import { HexUInt } from '@vechain/sdk-core';

/**
* Chain ID's this is the blockId of the genesis block
Expand Down
8 changes: 7 additions & 1 deletion packages/rpc-proxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,13 @@ The following mappings are performed by the RPC proxy
| finalized block | finalized block |
| pending block | best block |
| earliest block | block number 0 |
| chainId | genesis block id |


The method `eth_chainId` returns:

* `0x186a9` for mainnet
* `0x186aa` for testnet
* for solo or other custom networks it returns the _chainTag_ (the last byte of the genesis block id)


## Transaction Coversions
Expand Down

0 comments on commit f068a14

Please sign in to comment.