Versions in this module Expand all Collapse all v1 v1.0.0 Jul 23, 2026 Changes in this version + const DefaultBaseURL + const DefaultTimeout + func SendErrorResponse(w http.ResponseWriter, err error) + func SendSuccessResponse(w http.ResponseWriter) + type APIError struct + Code int + ErrMessage string + func (e *APIError) Error() string + type AddressType string + const AddressTypePermanent + const AddressTypeTemporary + type Balance struct + Formatted string + Raw string + type CheckTransactionStatusOptions struct + Address string + ID string + type Client struct + func NewClient(config Config) (*Client, error) + func (c *Client) CheckTransactionStatus(ctx context.Context, transactionType TransactionType, ...) (*TransactionStatusResponse, error) + func (c *Client) CreateDeposit(ctx context.Context, params CreateDepositParams) (*DepositResponse, error) + func (c *Client) CreateWithdrawal(ctx context.Context, params CreateWithdrawalParams) (*WithdrawalResponse, error) + func (c *Client) FetchWalletBalance(ctx context.Context, address string, networkType NetworkType, ...) (*WalletBalanceResponse, error) + func (c *Client) VerifyIPN(ctx context.Context, params VerifyIPNParams) (*VerifyIPNResponse, error) + type Config struct + APIKey string + APISecret string + BaseURL string + HTTPClient *http.Client + Timeout time.Duration + type CreateDepositParams struct + Amount string + ContractAddress string + IPNUrl string + NetworkType NetworkType + TransferBalance *bool + Type AddressType + UDF string + func (p *CreateDepositParams) Validate() error + type CreateWithdrawalParams struct + Address string + Amount string + ContractAddress string + IPNUrl string + NetworkType NetworkType + UDF string + func (p *CreateWithdrawalParams) Validate() error + type DepositResponse struct + Address string + Amount string + ExpiresAt *time.Time + ID string + Status TransactionStatus + type IPNType string + const IPNTypeDeposit + const IPNTypeWithdrawal + type NetworkType string + const NetworkTypeBEP20 + const NetworkTypeERC20 + const NetworkTypePOLYGON + const NetworkTypeSOLANA + const NetworkTypeTRC20 + type Token struct + ContractAddress string + Decimals int + Name string + NetworkType NetworkType + Symbol string + type Transaction struct + Address string + Amount string + Confirmations *int + ContractAddress string + CreatedAt time.Time + Fee *string + ID string + NetworkType NetworkType + ProcessedAt *time.Time + Status TransactionStatus + Token Token + TransactionType TransactionType + TxHash string + UDF string + UpdatedAt time.Time + type TransactionStatus string + const TransactionStatusCancelled + const TransactionStatusCompleted + const TransactionStatusFailed + const TransactionStatusPending + const TransactionStatusProcessing + type TransactionStatusResponse struct + Address string + Count int + TransactionType TransactionType + Transactions []Transaction + type TransactionType string + const TransactionTypeDeposit + const TransactionTypeWithdrawal + type VerifyIPNParams struct + Address string + Amount string + TxnHash string + Type IPNType + func (p *VerifyIPNParams) Validate() error + type VerifyIPNResponse struct + Verified bool + type WalletBalanceResponse struct + Address string + Balance Balance + ContractAddress string + NetworkType NetworkType + Token Token + type WebhookHandler struct + func NewWebhookHandler(ipnSecret string) *WebhookHandler + func (h *WebhookHandler) HandleRequest(r *http.Request) (*WebhookPayload, error) + func (h *WebhookHandler) ProcessWebhook(body []byte, signature string) (*WebhookPayload, error) + func (h *WebhookHandler) VerifySignature(payload []byte, signature string) bool + type WebhookPayload struct + Address string + Amount string + ID string + NetworkType NetworkType + Status TransactionStatus + Timestamp time.Time + TxHash string + Type IPNType + UDF string + type WithdrawalResponse struct + Fee string + ID string + Status TransactionStatus