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
parent ff5b5ab258
commit 877ed4e980
18 changed files with 1833 additions and 9 deletions

View File

@@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"github.com/Peersyst/xrpl-go/pkg/crypto"
"github.com/Peersyst/xrpl-go/xrpl/faucet"
"github.com/Peersyst/xrpl-go/xrpl/queries/account"
"github.com/Peersyst/xrpl-go/xrpl/rpc"
@@ -11,10 +12,6 @@ import (
"github.com/Peersyst/xrpl-go/xrpl/wallet"
)
const (
WalletSeed = "sn3nxiW7v8KXzPzAqzyHXbSSKNuN9"
)
func main() {
cfg, err := rpc.NewClientConfig(
"https://s.altnet.rippletest.net:51234/",
@@ -26,7 +23,7 @@ func main() {
client := rpc.NewClient(cfg)
w, err := wallet.FromSeed(WalletSeed, "")
w, err := wallet.New(crypto.ED25519())
if err != nil {
fmt.Println(err)
return