Open karneges opened 2 years ago
For some reason, the truncated response is returned, so the unmarshaled result is empty. I tried to debug lib but didn't succeed. So I'm using this code to simulate transactions (txn is the signed solana-go transaction):
req := `
{
"jsonrpc": "2.0",
"id": 1,
"method": "simulateTransaction",
"params": [
"` + txn.MustToBase64() + `",
{"replaceRecentBlockhash": true, "encoding": "base64"}
]
}`
resp, _ := http.Post("https://api.mainnet-beta.solana.com", "application/json", strings.NewReader(req))
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
Hello, I have just found an issue with transaction simulation, I tried it with a different RPC, but the result is the same, can you help me, please?