Aleo's blockchain uses a concept called "records" to store your private credits. You can think of records as individual boxes or containers, each holding a specific amount of credits. When you send credits to someone, Leo Wallet automatically manages these records to ensure a smooth user experience.
If the amount you want to send exceeds the number of credits in a single record, Leo Wallet will use multiple records to complete the transaction. Additionally, a small transaction fee is required for each transaction, which is also paid using available records.
For example, let's say you have three records in your wallet:
- Record A: 10 credits
- Record B: 5 credits
- Record C: 2 credits
If you want to send 12 credits to someone, Leo Wallet will use Record A (10 credits) and Record B (5 credits) to cover the amount. It will then use Record C (2 credits) to pay the transaction fee. Any leftover change from the fee payment will be returned to your wallet in a new record.
This process happens automatically in the background, so you don't need to worry about selecting the right records or managing them manually. You can send any arbitrary amount, and Leo Wallet will handle the necessary record combinations to complete the transaction.
As a result, when you check your transaction history, you might see multiple transactions even though you only initiated one transfer. This is because Leo Wallet is using multiple records behind the scenes to ensure your transaction is processed smoothly and securely.