Skip to content

Commit

Permalink
Cleanup rpc endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
gagliardetto committed Jul 25, 2021
1 parent 43ee240 commit df2b78a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
29 changes: 29 additions & 0 deletions rpc/endpoints.go
Original file line number Diff line number Diff line change
@@ -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
)
29 changes: 0 additions & 29 deletions rpc/rpc_endpoints.go

This file was deleted.

0 comments on commit df2b78a

Please sign in to comment.