Skip to content

Commit

Permalink
updated test network details
Browse files Browse the repository at this point in the history
  • Loading branch information
krofax committed Nov 16, 2022
1 parent 1d064bd commit 91ada8c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/api/sdk/java/interfaces/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ public interface Provider {
HttpTransport transport = null;
switch (chainId) {
case Mainnet: transport = new HttpTransport("https://api.zksync.io/jsrpc"); break;
case Goerli: transport = new HttpTransport("https://zksync2-testnet.zksync.dev"); break;
case Goerli: transport = new HttpTransport("https://goerli-api.zksync.io/jsrpc"); break;
case Localhost: transport = new HttpTransport("http://127.0.0.1:3030"); break;
}
return new DefaultProvider(transport);
Expand Down
2 changes: 1 addition & 1 deletion docs/api/sdk/js/providers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ await syncWSProvider.disconnect();
```typescript
import * as zksync from 'zksync';

const syncHTTPProvider = await zksync.Provider.newHttpProvider('https://zksync2-testnet.zksync.dev');
const syncHTTPProvider = await zksync.Provider.newHttpProvider('https://goerli-api.zksync.io/jsrpc');
```

### Submit transaction
Expand Down
4 changes: 2 additions & 2 deletions docs/api/v0.1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Websocket support will be removed soon due to its instability.

All available API addresses for zkSync:

- `https://zksync2-testnet.zksync.dev` - JSON RPC for zkSync alpha testnet
- `https://goerli-api.zksync.io/jsrpc` - JSON RPC for zkSync alpha testnet
- `https://api.zksync.io/jsrpc` - JSON RPC for Mainnet server

Descriptions for all types presented below could be found on the [types] page.
Expand Down Expand Up @@ -221,7 +221,7 @@ $ curl -X POST -H 'Content-type: application/json' \
"id":1, "method": "get_tx_fee",
"params": ["Transfer", "0xC8568F373484Cd51FDc1FE3675E46D8C0dc7D246", "DAI"]
}' \
https://zksync2-testnet.zksync.dev
https://goerli-api.zksync.io/jsrpc
{
"jsonrpc": "2.0",
"result": {
Expand Down

0 comments on commit 91ada8c

Please sign in to comment.