Transaction Lifecycle
A detailed explanation of the step-by-step process behind Swapper Finance transactions from initiation to completion.

Swapper Finance is designed to provide a seamless and secure experience for acquiring cryptocurrency. Central to our platform are user-controlled Smart Wallets, established through embedded wallet technology. This innovative approach ensures that only you, the user, have access to your funds and private keys, placing you firmly in control of your digital assets.
Our platform utilizes USDC as "on-platform cash" within your Smart Wallet, simplifying access to token purchases on Decentralized Exchanges (DEXs). Swapper Finance offers two primary pathways for transactions, providing flexibility to suit different scenarios and user needs.
Here’s a detailed breakdown of how transactions are handled:
Fast-Track Transactions
1. User Interaction:
The user initiates a transaction via the Swapper Finance widget, providing details such as the purchase amount in USD, blockchain, and token.
2. Native Token Quote:
The widget sends a quote request to Shift4, which estimates the amount of native cryptocurrency (e.g., Ethereum) that can be purchased.
3. Backend Processing:
The Swapper Finance backend calculates the swap path to convert the native cryptocurrency into the user’s chosen token. This path is stored as a cryptographic hash for secure retrieval.
4. Fiat Payment Processing:
The widget sends a payment request to Shift4, which handles the payment card transaction.
5. Blockchain Transactions:
Step 1: Shift4 transfers the native cryptocurrency to the Swapper Finance smart contract, creating an order and storing the required metadata.
Step 2: Chainlink function retrieves and validates the swap path during execution, ensuring transaction integrity by comparing cryptographic hashes. The Swapper Finance smart contract executes the token swap using the validated path, depositing the purchased tokens into the user’s wallet.
This lifecycle ensures that every transaction is seamless, secure, and verifiable at every step.
Standard DEX Transactions (via Smart Wallet Top-Up)
For broader access to tokens available on DEXs, or when users prefer to first fund their wallet, Swapper Finance offers a two-step process involving a Smart Wallet top-up with USDC:
Smart Wallet Top-Up (Acquiring "On-Platform Cash"):
The user initiates a deposit to their Swapper Finance Smart Wallet using a payment card through our interface.
Shift4 processes the fiat payment.
The USDC is then credited to the user's personal Smart Wallet. This USDC acts as "on-platform cash," ready for use.
DEX Token Purchase with USDC:
With USDC available in their Smart Wallet, the user can browse and initiate token purchases directly on supported Decentralized Exchanges via the Swapper Finance platform.
The transaction is executed on the chosen DEXs, swapping the USDC from the user's Smart Wallet for their desired token.
The acquired tokens are then sent directly to the user's Smart Wallet.
This dual-pathway transaction lifecycle, built around user-controlled Smart Wallets and the utility of USDC, ensures that Swapper Finance provides a versatile, secure, and verifiable method for your cryptocurrency purchases. We empower users with robust security and direct control over their digital asset acquisition journey.
Last updated