Wallet & Vault

This section covers the architecture and functionality of the wallet system used in the DropBet platform. It includes support for cryptocurrency deposits and withdrawals, internal balance management (Vault), tipping, and third-party integrations for purchasing crypto.

5.1 Crypto Wallet Overview

The platform supports multi-currency and multi-network crypto wallets.

Supported Coins:

Supported Networks:

Users can:

The wallet is integrated into both the user account UI and the header/balance bar for quick access and visibility.

5.2 Vault (Internal Balance System)

The Vault is a separate balance layer within the user’s account, distinct from their main wallet balance.

Use cases for the Vault:

Features:

5.3 Crypto Purchases via Third-Party Provider

Users can purchase cryptocurrency directly on the platform using traditional payment methods via a third-party fiat on-ramp provider.

Supported payment methods:

The integration:

5.4 Transaction History

The user account page includes a detailed log of all wallet-related actions:

Each transaction log includes:

This history is available in the account dashboard with filtering and export options (to confirm).

5.5 Tips System

Users can tip each other directly from their wallet or Vault balance.

Features:

5.6 Payment Provider Integrations

The platform integrates with multiple external payment providers to support cryptocurrency deposits, withdrawals, and virtual item (skin) deposits. Each provider uses webhook-based confirmation with transaction validation and user balance updates.

CCPayment Integration

Integration Flow

Relevant API Endpoints

Webhook Handling

Core Contract Logic

NOWPayments Integration

Flow mirrors CCPayment:

Supports multiple coins and networks. Separate address management and mapping logic per user.

Developer Reference Table

Function Description
GetSupportTokenGet list of supported tokens (currency metadata)
GetTokenChainEnumerate networks per token (ERC-20, TRC-20, etc.)
CreateOrderGenerate deposit order and payment address
WithdrawRequest cryptocurrency withdrawal via API
GetTokenRateCalculate crypto amount from USD amount
CheckoutUrlOptionally create hosted checkout URL
Webhook CallbacksConfirm payment events and provide structured info

Webhook Security