Documentation
¶
Index ¶
- func WithDebugBodies(debugReqBody, debugResBody func([]byte)) func(*Client)
- type Client
- func (c Client) Check(ctx context.Context, req types.CheckRequest) (types.CheckResponse, error)
- func (c Client) Price(ctx context.Context, req types.PriceRequest) (types.Price, error)
- func (c Client) Quote(ctx context.Context, req types.QuoteRequest) (types.QuoteResponse, error)
- func (c Client) Relay(ctx context.Context, req types.RelayRequest) (types.RelayResponse, error)
- func (c Client) Tokens(ctx context.Context) (types.TokensResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithDebugBodies ¶ added in v0.15.0
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) Check ¶
func (c Client) Check(ctx context.Context, req types.CheckRequest) (types.CheckResponse, error)
Check calls the check API endpoint returning whether the order will be rejected or not.
func (Client) Quote ¶ added in v0.15.0
func (c Client) Quote(ctx context.Context, req types.QuoteRequest) (types.QuoteResponse, error)
Quote calls the quote API endpoint returning the required deposit or expense amounts.
func (Client) Relay ¶ added in v0.16.0
func (c Client) Relay(ctx context.Context, req types.RelayRequest) (types.RelayResponse, error)
Relay calls the relay API endpoint to submit a gasless order on behalf of a user.
Click to show internal directories.
Click to hide internal directories.