scannerapi

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Endpoint = "https://api.fox.one"
)

Variables

This section is empty.

Functions

func UseEndpoint

func UseEndpoint(endpoint string)

func WithApp

func WithApp(ctx context.Context, app *App) context.Context

Types

type App

type App struct {
	AppID      string
	PrivateKey *rsa.PrivateKey
}

func (App) Auth

func (app App) Auth(r *http.Request) error

type UserBalance

type UserBalance struct {
	UserID  string          `json:"user_id"`
	Balance decimal.Decimal `json:"balance"`
}

func ScanAssetBalances

func ScanAssetBalances(ctx context.Context, assetID string, timestampInNano int64) ([]*UserBalance, error)

Jump to

Keyboard shortcuts

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