Workspaces

Workspaces provide a centralized view of your blockchain operations, including wallet statistics, transaction volumes, network fees, and smart contract activity.


GET/workspaces/{workspace_id}/stats

Get workspace statistics

Retrieve comprehensive statistics and analytics for a specific workspace, including transaction volumes, network fees, wallet counts, and smart contract activity.

Path parameters

  • Name
    workspace_id
    Type
    string
    Description

    The UUID of the workspace to retrieve statistics for.

Response

  • Name
    success
    Type
    boolean
    Description

    Indicates whether the request was successful.

  • Name
    message
    Type
    string
    Description

    A message describing the result of the operation.

  • Name
    code
    Type
    integer
    Description

    A numeric code indicating the result status (0 for success).

  • Name
    data
    Type
    object
    Description

    Contains the workspace statistics.

  • Name
    total_value
    Type
    string
    Description

    Total value of all assets in the workspace (in USD).

  • Name
    total_wallets
    Type
    integer
    Description

    Total number of wallets in this workspace.

  • Name
    total_smart_contracts
    Type
    integer
    Description

    Total number of smart contracts deployed in this workspace.

  • Name
    total_pending_transactions
    Type
    integer
    Description

    Number of transactions currently pending.

  • Name
    daily_volume_stats
    Type
    array
    Description

    Array of daily transaction volume statistics for the past 8 days.

  • Name
    id
    Type
    object
    Description

    Date identifier for the daily stats.

  • Name
    day
    Type
    integer
    Description

    Day of the month.

  • Name
    month
    Type
    integer
    Description

    Month number (1-12).

  • Name
    total
    Type
    string
    Description

    Total transaction volume for the day (in USD).

  • Name
    total_inflow_usd
    Type
    string
    Description

    Total incoming transaction volume (in USD).

  • Name
    total_outflow_usd
    Type
    string
    Description

    Total outgoing transaction volume (in USD).

  • Name
    monthly_stats
    Type
    array
    Description

    Array of monthly transaction statistics.

  • Name
    id
    Type
    object
    Description

    Date identifier for the monthly stats.

  • Name
    month
    Type
    integer
    Description

    Month number (1-12).

  • Name
    year
    Type
    integer
    Description

    Year.

  • Name
    total_transaction
    Type
    integer
    Description

    Total number of transactions in the month.

  • Name
    total_volume
    Type
    string
    Description

    Total transaction volume for the month (in USD).

  • Name
    monthly_total_fee_spent_per_network
    Type
    array
    Description

    Array of network fees spent per month, broken down by blockchain network.

  • Name
    id
    Type
    object
    Description

    Identifier for the fee record.

  • Name
    month
    Type
    integer
    Description

    Month number (1-12).

  • Name
    network_id
    Type
    string
    Description

    UUID of the blockchain network.

  • Name
    year
    Type
    integer
    Description

    Year.

  • Name
    total_fee_spent
    Type
    string
    Description

    Total fees spent in the network's native currency.

  • Name
    value
    Type
    string
    Description

    Total fees spent in USD.

  • Name
    network
    Type
    object
    Description

    Network details.

  • Name
    name
    Type
    string
    Description

    Name of the blockchain network (e.g., "Ethereum", "Solana mainnet", "Base").

  • Name
    native_currency
    Type
    string
    Description

    Native currency symbol for the network (e.g., "ETH", "SOL").

Daily volume stats show the last 8 days of transaction activity, while monthly stats provide a historical view of transaction volumes and counts by month.

Request

curl -X GET https://api.fystack.io/api/v1/workspaces/ffb8c9d1-0bd2-4c30-bf4f-2a8fe7710d51/stats \
  -H "ACCESS-API-KEY: your_api_key" \
  -H "ACCESS-TIMESTAMP: 1667836889" \
  -H "ACCESS-SIGN: YourBase64EncodedSignature=="

Response

