client

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithDebugBodies added in v0.15.0

func WithDebugBodies(debugReqBody, debugResBody func([]byte)) func(*Client)

Types

type Client

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

func New

func New(host string, opts ...func(*Client)) Client

New creates a new solver Client.

func (Client) Check

Check calls the check API endpoint returning whether the order will be rejected or not.

func (Client) Price added in v0.15.0

func (c Client) Price(ctx context.Context, req types.PriceRequest) (types.Price, error)

func (Client) Quote added in v0.15.0

Quote calls the quote API endpoint returning the required deposit or expense amounts.

func (Client) Relay added in v0.16.0

Relay calls the relay API endpoint to submit a gasless order on behalf of a user.

func (Client) Tokens added in v0.16.0

func (c Client) Tokens(ctx context.Context) (types.TokensResponse, error)

Tokens calls the tokens API endpoint to retrieve the list of supported tokens.

Jump to

Keyboard shortcuts

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