Skip to content

GET /api/contractTimestamp

GET
/api/contractTimestamp

get the contract timestamp if any. This contract define the current time, can be used to accelrate time in testing

Responses

Samples

cURL
curl -X GET http://localhost/api/contractTimestamp
JavaScript
fetch("http://localhost/api/contractTimestamp")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/contractTimestamp");
Python
import requests
response = requests.get("http://localhost/api/contractTimestamp")
print(response.json())
Powered by VitePress OpenAPI