PlatON Devnet Skills
TIP
This guide covers setting up the PlatON development network for Nexus integration testing.
Prerequisites
- Node.js 24+
- Foundry toolchain (
forge,cast,anvil) - A funded wallet on PlatON Devnet (chainId:
20250407)
Network Configuration
| Parameter | Value |
|---|---|
| Chain ID | 20250407 |
| RPC URL | https://devnet3openapi.platon.network/rpc |
| Block Explorer | Blockscout-based |
| USDC Contract | 0xFF8dEe9983768D0399673014cf77826896F97e4d |
| Escrow Proxy | 0xeB33a9C2b4c7D3F44Fd5514F90C355AF6bb79236 |
Important: Millisecond Timestamps
PlatON Devnet uses block.timestamp in milliseconds inside the EVM, despite the RPC layer returning seconds. This affects all on-chain timestamp comparisons:
- EIP-3009
validBefore/validAftermust be in milliseconds - Escrow
releaseDeadline/disputeDeadlineare computed fromblock.timestamp
Foundry Usage on PlatON
PlatON requires the --legacy flag for transaction broadcasting:
bash
forge script Deploy.s.sol \
--rpc-url https://devnet3openapi.platon.network/rpc \
--broadcast \
--legacy \
--with-gas-price 20000000000WARNING
EIP-1559 transactions get 1 wei gas price on PlatON, which is too low. Always use --legacy.
Skills Overview
Five developer skills are available for PlatON devnet interaction:
- chainlist — Network configuration and chain metadata
- cli (cast) — Command-line interaction with contracts
- blockscout — Block explorer queries and verification
- crosschain — Cross-chain bridge operations
- aawallet — Account abstraction wallet management