Skip to content

Commit

Permalink
[ts-sdk] add mainnetConnection to the list of available connections (M…
Browse files Browse the repository at this point in the history
…ystenLabs#11776)

add mainnetConnection.

## Description 

Now sui is on mainet. So we need mainnetConnection item to communicate.
Also the rpc url is the offical one :
https://fullnode.mainnet.sui.io:443/

## Test Plan 

I test the rpc node url in another project. 

https://github.com/v1xingyue/sui-todo/blob/1d7a76f11d3e46af4b7e852cd839274fe21d95f7/src/pages/index.tsx#L13

---------

Co-authored-by: William Robertson <[email protected]>
  • Loading branch information
v1xingyue and williamrobertson13 authored May 8, 2023
1 parent d6ed90e commit 280821e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/silly-crews-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@mysten/sui.js": minor
---

Add "mainnet" connection to the list of available connections
4 changes: 4 additions & 0 deletions sdk/typescript/src/rpc/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ export const testnetConnection = new Connection({
fullnode: 'https://fullnode.testnet.sui.io:443/',
faucet: 'https://faucet.testnet.sui.io/gas',
});

export const mainnetConnection = new Connection({
fullnode: 'https://fullnode.mainnet.sui.io:443/',
});

0 comments on commit 280821e

Please sign in to comment.