Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
change the rpc url
Browse files Browse the repository at this point in the history
  • Loading branch information
edwin082 committed Sep 27, 2023
1 parent b15aab9 commit aaa0f30
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/consts/urlMap.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const network = {
testnet: {
rpc: 'https://public-node-api.klaytnapi.com/v1/baobab',
rpc: 'https://klaytn-baobab-rpc.allthatnode.com:8551',
scope: 'https://baobab.scope.klaytn.com/tx/',
finder: 'https://baobab.klaytnfinder.io/tx/',
finderToken: 'https://baobab.klaytnfinder.io/token/',
finderNFT: 'https://baobab.klaytnfinder.io/nft/',
},
mainnet: {
rpc: 'https://public-node-api.klaytnapi.com/v1/cypress',
rpc: 'https://klaytn-mainnet-rpc.allthatnode.com:8551',
scope: 'https://scope.klaytn.com/tx/',
finder: 'https://www.klaytnfinder.io/tx/',
finderToken: 'https://www.klaytnfinder.io/token/',
Expand Down
4 changes: 2 additions & 2 deletions src/views/Web3modal/helpers/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ const supportedChains: IChainData[] = [
network: 'cypress',
chain_id: 8217,
network_id: 8217,
rpc_url: 'https://public-node-api.klaytnapi.com/v1/cypress',
rpc_url: 'https://klaytn-mainnet-rpc.allthatnode.com:8551',
native_currency: {
symbol: 'KLAY',
name: 'KLAY',
Expand All @@ -264,7 +264,7 @@ const supportedChains: IChainData[] = [
network: 'baobab',
chain_id: 1001,
network_id: 1001,
rpc_url: 'https://public-node-api.klaytnapi.com/v1/baobab',
rpc_url: 'https://klaytn-baobab-rpc.allthatnode.com:8551',
native_currency: {
symbol: 'KLAY',
name: 'KLAY',
Expand Down
8 changes: 4 additions & 4 deletions src/views/Web3modal/helpers/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export function isObject(obj: any): boolean {
export async function apiGetGasPriceKlaytn(chainId: number): Promise<string> {
const url =
chainId === 8217
? 'https://public-node-api.klaytnapi.com/v1/cypress'
: 'https://public-node-api.klaytnapi.com/v1/baobab'
? 'https://klaytn-mainnet-rpc.allthatnode.com:8551'
: 'https://klaytn-baobab-rpc.allthatnode.com:8551'
const response = await axios.post(url, {
jsonrpc: '2.0',
id: 0,
Expand Down Expand Up @@ -68,8 +68,8 @@ export async function apiGetAccountAssetsKlaytn(
): Promise<IAssetData[]> {
const url =
chainId === 8217
? 'https://public-node-api.klaytnapi.com/v1/cypress'
: 'https://public-node-api.klaytnapi.com/v1/baobab'
? 'https://klaytn-mainnet-rpc.allthatnode.com:8551'
: 'https://klaytn-baobab-rpc.allthatnode.com:8551'
const response = await axios.post(url, {
jsonrpc: '2.0',
id: 0,
Expand Down
2 changes: 1 addition & 1 deletion src/views/Web3modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ const Web3modalExample = (): ReactElement => {
package: KlipWeb3Provider,
options: {
bappName: 'web3Modal Example App',
rpcUrl: 'https://public-node-api.klaytnapi.com/v1/cypress',
rpcUrl: 'https://klaytn-mainnet-rpc.allthatnode.com:8551',
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/Web3modal/web3modalNFT.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ const Web3modalNFT = (): ReactElement => {
package: KlipWeb3Provider,
options: {
bappName: 'web3Modal Example App',
rpcUrl: 'https://public-node-api.klaytnapi.com/v1/cypress',
rpcUrl: 'https://klaytn-mainnet-rpc.allthatnode.com:8551',
},
},
}
Expand Down

0 comments on commit aaa0f30

Please sign in to comment.