Developers
RPC, API and P2P.
The public node speaks Ethereum JSON-RPC, a few PSYROB methods, read-only JSON endpoints and P2P over WebSocket. Block numbers in RPC are chain heights of the selected chain.
Network
| Network name | PSYROB v9 testnet |
|---|---|
| Chain ID | 87869 (0x1573d) |
| Symbol and decimals | PSY, 18 |
| RPC | https://rpc.psyrob.com (POST JSON-RPC; also /rpc on the explorer) |
| Explorer | https://explorer.psyrob.com |
| P2P | wss://rpc.psyrob.com/p2p (WebSocket; a node uses it with --seeds wss://rpc.psyrob.com/p2p) |
| Genesis | 0x822567d37026f373a602400c044122a043ec8bd8bae69c0f91c36ccf1eb766be (check with npm run genesis:check) |
Add to a wallet
| chainId | 0x1573d |
|---|---|
| chainName | PSYROB v9 testnet |
| nativeCurrency | name PSY, symbol PSY, decimals 18 |
| rpcUrls | https://rpc.psyrob.com |
| blockExplorerUrls | https://explorer.psyrob.com |
Contracts
The EVM runs the Shanghai rules: compile contracts with evmVersion: "shanghai" (no transient storage, no blob opcodes). The system contracts and their ABIs are under Contracts and at /api/abi.
Examples
curl -s https://rpc.psyrob.com -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'
curl -s https://rpc.psyrob.com -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_getBalance","params":["0x0000000000000000000000000000000000000000","latest"]}'
curl -s https://rpc.psyrob.com -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"psy_dagInfo","params":[]}'
curl -s https://rpc.psyrob.com -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"psy_metrics","params":[8640]}'Ethereum methods
eth_accounts eth_blockNumber eth_call eth_chainId eth_estimateGas eth_feeHistory eth_gasPrice eth_getBalance eth_getBlockByHash eth_getBlockByNumber eth_getBlockTransactionCountByNumber eth_getCode eth_getLogs eth_getStorageAt eth_getTransactionByHash eth_getTransactionCount eth_getTransactionReceipt eth_hashrate eth_maxPriorityFeePerGas eth_mining eth_sendRawTransaction eth_syncing net_listening net_peerCount net_version web3_clientVersion
PSYROB methods
psy_addrman psy_dagInfo psy_finality psy_fundSignatures psy_getBlockTemplate psy_getDagBlock psy_getDagRange psy_metrics psy_mode psy_peers psy_submitBlock psy_supply psy_tips
Read-only JSON
| Path | Content |
|---|---|
/health | node status: chain ID, genesis, height, tip, peers |
/api/summary | tip and the latest chain blocks |
/api/dag?n=60 | the newest DAG blocks (at most 500) |
/api/map | data of the home page map |
/api/metrics | concentration and participation |
/api/mining | difficulty, attempts per second, intervals, red-block rate |
/api/abi | system contract ABIs and selectors |
Limits
| JSON-RPC | 200 calls burst, 50 per second per client; eth_call, eth_estimateGas, eth_getLogs and psy_getBlockTemplate 20 burst, 5 per second |
|---|---|
| Batches | at most 100 calls; request body at most 1 MiB |
| eth_getLogs | at most 10,000 blocks and 10,000 logs per call |
| Pages and /api | 60 requests burst, 10 per second per client |
| State | the latest chain block only (no historical state) |