diff --git a/rpc/endpoints.go b/rpc/endpoints.go new file mode 100644 index 00000000..91f6609d --- /dev/null +++ b/rpc/endpoints.go @@ -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 +) diff --git a/rpc/rpc_endpoints.go b/rpc/rpc_endpoints.go deleted file mode 100644 index 9d65622b..00000000 --- a/rpc/rpc_endpoints.go +++ /dev/null @@ -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" -)