Cleanup rpc endpoints
This commit is contained in:
parent
43ee240b17
commit
df2b78acca
|
@ -0,0 +1,29 @@
|
|||
package rpc
|
||||
|
||||
// See more: https://docs.solana.com/cluster/rpc-endpoints
|
||||
|
||||
const (
|
||||
protocolHTTPS = "https://"
|
||||
protocolWSS = "wss://"
|
||||
)
|
||||
|
||||
const (
|
||||
hostDevNet = "api.devnet.solana.com"
|
||||
hostTestNet = "api.testnet.solana.com"
|
||||
hostMainNetBeta = "api.mainnet-beta.solana.com"
|
||||
hostMainNetBetaSerum = "solana-api.projectserum.com"
|
||||
)
|
||||
|
||||
const (
|
||||
EndpointRPCDevNet = protocolHTTPS + hostDevNet
|
||||
EndpointRPCTestNet = protocolHTTPS + hostTestNet
|
||||
EndpointRPCMainNetBeta = protocolHTTPS + hostMainNetBeta
|
||||
EndpointRPCMainNetBetaSerum = protocolHTTPS + hostMainNetBetaSerum
|
||||
)
|
||||
|
||||
const (
|
||||
EndpointWSDevNet = protocolWSS + hostDevNet
|
||||
EndpointWSTestNet = protocolWSS + hostTestNet
|
||||
EndpointWSMainNetBeta = protocolWSS + hostMainNetBeta
|
||||
EndpointWSMainNetBetaSerum = protocolWSS + hostMainNetBetaSerum
|
||||
)
|
|
@ -1,29 +0,0 @@
|
|||
package rpc
|
||||
|
||||
// See more: https://docs.solana.com/cluster/rpc-endpoints
|
||||
|
||||
const (
|
||||
protocolHTTPS = "https://"
|
||||
protocolWSS = "wss://"
|
||||
)
|
||||
|
||||
const (
|
||||
hostDevNet = "api.devnet.solana.com"
|
||||
hostTestNet = "api.testnet.solana.com"
|
||||
hostMainNetBeta = "api.mainnet-beta.solana.com"
|
||||
hostMainNetBetaSerum = "solana-api.projectserum.com"
|
||||
)
|
||||
|
||||
const (
|
||||
EndpointRPCDevNet = protocolHTTPS + "api.devnet.solana.com"
|
||||
EndpointRPCTestNet = protocolHTTPS + "api.testnet.solana.com"
|
||||
EndpointRPCMainNetBeta = protocolHTTPS + "api.mainnet-beta.solana.com"
|
||||
EndpointRPCMainNetBetaSerum = protocolHTTPS + "solana-api.projectserum.com"
|
||||
)
|
||||
|
||||
const (
|
||||
EndpointWSDevNet = protocolWSS + "api.devnet.solana.com"
|
||||
EndpointWSTestNet = protocolWSS + "api.testnet.solana.com"
|
||||
EndpointWSMainNetBeta = protocolWSS + "api.mainnet-beta.solana.com"
|
||||
EndpointWSMainNetBetaSerum = protocolWSS + "solana-api.projectserum.com"
|
||||
)
|
Loading…
Reference in New Issue