curl https://mainnet.avalanche.validationcloud.io/v1/<YOUR_API_KEY_HERE>/ext/bc/P \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "platform.getTimestamp",
"params": {},
"id": 1
}
}'
Get the current P-Chain timestamp.
This method will use 90
Compute Units.
None
timestamp
- string - The timestamp of the current P-chain.