@vechain/sdk-network
Version:
This module serves as the standard interface connecting decentralized applications (dApps) and users to the VeChainThor blockchain
18 lines (15 loc) • 510 B
text/typescript
import { type ThorClient } from '../../../../../thor-client';
import { ethChainId } from '../eth_chainId';
/**
* RPC Method net_version implementation
*
* @link [net_version](https://docs.infura.io/networks/ethereum/json-rpc-methods/net_version)
*
* @param thorClient - ThorClient instance.
*
* @returns The net version (equivalent to chain id in our case).
*/
const netVersion = async (thorClient: ThorClient): Promise<string> => {
return await ethChainId(thorClient);
};
export { netVersion };