feat(_code-samples): WiP add go tx examples implementation and get-started section

This commit is contained in:
banasa44
2025-07-21 11:47:33 +02:00
committed by akcodez
parent 8e03dd05b6
commit a10630dfff
18 changed files with 1833 additions and 9 deletions

View File

@@ -0,0 +1,24 @@
package main
import (
"github.com/Peersyst/xrpl-go/xrpl/queries/utility"
"github.com/Peersyst/xrpl-go/xrpl/rpc"
)
func main() {
// Define the network client configuration
cfg, err := rpc.NewClientConfig("https://s.altnet.rippletest.net:51234/")
if err != nil {
panic(err)
}
// Initiate the network client
client := rpc.NewClient(cfg)
// Ping the network (used to avoid Go unused variable error, but useful to check connectivity)
_, err = client.Ping(&utility.PingRequest{})
if err != nil {
panic(err)
}
}