Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TS SDK README.md #6087

Merged
merged 1 commit into from
Nov 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update README.md
Changed comments for `Connecting to Sui Network` base on https://github.com/MystenLabs/sui/blob/main/sdk/typescript/src/utils/api-endpoints.ts
connect to Devnet == Network.DEVNET
connect to local RPC server == Network.LOCAL
  • Loading branch information
Romainua authored Nov 14, 2022
commit a0b4e42e346814d932807207cde657e8ca8ef3f7
8 changes: 4 additions & 4 deletions sdk/typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ The `JsonRpcProvider` class provides a connection to the JSON-RPC Server and sho

```typescript
import { JsonRpcProvider, Network } from '@mysten/sui.js';
// connect to local RPC server
// connect to Devnet
const provider = new JsonRpcProvider(Network.DEVNET);
// get tokens from the local faucet server
// get tokens from the DevNet faucet server
await provider.requestSuiFromFaucet(
'0xbff6ccc8707aa517b4f1b95750a2a8c666012df3'
);
Expand All @@ -86,9 +86,9 @@ For local development, you can run `cargo run --bin sui-test-validator` to spin

```typescript
import { JsonRpcProvider, Network } from '@mysten/sui.js';
// connect to Devnet
// connect to local RPC server
const provider = new JsonRpcProvider(Network.LOCAL);
// get tokens from the DevNet faucet server
// get tokens from the local faucet server
await provider.requestSuiFromFaucet(
'0xbff6ccc8707aa517b4f1b95750a2a8c666012df3'
);
Expand Down