Use proxy rpcs (#659)
This commit is contained in:
parent
a0db4266ba
commit
bd9c126247
|
@ -2,6 +2,10 @@ import { PythCluster } from '@pythnetwork/client/lib/cluster'
|
||||||
|
|
||||||
const CLUSTER_URLS: Record<PythCluster, any> = {
|
const CLUSTER_URLS: Record<PythCluster, any> = {
|
||||||
'mainnet-beta': [
|
'mainnet-beta': [
|
||||||
|
{
|
||||||
|
rpcUrl: 'http://mainnet.xyz.pyth.network',
|
||||||
|
wsUrl: 'ws://mainnet.xyz.pyth.network',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
rpcUrl:
|
rpcUrl:
|
||||||
'https://pyth-network.rpcpool.com/' +
|
'https://pyth-network.rpcpool.com/' +
|
||||||
|
@ -24,24 +28,40 @@ const CLUSTER_URLS: Record<PythCluster, any> = {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
devnet: [
|
devnet: [
|
||||||
|
{
|
||||||
|
rpcUrl: 'http://devnet.xyz.pyth.network',
|
||||||
|
wsUrl: 'ws://devnet.xyz.pyth.network',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
rpcUrl: 'https://api.devnet.solana.com/',
|
rpcUrl: 'https://api.devnet.solana.com/',
|
||||||
wsUrl: 'wss://api.devnet.solana.com/',
|
wsUrl: 'wss://api.devnet.solana.com/',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
testnet: [
|
testnet: [
|
||||||
|
{
|
||||||
|
rpcUrl: 'http://testnet.xyz.pyth.network',
|
||||||
|
wsUrl: 'ws://testnet.xyz.pyth.network',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
rpcUrl: 'https://api.testnet.solana.com/',
|
rpcUrl: 'https://api.testnet.solana.com/',
|
||||||
wsUrl: 'wss://api.testnet.solana.com/',
|
wsUrl: 'wss://api.testnet.solana.com/',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
pythtest: [
|
pythtest: [
|
||||||
|
{
|
||||||
|
rpcUrl: 'http://pythtest.xyz.pyth.network',
|
||||||
|
wsUrl: 'ws://pythtest.xyz.pyth.network',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
rpcUrl: 'https://api.pythtest.pyth.network/',
|
rpcUrl: 'https://api.pythtest.pyth.network/',
|
||||||
wsUrl: 'wss://api.pythtest.pyth.network/',
|
wsUrl: 'wss://api.pythtest.pyth.network/',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
pythnet: [
|
pythnet: [
|
||||||
|
{
|
||||||
|
rpcUrl: 'http://pythnet.xyz.pyth.network',
|
||||||
|
wsUrl: 'ws://pythnet.xyz.pyth.network',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
rpcUrl: 'https://pythnet.rpcpool.com/',
|
rpcUrl: 'https://pythnet.rpcpool.com/',
|
||||||
wsUrl: 'wss://pythnet.rpcpool.com/',
|
wsUrl: 'wss://pythnet.rpcpool.com/',
|
||||||
|
|
Loading…
Reference in New Issue