package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.moralis-streams.com/streams/evm/0x1/block/20226240"
payload := strings.NewReader("{\"tag\":\"my-tag\",\"allAddresses\":false,\"includeNativeTxs\":true,\"includeContractLogs\":false,\"includeInternalTxs\":false,\"includeAllTxLogs\":true,\"addresses\":[\"0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5\"]}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Accept", "application/json")
req.Header.Add("Content-Type", "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))
}