Skip to content

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

ParameterValue
Chain ID20250407
RPC URLhttps://devnet3openapi.platon.network/rpc
Block ExplorerBlockscout-based
USDC Contract0xFF8dEe9983768D0399673014cf77826896F97e4d
Escrow Proxy0xeB33a9C2b4c7D3F44Fd5514F90C355AF6bb79236

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 / validAfter must be in milliseconds
  • Escrow releaseDeadline / disputeDeadline are computed from block.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 20000000000

WARNING

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:

  1. chainlist — Network configuration and chain metadata
  2. cli (cast) — Command-line interaction with contracts
  3. blockscout — Block explorer queries and verification
  4. crosschain — Cross-chain bridge operations
  5. aawallet — Account abstraction wallet management