What is a Transaction?
A Transaction is a record of a completed financial event that has impacted a balance on the Busha platform. Transactions serve as the official ledger of all account activity, providing a historical record of all balance changes, an audit trail for compliance and reconciliation, user-facing statements for account activity, and reporting data for analytics and accounting.Transactions vs. transfers
It’s important to understand the distinction between Transactions and Transfers:| Aspect | Transfer | Transaction |
|---|---|---|
| Purpose | Process of moving assets | Record of balance change |
| Lifecycle | Has multiple statuses (pending, processing, completed) | Always completed |
| Timing | Created when initiated, updated until complete | Created only when finalized |
| Use Case | Track asset movement in progress | View historical account activity |
Core Components of a Transaction
Every Transaction contains these essential pieces of information:Identification
id: Unique identifier for the transactionreference: A tracking referenceuser_id: The user who owns this transactionprofile_id: The profile (business or customer) the transaction belongs to
Amount and value
amount: How much was transactedcurrency: Which currency (BTC, NGN, USDT, etc.)rate: The exchange rate usedis_fiat: Boolean indicating if the currency is fiatis_credit: Boolean indicating if this adds or removes from balance
Balance information
The transaction response includes a complete snapshot of the account balance:total_balance: Total balance after the transactionavailable_balance: Balance available for immediate usepending_balance: Funds pending confirmationhold: Funds temporarily held (e.g., for open orders)savings: Funds in savings/locked accounts
Transaction metadata
Themeta object contains transaction-specific details:
Balance snapshot
Shows balance state after the transaction:Amount breakdown
Detailed breakdown of amounts:Fee details
Fee information:Price information
Transaction pricing:Source/destination details
For deposits and withdrawals:Crypto transaction details
For blockchain transactions:address: Blockchain addressblockchain_url: Link to view transaction on blockchain explorerconfirmations: Number of blockchain confirmations receivedrequired_confirmations: Number of confirmations needed
Conversion details
For buy, sell, and convert transactions:credit: What was added to the balancedebit: What was removed from the balance (e.g., “USDT 10”)rate: The conversion rate used (e.g., “NGN 1474.86”)fiat_value: Fiat equivalent valuefiat_currency: The fiat currency for valuation
Transaction Types
Transactions are categorized by type to make filtering and reporting easier:| Transaction Type | Description |
|---|---|
| Incoming deposits to Busha balances from external sources. | |
| Cryptocurrency purchase transactions where fiat currency was used to acquire crypto. | |
| Cryptocurrency sale transactions where crypto was converted to fiat currency. | |
| Currency conversion transactions within Busha balances (crypto-to-crypto or crypto-to-fiat). | |
| Outgoing withdrawals from Busha balances to external accounts. | |
| Fee transactions for various operations like deposits, withdrawals, conversions, and other services. |