explorer

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Explorer

type Explorer struct {
	// contains filtered or unexported fields
}

An Explorer retrieves data about the Sia network from an external source.

func New

func New(url string) *Explorer

New returns a new Explorer client.

func (*Explorer) BaseURL added in v1.1.0

func (e *Explorer) BaseURL() string

BaseURL returns the base URL of the Explorer.

func (*Explorer) SiacoinExchangeRate

func (e *Explorer) SiacoinExchangeRate(ctx context.Context, currency string) (rate float64, err error)

SiacoinExchangeRate returns the exchange rate for the given currency.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL