lifi

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LIFI_URL = "https://order.li.fi"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LifiAPI

type LifiAPI struct {
	HTTPClient *http.Client
}

func NewLifiAPI

func NewLifiAPI() *LifiAPI

func (*LifiAPI) GetOrder

func (a *LifiAPI) GetOrder(orderID string) (*lifi.LifiOrder, error)

GetOrder fetches order from the LiFi API by its on-chain orderID

type Response

type Response struct {
	Data []lifi.LifiOrder `json:"data"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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