staketab

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client interacts with the staketab API

func NewClient

func NewClient(httpClient *http.Client, endpoint string) *Client

NewClient returns a new staketab service client

func NewDefaultClient

func NewDefaultClient(endpoint string) *Client

NewDefaultClient returns a default archive service client

func (Client) GetAllProviders

func (c Client) GetAllProviders() (Providers, error)

GetAllProviders returns all providers

type Providers

type Providers struct {
	ProvidersCount   uint64            `json:"providers_count"`
	StakingProviders []StakingProvider `json:"staking_providers"`
}

type StakingProvider

type StakingProvider struct {
	ProviderId      int     `json:"provider_id"`
	ProviderAddress string  `json:"provider_address"`
	ProviderFee     float64 `json:"provider_fee"`
}

Jump to

Keyboard shortcuts

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