Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.2

Get logs

GEThttps://api.moralis-streams.com/history/logs

get all failed logs

QUERY PARAMS
limitnumberrequired
cursorstring
Responses
API KEY
// Dependencies to install:
// $ npm install node-fetch --save
// add "type": "module" to package.json

import fetch from 'node-fetch';

const options = {
method: 'GET',
headers: {
accept: 'application/json',
'X-API-Key': 'YOUR_API_KEY'
},
};

fetch('https://api.moralis-streams.com/history/logs', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Response Example
{
"result": {
"id": "",
"streamId": "",
"chain": "",
"webhookUrl": "",
"tag": "",
"retries": "",
"deliveryStatus": "",
"blockNumber": "",
"errorMessage": "",
"type": "",
"createdAt": ""
},
"cursor": "",
"total": ""
}