> ## Documentation Index
> Fetch the complete documentation index at: https://developers.uqpay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Estimate Network Fee

> Get estimated network fee for withdrawal. Network fees are dynamic and adjust based on blockchain network congestion. It is recommended to call this endpoint before user initiates withdrawal to display estimated fees. Actual withdrawal fees may slightly differ from estimates. If network status is MAINTENANCE, withdrawals are temporarily unavailable.
[  *Stablecoin Account API Publisher Disclaimer*](/stablecoin-account/v1.6/guide/stablecoin-account-api-publisher-disclaimer)




## OpenAPI

````yaml /stablecoin-account/v1.6/ramp.yaml get /v1/ramp/config/network-fee
openapi: 3.0.2
info:
  title: Stablecoin Account API
  version: 1.0.4
  description: >
    UQPAY Stablecoin Account API provides comprehensive stablecoin account
    management and payment solutions for fiat-cryptocurrency conversion,
    enabling complete fund flow loop functionality.


    ## Key Features

    - Asset Management: Query and manage wallet balances across multiple
    currencies

    - Fiat Transfer: Transfer funds between Stablecoin Account and Global
    Account systems

    - Currency Exchange: Crypto-Fiat mutual conversion with real-time quotes

    - Cryptocurrency Deposit: Receive crypto deposits with address management

    - Cryptocurrency Withdrawal: Initiate and track crypto withdrawals


    ## Authentication

    Use API keys to authenticate your client requests when utilizing UQPAY APIs.

    API keys are unique data strings used to authenticate users and enable
    access to privileged operations.

    Your API key should be kept confidential and secure at all times.


    ## Getting Started

    1. Obtain API credentials (x-client-id and x-api-key)

    2. Request access token via POST /api/v1/connect/token

    3. Set up test environment using sandbox URL

    4. Implement authentication with x-auth-token header

    5. Start with basic operations


    ## Support

    For technical support and integration assistance, contact UQPAY support
    team.
  contact:
    name: UQPAY Support
    url: https://www.uqpay.com/support
    email: ramp.tech@uqpay.com
  license:
    name: Proprietary
    url: https://www.uqpay.com/legal/api-terms
  termsOfService: https://www.uqpay.com/legal/terms
  x-api-id: ramp-api-v1.0.0
  x-logo:
    url: https://uqpay.com/img/UQPAY_LogoAnimv2.gif
    backgroundColor: '#FFFFFF'
    altText: UQPAY Logo
  x-categories:
    - Stablecoin Account
    - Payment Processing
    - Cryptocurrency
    - Fiat Exchange
servers:
  - url: https://api-sandbox.uqpaytech.com/api
    description: Sandbox base URL.
  - url: https://api.uqpay.com/api
    description: Production base URL.
security: []
tags:
  - name: Assets
    description: >-
      Manage stablecoin wallet accounts and query balances across different
      currencies.
  - name: Transfer (Out/In)
    description: Transfer funds between Stablecoin Account and Global Account systems.
  - name: Conversions
    description: Execute currency conversions between cryptocurrency and fiat currencies.
  - name: Deposits
    description: Manage cryptocurrency deposit addresses and track deposit transactions.
  - name: Withdrawals
    description: Create and manage cryptocurrency withdrawal requests.
  - name: Configuration
    description: Query supported assets, networks, and system configuration.
  - name: Address Book
    description: Manage wallet address book entries for withdrawals.
  - name: Travel Rule
    description: >-
      Reference data (VASPs, countries, regions) used to populate Travel Rule
      beneficiary information for address book entries.
paths:
  /v1/ramp/config/network-fee:
    get:
      tags:
        - Configuration
      summary: Estimate Network Fee
      description: >
        Get estimated network fee for withdrawal. Network fees are dynamic and
        adjust based on blockchain network congestion. It is recommended to call
        this endpoint before user initiates withdrawal to display estimated
        fees. Actual withdrawal fees may slightly differ from estimates. If
        network status is MAINTENANCE, withdrawals are temporarily unavailable.

        [  *Stablecoin Account API Publisher
        Disclaimer*](/stablecoin-account/v1.6/guide/stablecoin-account-api-publisher-disclaimer)
      operationId: estimate-network-fee
      parameters:
        - $ref: '#/components/parameters/XOnBehalfOf'
        - name: asset
          in: query
          required: true
          schema:
            type: string
          description: Asset code (e.g., USDT, USDC)
        - name: network
          in: query
          required: true
          schema:
            type: string
          description: Network code (e.g., ETH, TRX, BSC)
        - name: amount
          in: query
          required: true
          schema:
            type: string
          description: Withdrawal amount (for more accurate fee estimation)
      responses:
        '200':
          headers:
            x-response-id:
              $ref: '#/components/headers/XResponseId'
          description: Successfully retrieved network fee estimate
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NetworkFeeResponse'
                title: NetworkFeeResponse
      security:
        - XAuthToken: []
      externalDocs:
        description: API Publisher Disclaimer – UQPAY Australia
        url: >-
          /stablecoin-account/v1.6/guide/stablecoin-account-api-publisher-disclaimer
components:
  parameters:
    XOnBehalfOf:
      in: header
      name: x-on-behalf-of
      schema:
        type: string
      required: false
      description: >
        Specifies the sub-account on whose behalf the request is made. This
        should be set to the `account_id`, which can be retrieved via the List
        Connected Accounts API. If omitted or empty, the request is executed
        using the master account.

        More information at Connected Accounts.
      example: 18523f72-f4de-4f9c-bb8e-ec7d1c4f32be
  headers:
    XResponseId:
      description: >-
        Universally unique identifier (UUID v4) for the response. Helpful for
        identifying a request when communicating with UQPAY support.
      schema:
        type: string
        format: uuid
        example: 2adba88e-9d63-44bc-b975-9b6ae3440dde
  schemas:
    NetworkFeeResponse:
      type: object
      required:
        - code
        - message
        - data
      properties:
        code:
          type: integer
          example: 200
        message:
          type: string
          example: Success
        data:
          $ref: '#/components/schemas/NetworkFee'
        fee_asset:
          type: string
          description: Fee currency
        estimated_time:
          type: integer
          description: Estimated arrival time in minutes
        network_status:
          type: string
          description: 'Network status: NORMAL, MAINTENANCE'
        update_time:
          type: string
          description: Last update time
    NetworkFee:
      type: object
      required:
        - asset
        - network
        - network_fee
        - processing_fee
        - total_fee
        - fee_asset
        - estimated_time
        - network_status
        - update_time
      properties:
        asset:
          type: string
          description: Asset code
          example: USDT
        network:
          type: string
          description: Network code
          example: ETH
        network_fee:
          type: string
          description: Network fee amount
          example: '5.00'
        processing_fee:
          type: string
          description: Processing fee amount
          example: '0.00'
        total_fee:
          type: string
          description: Total fee amount
          example: '5.00'
        fee_asset:
          type: string
          description: Fee currency
          example: USDT
        estimated_time:
          type: integer
          description: Estimated arrival time in minutes
          example: 15
        network_status:
          type: string
          description: Network status
          enum:
            - NORMAL
            - MAINTENANCE
          example: NORMAL
        update_time:
          type: string
          description: Fee update time
          example: '2024-07-18T14:19:52+08:00'
  securitySchemes:
    XAuthToken:
      type: apiKey
      in: header
      name: x-auth-token
      description: The API token for login provided by UQPay.

````