package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://deep-index.moralis.io/api/v2.2/nft/getMultipleNFTs?chain=eth"
payload := strings.NewReader("{\"tokens\":[{\"token_address\":\"0xa4991609c508b6d4fb7156426db0bd49fe298bd8\",\"token_id\":\"12\"},{\"token_address\":\"0x3c64dc415ebb4690d1df2b6216148c8de6dd29f7\",\"token_id\":\"1\"},{\"token_address\":\"0x3c64dc415ebb4690d1df2b6216148c8de6dd29f7\",\"token_id\":\"200\"}],\"normalizeMetadata\":false,\"media_items\":false}")
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, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}