Solana's Routine

What would Solana do (Needs reviewing)

Transaction Initiation:

When a user (via their Shaga-Moonlight client) decides to connect to a lender's node (Shaga-Sunshine), they initiate a transaction on the Solana blockchain to transfer the necessary USDC from their wallet to the lender's wallet. This interaction is initiated by the Shaga-Moonlight client and involves creating a transaction that includes the borrower's and lender's public keys and the amount of USDC to be transferred. This transaction request is then broadcast to the Solana network.

Transaction Processing:

Solana receives the broadcast transaction, validates it, and queues it for processing. During validation, Solana checks that the transaction is correctly formed, the borrower's account has sufficient USDC, and the digital signatures are valid. Once validated, the transaction is queued for inclusion in the next available block.

Transaction Completion:

The Solana validators process the transaction, transferring the specified amount of USDC from the borrower's account to the lender's account. Once the transaction is processed, Solana updates the account balances and records the transaction in its ledger.

Transaction Confirmation:

Solana provides a transaction receipt or confirmation back to the Shaga-Moonlight client. This receipt serves as proof that the transaction was successful and is necessary for the Shaga-Moonlight client to establish a connection with the Shaga-Sunshine node.

Payment Verification:

Later, when the Shaga-Sunshine node receives a connection request from the Shaga-Moonlight client, it interacts with Solana to verify the payment. Solana confirms the transaction details, assuring the Shaga-Sunshine node that the payment has been made.

Dispute Resolution:

If a dispute arises about a payment or service, Solana's immutable transaction record can serve as a source of truth. Users can reference transaction records to confirm the details of the disputed transaction.

Last updated