airdropapi

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: 6 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func UseEndpoint

func UseEndpoint(endpoint string)

Types

type Airdrop

type Airdrop struct {
	AssetID   string          `json:"asset_id"`
	Amount    decimal.Decimal `json:"amount"`
	Recipient string          `json:"recipient"`
	TraceID   string          `json:"trace_id"`
}

func PutAirdrop

func PutAirdrop(ctx context.Context, owner, traceID, assetID, memo string, targets []Target) (*Airdrop, error)

type Target

type Target struct {
	WalletID string          `json:"wallet_id,omitempty"`
	Amount   decimal.Decimal `json:"amount,omitempty"`
}

Jump to

Keyboard shortcuts

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