BuildPlanned
RPC
Planned. The node is not released. The interface below follows the Ethereum JSON-RPC specification, with the differences listed here.
Standard methods
Pallas nodes will serve the standard eth_, net_ and web3_ namespaces, including:
| Method | Notes |
|---|---|
eth_chainId, net_version |
Mainnet 38291, testnet 382910 (proposed) |
eth_blockNumber, eth_getBlockByNumber, eth_getBlockByHash |
Blocks include difficulty, nonce, mixHash |
eth_getBalance, eth_getTransactionCount, eth_getCode, eth_getStorageAt |
Unchanged |
eth_call, eth_estimateGas |
Estimates include PQ authentication gas |
eth_sendRawTransaction |
Accepts only type 0x50 |
eth_getTransactionByHash, eth_getTransactionReceipt |
See differences |
eth_getLogs, eth_subscribe (WebSocket) |
Unchanged |
eth_getWork, eth_submitWork, eth_submitHashrate |
Mining |
Differences from Ethereum
- Transaction objects contain
publicKey,signatureandschemein place ofv,r,s. eth_sign,personal_signandeth_signTransactionare not offered for ECDSA. Signing happens in the wallet or SDK.
Example
curl -s -X POST "$PALLAS_TESTNET_RPC" \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'