개발자
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"로 컨트랙트를 컴파일하세요(transient storage와 blob opcode 없음). 시스템 컨트랙트와 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회 |
| 상태 | 최신 체인 블록만(과거 상태 없음) |