package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
)
func main() {
payload := map[string]interface{}{
"walletVersion": "V4",
"unsignedTransaction": "te6ccgEBAQEABgAACCiAmCM=",
"signature": "te6ccgEBAQEABgAACCiAmCM=",
"publicKey": "7031f1dcbe0f670daf4094d04ff9a7947bc4ac9174a7d470255d1a664e20b7c6",
}
body, _ := json.Marshal(payload)
req, _ := http.NewRequest("POST", "https://api.p2p.org/api/v1/ton/testnet/transactions/broadcast", bytes.NewBuffer(body))
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))
}