diff --git a/web3.js/examples/budget-timestamp.js b/web3.js/examples/budget-timestamp.js index 6fd08d4f5e..8d1fa8c802 100644 --- a/web3.js/examples/budget-timestamp.js +++ b/web3.js/examples/budget-timestamp.js @@ -13,8 +13,6 @@ const contractState = new solanaWeb3.Account(); let url; url = 'http://localhost:8899'; -//url = 'https://api.testnet.solana.com/master'; -//url = 'https://api.testnet.solana.com'; const connection = new solanaWeb3.Connection(url); function showBalance() { diff --git a/web3.js/examples/get-balance.html b/web3.js/examples/get-balance.html index d5596bb1ce..9e64915506 100644 --- a/web3.js/examples/get-balance.html +++ b/web3.js/examples/get-balance.html @@ -24,7 +24,6 @@ // Fetch account balance let url = 'http://localhost:8899'; - //url = 'https://api.testnet.solana.com'; const connection = new solanaWeb3.Connection(url); connection.getBalance(account.publicKey) diff --git a/web3.js/examples/get-balance.js b/web3.js/examples/get-balance.js index 0290564987..68c1075ee2 100644 --- a/web3.js/examples/get-balance.js +++ b/web3.js/examples/get-balance.js @@ -9,7 +9,7 @@ const solanaWeb3 = require('..'); const account = new solanaWeb3.Account(); let url; -url = 'https://api.testnet.solana.com'; +url = 'https://testnet.solana.com:8443'; //url = 'http://localhost:8899'; const connection = new solanaWeb3.Connection(url); diff --git a/web3.js/src/util/testnet.js b/web3.js/src/util/testnet.js index f10c7ba991..ce1947e570 100644 --- a/web3.js/src/util/testnet.js +++ b/web3.js/src/util/testnet.js @@ -6,9 +6,9 @@ import {testnetDefaultChannel} from '../../package.json'; * @private */ const endpoint = { - edge: 'https://api.edge.testnet.solana.com', - beta: 'https://api.beta.testnet.solana.com', - stable: 'https://api.testnet.solana.com', + edge: 'https://edge.testnet.solana.com:8443', + beta: 'https://beta.testnet.solana.com:8443', + stable: 'https://testnet.solana.com:8443', }; /** diff --git a/web3.js/test/testnet.test.js b/web3.js/test/testnet.test.js index 4a7dc9c309..4f590d9601 100644 --- a/web3.js/test/testnet.test.js +++ b/web3.js/test/testnet.test.js @@ -9,7 +9,7 @@ test('invalid', () => { test('edge', () => { expect(testnetChannelEndpoint('edge')).toEqual( - 'https://api.edge.testnet.solana.com', + 'https://edge.testnet.solana.com:8443', ); }); diff --git a/web3.js/test/url.js b/web3.js/test/url.js index ed13d4cadd..3cb6b087f9 100644 --- a/web3.js/test/url.js +++ b/web3.js/test/url.js @@ -6,12 +6,13 @@ export const url = 'http://localhost:8899/'; +/* +export const url = 'https://edge.testnet.solana.com:8443/'; +export const url = 'https://beta.testnet.solana.com:8443/'; +export const url = 'https://testnet.solana.com:8443/'; +*/ /* export const url = 'http://edge.testnet.solana.com:8899/'; export const url = 'http://beta.testnet.solana.com:8899/'; export const url = 'http://testnet.solana.com:8899/'; - -export const url = 'https://api.edge.testnet.solana.com/'; -export const url = 'https://api.beta.testnet.solana.com/'; -export const url = 'https://api.testnet.solana.com/'; */