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.
GET https://api.stagemeta.dev/contracts/latest
GET
https://api.stagemeta.dev/contracts/latest
{ "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" }
curl -X 'GET' \ 'https://api.stagemeta.dev/contracts/latest' \ -H 'accept: application/json'
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))
Last updated 1 year ago