Peer-to-Peer Transactions
Overview
Nyla has a peer-to-peer transaction feature that allows users to send SPL tokens of any type to any user on X. If the user that you are sending tokens to does not have a wallet, Nyla will create a wallet for them, so that they can access it at a later time. These funds will be held in the destination wallet for 7 days before being returned to the sender in the case no wallet is created.
How it Works
Command Parsing: The system parses the transfer command from social media mentions
User Verification: The system verifies the user has a wallet configured
Size Determination: The trade amount is determined based on the specified size
Token Transfer: The system executes the transfer with Helius
Transaction Verification: The transaction is verified on the blockchain
Record Creation: A record of the trade is created in the database
Response Generation: The user receives a confirmation with transaction details
Transfer Parameters
Amount: Amount of the SPL token to transfer
Contact Address: Contract address of the token you want to transfer
Recipient: Username of the desired recipient of your transaction
Error Handling
The transfer system includes robust error handling:
Insufficient Funds: Detection and notification of insufficient funds
Rate Limiting: Protection against excessive transfer operations
API Failures: Graceful handling of external API failures
Transaction Failures: Detection and reporting of failed transactions
Retry Mechanisms: Exponential backoff for retrying failed operations
Transaction Monitoring
All transactions are monitored for:
Confirmation status
Execution time
Success/failure
Error conditions
Fee consumption
Last updated