package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.moralis-streams.com/history/replay/%3AstreamId/%3Aid"
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Accept", "application/json")
req.Header.Add("X-API-Key", "YOUR_API_KEY")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}