Skip to main content

Replay history

POSThttps://api.moralis-streams.com/history/replay/:streamId/:id

Replay a specific history.

PATH PARAMS
streamIdstringrequired
The id of the stream the history will be replayed
idstringrequired
The id of the history to replay
Responses
API KEY
import Moralis from "moralis";

try {
await Moralis.start({
apiKey: 'YOUR_API_KEY',
// ...and any other configuration
});

const id = "id-1";
const streamId = "stream-1";

const { result } = await Moralis.Streams.retry({
id,
streamId,
});

console.log(result);
} catch (e) {
console.error(e);
}
Response Example
{
"payload": {
"logs": [
""
],
"txs": [
{
"triggers": [
""
]
}
],
"abi": [
""
]
}
}