Documentation
¶
Index ¶
- Constants
- func GetChainRest(chainId, chainRest string) string
- func GetFinalizedBundle(restEndpoint string, poolId int64, bundleId int64) (*types.FinalizedBundle, error)
- func GetFromUrl(url string) ([]byte, error)
- func GetFromUrlWithBackoff(url string) (data []byte, err error)
- func TrustlessClientLogger(moduleName string) zerolog.Logger
Constants ¶
View Source
const ( ChainIdMainnet = "kyve-1" ChainIdKaon = "kaon-1" ChainIdKorellia = "korellia-2" RestEndpointMainnet = "https://api.kyve.network" RestEndpointKaon = "https://api.kaon.kyve.network" RestEndpointKorellia = "https://api.korellia.kyve.network" )
View Source
const (
BackoffMaxRetries = 10
)
Variables ¶
This section is empty.
Functions ¶
func GetChainRest ¶
func GetFinalizedBundle ¶
func GetFromUrl ¶
GetFromUrl tries to fetch data from url with a custom User-Agent header
func GetFromUrlWithBackoff ¶
GetFromUrlWithBackoff tries to fetch data from url with exponential backoff
func TrustlessClientLogger ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.