package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
)
func main() {
payload := map[string]interface{}{
"signedTransaction": "0x02f8758301e24004...",
}
body, _ := json.Marshal(payload)
req, _ := http.NewRequest("POST", "https://api-test.p2p.org/api/v2/monad/testnet/transactions", bytes.NewBuffer(body))
req.Header.Set("Authorization", "Bearer <token>")
req.Header.Set("Content-Type", "application/json")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
respBody, _ := io.ReadAll(resp.Body)
fmt.Println(string(respBody))
}