The Contract API is used to retrieve the latest deployed version of the Stagemeta contract. This API provides a JSON response containing the contract's address and ABI.
Latest contract API
GET
https://api.stagemeta.dev/contracts/latest
Copy {
"id": 12,
"createdAt": "2023-01-28T17:36:38.542Z",
"updatedAt": "2023-01-28T17:36:38.542Z",
"deletedAt": null,
"version": "1.1.0",
"address": "0x83dda28e561f84cffbf8faa74f99ec57ed5dd093",
"status": "ACTIVE",
"abiAddress": "https://cdn.stagemeta.world/contracts/1.1.1.json"
}
Copy curl -X 'GET' \ 'https://api.stagemeta.dev/contracts/latest' \ -H 'accept: application/json'
Copy fetch('https://api.stagemeta.dev/contracts/latest', {
method: 'GET',
headers: {
'accept': 'application/json'
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error))