QBitFlow Documentation

    Complete guide to integrating cryptocurrency payments with QBitFlow

    Network Fees & Gasless Transactions

    Understanding who pays network fees for different transaction types and how QBitFlow's gasless transaction model works.

    Gasless Transaction Model

    Seamless User Experience

    When payments are made in tokens, QBitFlow implements a gasless transaction model where users don't pay network fees directly. QBitFlow covers these fees on behalf of users for a seamless experience.

    How It Works

    1

    Users Don't Need Native Currency

    Users don't need to hold the native cryptocurrency of the blockchain (like ETH for Ethereum or SOL for Solana).

    2

    QBitFlow Pays Gas Fees Upfront

    QBitFlow pays gas fees with the native currency and is refunded in tokens as part of the transaction process.

    3

    Fees Paid Only on Success

    Fees are paid by the user only when a transaction is successfully executed. Failed transactions don't cost the user anything.

    Why Some Actions Require Gas

    QBitFlow uses smart contracts, and each important action is performed on-chain. Even if funds aren’t moved (for example, creating a subscription), the action still updates contract state and therefore requires a network fee. Doing these critical updates on-chain ensures security, auditability, and transparency.

    Our smart contracts are optimized to minimize network fees. QBitFlow follows an off-chain-first policy to reduce costs, performing as much computation and validation off-chain as possible. However, actions that impact security or user funds must be finalized on-chain and will require gas.

    Network Fees by Transaction Type

    Here's a comprehensive breakdown of who pays network fees for each transaction type in QBitFlow:

    One-Time Payment

    payment
    ONE_TIME_PAYMENT
    User Pays

    For one-time payments, the user pays the network fees to process the transaction on the blockchain. When paying with tokens, this is handled seamlessly via QBitFlow's gasless model. When paying in the chain's native currency (e.g., ETH, SOL), the user pays gas directly; the gasless model does not apply.

    Create Subscription

    createSubscription
    CREATE_SUBSCRIPTION
    User Pays

    When creating a new subscription, the user pays the network fees required to set up the allowance and initialize the subscription smart contract. Although no funds move at this step, it updates on-chain state for security and transparency.

    Cancel Subscription

    cancelSubscription
    CANCEL_SUBSCRIPTION
    QBitFlow Pays

    When canceling a subscription, QBitFlow covers the network fees. The user doesn't pay anything to cancel. The cancellation is recorded on-chain to ensure transparent and final state updates.

    No network fees for user

    Execute Subscription Payment

    executeSubscription
    EXECUTE_SUBSCRIPTION_PAYMENT
    User Pays

    When a subscription billing cycle is executed, the user pays the network fees. This is part of the automated recurring payment process and is finalized on-chain for accuracy and security.

    Create PAYG Subscription

    createPAYGSubscription
    CREATE_PAYG_SUBSCRIPTION
    User Pays

    Creating a pay-as-you-go subscription requires the user to pay network fees for setting up the smart contract and allowance. This establishes on-chain parameters even before any payment occurs.

    Cancel PAYG Subscription

    cancelPAYGSubscription
    CANCEL_PAYG_SUBSCRIPTION
    QBitFlow Pays

    Canceling a PAYG subscription is free for users. QBitFlow covers all network fees, and the cancellation is recorded on-chain for transparent enforcement.

    No network fees for user

    Increase Allowance

    increaseAllowance
    INCREASE_ALLOWANCE
    User Pays

    When increasing the allowance for a subscription, the user pays the network fees. This updates the smart contract state on-chain and is necessary for secure spending limits.

    Update Max Amount

    updateMaxAmount
    UPDATE_MAX_AMOUNT
    User Pays

    Updating the max amount for a subscription requires the user to pay network fees. This modifies the subscription parameters on-chain to guarantee transparent enforcement.

    Quick Reference Table

    Transaction TypeCodeWho Pays
    One-Time Paymentpayment
    User
    Create SubscriptioncreateSubscription
    User
    Cancel SubscriptioncancelSubscription
    QBitFlow
    Execute SubscriptionexecuteSubscription
    User
    Create PAYG SubscriptioncreatePAYGSubscription
    User
    Cancel PAYG SubscriptioncancelPAYGSubscription
    QBitFlow
    Increase AllowanceincreaseAllowance
    User
    Update Max AmountupdateMaxAmount
    User

    💡 Key Takeaway: Gasless Transactions

    With QBitFlow's gasless transaction model, users can pay with tokens without needing to hold native blockchain currency for gas fees. QBitFlow handles the complexity behind the scenes, making crypto payments as simple as traditional online payments. Users only pay when transactions succeed, and cancellations are always free. Critical actions that affect contract state are recorded on-chain for security and transparency, while non-critical work is optimized off-chain to minimize fees.

    Benefits of the Gasless Model

    Lower Barrier to Entry

    Users don't need technical knowledge about blockchain gas fees or managing multiple cryptocurrencies.

    Simplified User Experience

    One transaction, one currency — users pay in their chosen token without worrying about gas.

    No Failed Transactions Costs

    If a transaction fails, users don't pay anything — they only pay when transactions succeed.

    Free Cancellations

    Users can cancel subscriptions without any cost, removing barriers to trying your service.