{
  "success": true,
  "message": "success",
  "code": 0,
  "data": {
    "total_value": "1534.84534320254792485502487275776",
    "total_wallets": 39,
    "total_smart_contracts": 0,
    "total_pending_transactions": 0,
    "daily_volume_stats": [
      {
        "id": {
          "day": 16,
          "month": 11
        },
        "total": "0",
        "total_inflow_usd": "0",
        "total_outflow_usd": "0"
      },
      {
        "id": {
          "day": 15,
          "month": 11
        },
        "total": "0",
        "total_inflow_usd": "0",
        "total_outflow_usd": "0"
      },
      {
        "id": {
          "day": 14,
          "month": 11
        },
        "total": "0",
        "total_inflow_usd": "0",
        "total_outflow_usd": "0"
      },
      {
        "id": {
          "day": 13,
          "month": 11
        },
        "total": "0",
        "total_inflow_usd": "0",
        "total_outflow_usd": "0"
      },
      {
        "id": {
          "day": 12,
          "month": 11
        },
        "total": "0",
        "total_inflow_usd": "0",
        "total_outflow_usd": "0"
      },
      {
        "id": {
          "day": 11,
          "month": 11
        },
        "total": "0",
        "total_inflow_usd": "0",
        "total_outflow_usd": "0"
      },
      {
        "id": {
          "day": 10,
          "month": 11
        },
        "total": "0",
        "total_inflow_usd": "0",
        "total_outflow_usd": "0"
      },
      {
        "id": {
          "day": 9,
          "month": 11
        },
        "total": "0",
        "total_inflow_usd": "0",
        "total_outflow_usd": "0"
      }
    ],
    "monthly_stats": [
      {
        "id": {
          "month": 2,
          "year": 2025
        },
        "total_transaction": 1,
        "total_volume": "3.0232548466894343"
      },
      {
        "id": {
          "month": 3,
          "year": 2025
        },
        "total_transaction": 0,
        "total_volume": "0"
      },
      {
        "id": {
          "month": 4,
          "year": 2025
        },
        "total_transaction": 2,
        "total_volume": "5.38689432482736497038665"
      },
      {
        "id": {
          "month": 5,
          "year": 2025
        },
        "total_transaction": 2,
        "total_volume": "3.4820715177482234"
      },
      {
        "id": {
          "month": 6,
          "year": 2025
        },
        "total_transaction": 3,
        "total_volume": "6016.123408531333541256"
      },
      {
        "id": {
          "month": 7,
          "year": 2025
        },
        "total_transaction": 24,
        "total_volume": "716.62394897558719889991228"
      },
      {
        "id": {
          "month": 8,
          "year": 2025
        },
        "total_transaction": 0,
        "total_volume": "0"
      },
      {
        "id": {
          "month": 9,
          "year": 2025
        },
        "total_transaction": 19,
        "total_volume": "61.99795033878070467252234"
      },
      {
        "id": {
          "month": 10,
          "year": 2025
        },
        "total_transaction": 2,
        "total_volume": "10.997992387864311"
      },
      {
        "id": {
          "month": 11,
          "year": 2025
        },
        "total_transaction": 0,
        "total_volume": "0"
      }
    ],
    "monthly_total_fee_spent_per_network": [
      {
        "id": {
          "month": 7,
          "network_id": "ab3553b6-1472-4ee2-bbb7-7a3df71db90d",
          "year": 2025
        },
        "total_fee_spent": "0.000000408265132",
        "value": "0.0012847633534240739867953232",
        "network": {
          "name": "Base",
          "native_currency": "ETH"
        }
      },
      {
        "id": {
          "month": 7,
          "network_id": "8ae1f43f-d428-484d-8ad4-ee9ccc65a9ac",
          "year": 2025
        },
        "total_fee_spent": "0.00004",
        "value": "0.0055775034112016304",
        "network": {
          "name": "Solana mainnet",
          "native_currency": "SOL"
        }
      },
      {
        "id": {
          "month": 6,
          "network_id": "8ae1f43f-d428-484d-8ad4-ee9ccc65a9ac",
          "year": 2025
        },
        "total_fee_spent": "0.000005",
        "value": "0.0006971879264002038",
        "network": {
          "name": "Solana mainnet",
          "native_currency": "SOL"
        }
      },
      {
        "id": {
          "month": 4,
          "network_id": "8ae1f43f-d428-484d-8ad4-ee9ccc65a9ac",
          "year": 2025
        },
        "total_fee_spent": "0.00001",
        "value": "0.0013943758528004076",
        "network": {
          "name": "Solana mainnet",
          "native_currency": "SOL"
        }
      },
      {
        "id": {
          "month": 6,
          "network_id": "dd21bfb5-f809-4070-a789-18ec8abbee1b",
          "year": 2025
        },
        "total_fee_spent": "0.0001131949830806",
        "value": "0.35621157589674587496249666856",
        "network": {
          "name": "Ethereum",
          "native_currency": "ETH"
        }
      },
      {
        "id": {
          "month": 2,
          "network_id": "dd21bfb5-f809-4070-a789-18ec8abbee1b",
          "year": 2025
        },
        "total_fee_spent": "0.0000294725852381",
        "value": "0.09274683159711570977946276556",
        "network": {
          "name": "Ethereum",
          "native_currency": "ETH"
        }
      },
      {
        "id": {
          "month": 9,
          "network_id": "8ae1f43f-d428-484d-8ad4-ee9ccc65a9ac",
          "year": 2025
        },
        "total_fee_spent": "0.00001",
        "value": "0.0013943758528004076",
        "network": {
          "name": "Solana mainnet",
          "native_currency": "SOL"
        }
      },
      {
        "id": {
          "month": 5,
          "network_id": "8ae1f43f-d428-484d-8ad4-ee9ccc65a9ac",
          "year": 2025
        },
        "total_fee_spent": "0.00001",
        "value": "0.0013943758528004076",
        "network": {
          "name": "Solana mainnet",
          "native_currency": "SOL"
        }
      },
      {
        "id": {
          "month": 6,
          "network_id": "ab3553b6-1472-4ee2-bbb7-7a3df71db90d",
          "year": 2025
        },
        "total_fee_spent": "0.000000012727953",
        "value": "0.0000400534023035403443967228",
        "network": {
          "name": "Base",
          "native_currency": "ETH"
        }
      }
    ]
  }
}