Switch testnet url
This commit is contained in:
@ -25,7 +25,7 @@
|
||||
// Fetch account balance
|
||||
let url;
|
||||
url = 'http://localhost:8899';
|
||||
//url = 'http://master.testnet.solana.com:8899';
|
||||
//url = 'http://testnet.solana.com:8899';
|
||||
const connection = new solanaWeb3.Connection(url);
|
||||
|
||||
connection.getBalance(account.publicKey)
|
||||
|
@ -10,7 +10,7 @@ const account = new solanaWeb3.Account();
|
||||
|
||||
let url;
|
||||
url = 'http://localhost:8899';
|
||||
//url = 'http://master.testnet.solana.com:8899';
|
||||
//url = 'http://testnet.solana.com:8899';
|
||||
const connection = new solanaWeb3.Connection(url);
|
||||
|
||||
connection.getBalance(account.publicKey)
|
||||
|
@ -4,7 +4,7 @@ import {Connection} from '../src/connection';
|
||||
import {Account} from '../src/account';
|
||||
import {mockRpc} from './__mocks__/node-fetch';
|
||||
|
||||
const url = 'http://master.testnet.solana.com:8899';
|
||||
const url = 'http://testnet.solana.com:8899';
|
||||
//const url = 'http://localhost:8899';
|
||||
|
||||
const errorMessage = 'Invalid request';
|
||||
|
Reference in New Issue
Block a user