eth
eth_chainId
Returns the chain ID of the network the node is connected to. The chain ID is used in transaction signing to prevent replay attacks across different networks.
Returns the chain ID of the network the node is connected to. The chain ID is used in transaction signing to prevent replay attacks across different networks.
Parameters
None.
Returns
string -- The chain ID as a hexadecimal string.
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_chainId",
"params": [],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x171"
}
TRY IT
Notes
- PulseChain mainnet returns
0x171(369 in decimal). - The chain ID was introduced in EIP-155 to prevent transaction replay attacks between networks.
- Wallets and libraries use this value to ensure transactions are signed for the correct network.
eth_estimateGas
Estimates the amount of gas required to execute a transaction. The transaction is not actually sent to the network. The estimate may be higher than the actual gas used because of EVM mechanics and nod
eth_call
Executes a read-only call against a contract without creating a transaction on the blockchain. This is the primary method for reading data from smart contracts, such as querying ERC20 token balances,
