mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-04 20:05:50 +00:00
chore(docs): small fixes/changes in go tutorials docs
This commit is contained in:
@@ -27,7 +27,6 @@ In this tutorial, you'll learn:
|
||||
- How to connect to the XRP Ledger using `xrpl-go`.
|
||||
- How to get an account on the [Testnet](/resources/dev-tools/xrp-faucets) using `xrpl-go`.
|
||||
- How to use the `xrpl-go` library to look up information about an account on the XRP Ledger.
|
||||
- How to put these steps together to create a Java app.
|
||||
|
||||
## Requirements
|
||||
|
||||
@@ -73,7 +72,7 @@ The sample code in the previous section shows you how to connect to the Testnet,
|
||||
|
||||
```go
|
||||
import "github.com/Peersyst/xrpl-go/xrpl/websocket"
|
||||
const MyServer := "http://localhost:5005/"
|
||||
const MyServer := "ws://localhost:6006/"
|
||||
client := websocket.NewClient(websocket.NewClientConfig().WithHost(MyServer))
|
||||
```
|
||||
|
||||
@@ -89,7 +88,7 @@ The sample code in the previous section shows you how to connect to the Testnet,
|
||||
|
||||
### 2. Get account
|
||||
|
||||
In `xrpl-go`, account creation and key management live in the wallet package, and on Testnet you can use the built-in faucet provider on your WebSocket client to fund a brand-new account immediately.
|
||||
In `xrpl-go`, account creation and key management live in the wallet package, and on Testnet you can use the built-in faucet provider on your WebSocket (or RPC) client to fund a brand-new account immediately.
|
||||
|
||||
Here we spin up a Testnet‐connected WebSocket client, generate a fresh ED25519 wallet, then fund it automatically via the public faucet.
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ metadata:
|
||||
|
||||
# GoLang
|
||||
|
||||
You can create your own interface to try out the capabilities and support your specific business needs. These tutorials build a test harness interface to try out features of the XRP Ledger. The harness displays multiple accounts, so that you can transfer tokens from one account to the other and see the results in real time.
|
||||
You can create your own interface to try out the capabilities and support your specific business needs. These tutorials build a test harness interface to try out features of the XRP Ledger.
|
||||
|
||||
Typically, the example functions involve four steps.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user