curl https://YOUR_QUICKNODE_ENDPOINT_HERE.com/addon/670/defi/events \
-X GET
const axios = require("axios");
(() : {
const config = {
headers: {
"Content-Type": "application/json",
},
};
axios
.get(
"https://YOUR_QUICKNODE_ENDPOINT_HERE.com/addon/670/defi/events",
config
)
.then(function (response) {
// handle success
console.log(response.data);
})
.catch((err) : {
// handle error
console.log(err);
});
})();
import requests
response = requests.get("https://YOUR_QUICKNODE_ENDPOINT_HERE.com/addon/670/defi/events")
parsed = parse(response.json())
if isinstance(parsed, Ok):
print(parsed.result)
else:
logging.error(parsed.message)