I use go sdk to run the move porto testnet , but the node rpc response ‘403 Forbidden’. when i use the aptos testnet, it run ok ,no error. anyone can help, thank you so much.
Hey Henry can you provide some details/code snippets on what you are doing so far and how you are configuring the go sdk to use movement, this will be helpful in helping troubleshoot thanks!
code from aptos
url := “https://aptos.testnet.porto.movementlabs.xyz/v1/accounts/0xc9a36d3a89be3cfd17ca64e18d3c9cd5d0b1ea1e86f8b1c49f039724c13c2970/resources”
method := “GET”
client := &http.Client{}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
from website : Aptos Node API
Try using fasthttp client instead of net/http to make RPC calls