Links
Comment on page

platform.getTimestamp

Get the current P-Chain timestamp.

Signature​​

platform.getTimestamp() -> {time: string}

Example

Request
curl -X POST --data '{
"jsonrpc": "2.0",
"method": "platform.getTimestamp",
"params": {},
"id": 1
}
}' -H 'content-type:application/json;' https://ava-mainnet.blastapi.io/<project-id>/ext/P
Result
{
"jsonrpc": "2.0",
"result": {
"timestamp": "2022-03-21T15:55:15Z"
},
"id": 1
}