All methods accept the standard Ethereum params and return standard shapes. Only a few
YouthChain-specific extensions are called out below.
eth_chainId
Returns the chain ID as a hex quantity.
eth_blockNumber
Returns the current head height.
eth_getBlockByNumber / eth_getBlockByHash
Standard Ethereum block shape. YouthChain-specific fields parentHashes (array) and
dagRound are included alongside the single parentHash.
eth_getBalance
Returns the YCE balance of an address in wei (18 decimals).
eth_getTransactionCount
Returns the next usable nonce. Use "pending" to account for mempool txs.
eth_sendRawTransaction
Submits an already-signed tx (RLP-encoded, hex-prefixed). The node verifies the signature,
checks the nonce, adds to mempool, and returns the tx hash.
Supports legacy, EIP-2930, and EIP-1559 transactions. MetaMask users will hit this
path by default on modern versions.
eth_estimateGas
Simulates the call and returns the gas used. Honors the from address for revert
messages.
eth_gasPrice
Returns the recommended gas price. YouthChain uses a fixed floor of 0x3b9aca00
(1 gwei) — fee markets come in v2.
eth_getCode
Returns the deployed bytecode at an address.
eth_getStorageAt
Returns the 32-byte storage slot at (address, slot).
eth_getTransactionReceipt
Returns the receipt for a submitted tx. Includes status, blockNumber, blockHash,
gasUsed, and logs[]. A pending tx returns null.
eth_getTransactionByHash
Returns the full tx (possibly pending). If the tx is in a block, blockNumber and
blockHash are populated.
eth_call
Simulates a read-only call at a given block tag ("latest", "pending", or a hex
number). Perfect for querying any contract view function.
eth_getLogs
Query contract events by address / topics / block range.
Topic[0] is the event signature keccak. For EngagementOracle.ActionRecorded(address,uint8,uint256,bytes32)
that is 0x8ab2a273....