Versions in this module Expand all Collapse all v1 v1.11.0 Apr 28, 2026 Changes in this version + const DefaultHost + var ErrOrderNotFound = errors.New("coinbase order not found") + type Amount struct + Currency string + Value string + type Authenticator struct + func NewAuthenticator(keyID string, privateKey ed25519.PrivateKey) (*Authenticator, error) + func (a *Authenticator) JWT(method, host, path string) (string, error) + type Client struct + Host string + func NewClient(auth *Authenticator) *Client + func (c *Client) GetOrder(ctx context.Context, orderID string) (*Order, error) + type Fee struct + Amount Amount + Type FeeType + type FeeType string + const FeeTypeExchange + const FeeTypeNetwork + type Order struct + CreatedAt time.Time + DestinationAddress string + DestinationNetwork string + ExchangeRate string + Fees []Fee + OrderID string + PartnerUserRef string + PaymentMethod PaymentMethod + PaymentSubtotal Amount + PaymentTotal Amount + PurchaseAmount Amount + Status OrderStatus + TxHash string + UpdatedAt time.Time + type OrderStatus string + const OrderStatusCompleted + const OrderStatusFailed + const OrderStatusPendingAuth + const OrderStatusPendingPayment + const OrderStatusProcessing + const OrderStatusUnknown + type PaymentMethod string + const PaymentMethodApplePay + const PaymentMethodGooglePay