Skip to content

Commit 2c3f378

Browse files
committed
modify example
1 parent fd4129f commit 2c3f378

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/stellar_client/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ This client enables you to create new Stellar accounts or load existing ones on
1818

1919
Create new testnet account:
2020

21-
- If no mnemonic is provided, the client will create a new one using `Client.create`. If a mnemonic is provided, the client will be created using `Client.createFromMnemonic`.
21+
- Use `Client.create(NetworkType.TESTNET)` to create a new client.
22+
- Use `Client.createFromMnemonic(NetworkType.TESTNET, "mnemonic")` to create a client from an existing mnemonic.
2223
- Account can be activated through friendbot (only for testnet).
2324
- After activation, trustlines can be added to the account.
2425

0 commit comments

Comments
 (0)