開發者
RPC、API 與 P2P。
公共節點支援以太坊 JSON-RPC、若干 PSYROB 方法、唯讀 JSON 端點以及基於 WebSocket 的 P2P。RPC 中的區塊編號是選定鏈的鏈高度。
網路
| 網路名稱 | PSYROB v11 testnet |
|---|---|
| 鏈 ID | 87870 (0x1573e) |
| 代幣符號與小數位數 | PSY, 18 |
| RPC | https://rpc.psyrob.com(POST JSON-RPC;瀏覽器上也可用 /rpc) |
| 瀏覽器 | https://explorer.psyrob.com |
| P2P | wss://rpc.psyrob.com/p2p(WebSocket;節點透過 --seeds wss://rpc.psyrob.com/p2p 使用它) |
| 創世 | 0x2047c2121a04522ad149832eb5fcd9a43c9f7cbe9bfe2c552f2c0601a133461d(用 npm run genesis:check 檢查) |
加入錢包
| chainId | 0x1573e |
|---|---|
| chainName | PSYROB v11 testnet |
| nativeCurrency | 名稱 PSY,符號 PSY,小數位數 18 |
| rpcUrls | https://rpc.psyrob.com |
| blockExplorerUrls | https://explorer.psyrob.com |
合約
EVM 採用 Shanghai 規則:使用 evmVersion: "shanghai" 編譯合約(不支援暫態儲存和 blob 操作碼)。系統合約及其 ABI 見合約和 /api/abi。
範例
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]}'以太坊方法
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 方法
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
唯讀 JSON
| 路徑 | 內容 |
|---|---|
/health | 節點狀態:鏈 ID、創世、高度、鏈尖、對等節點 |
/api/summary | 鏈尖和最新的鏈區塊 |
/api/dag?n=60 | 最新的 DAG 區塊(最多 500 個) |
/api/map | 首頁地圖資料 |
/api/metrics | 集中度與參與情況 |
/api/mining | 難度、每秒嘗試次數、間隔、紅色區塊比例 |
/api/abi | 系統合約 ABI 與選擇器 |
限制
| JSON-RPC | 突發 200 次呼叫,每個用戶端每秒 50 次;eth_call、eth_estimateGas、eth_getLogs 和 psy_getBlockTemplate 突發 20 次,每秒 5 次 |
|---|---|
| 批次 | 最多 100 次呼叫;請求內容最大 1 MiB |
| eth_getLogs | 每次呼叫最多 10,000 個區塊和 10,000 筆日誌 |
| 頁面和 /api | 突發 60 次請求,每個用戶端每秒 10 次 |
| 狀態 | 僅最新鏈區塊(無歷史狀態) |