{
  "format": "dataset-manifest/1",
  "slug": "cryptocurrency-transaction-insights",
  "version": 1,
  "seed": "cryptocurrency-transaction-insights:1",
  "spec": {
    "format": "dataset/1",
    "slug": "cryptocurrency-transaction-insights",
    "name": "Cryptocurrency Transaction Insights",
    "tagline": "User profiles, wallet balances, transaction records, and device data for cryptocurrency activities.",
    "description": "Users actively participate in acquiring, storing, and transferring Bitcoin, making the tracking of their transactions and wallet management essential for the business. Each user has a unique profile that includes information such as their account details and the devices they utilize for transactions. Wallets act as secure repositories for the cryptocurrencies, with each wallet linked to specific user accounts. Transactions record the movement of Bitcoin between wallets, detailing inputs and outputs, while addresses provide unique identifiers for where the Bitcoin is sent or received. Devices enhance security, ensuring that transactions are executed with protective measures in place.\n\nIn this structure, each user is connected to one or more wallets, which in turn are associated with numerous transactions. A single transaction can involve multiple addresses, indicating where funds are being sent from and to. Additionally, devices can be linked to specific users or transactions, showcasing the technology used during financial operations. This multilayered relational setup allows for comprehensive analyses of user behaviors, wallet usage patterns, and transaction trends.\n\nThe data answers critical questions about user engagement, wallet performance, and transaction flows. Practicing with this dataset equips developers to explore user activity trends, analyze transaction volumes during different market conditions, and investigate wallet security measures. It's particularly useful for understanding the dynamics of digital finance, as well as the common behaviors of users with different types of wallets and devices. While the dataset provides realistic scenarios for analysis, it is important to note that the data is synthetic, designed to aid in learning without reflecting actual user activity.",
    "domain": "fintech",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "cryptocurrency",
      "bitcoin",
      "transactions",
      "wallets",
      "users",
      "addresses",
      "devices",
      "financial data"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "users": {
        "description": "Each row represents a user engaged in Bitcoin transactions, linking to their wallets and devices.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each user."
          },
          "username": {
            "kind": "words",
            "min": 3,
            "max": 15,
            "description": "The user's chosen username.",
            "nullable": true
          },
          "email": {
            "kind": "email",
            "description": "The user's email address.",
            "nullable": true
          },
          "created_at": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "The date when the user registered.",
            "trend": "growing"
          }
        }
      },
      "wallets": {
        "description": "Each row represents a wallet owned by a user, tracking the Bitcoin balance and transaction history.",
        "rows": {
          "per": "users",
          "via": "user_id",
          "min": 1,
          "max": 3,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each wallet."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Reference to the owner of the wallet."
          },
          "balance": {
            "kind": "decimal",
            "min": 0,
            "max": 1000,
            "scale": 6,
            "description": "The current Bitcoin balance in the wallet.",
            "nullable": true
          },
          "created_at": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "The date when the wallet was created.",
            "trend": "growing"
          }
        }
      },
      "transactions": {
        "description": "This table captures the movement of Bitcoin between wallets, detailing amounts and timestamps.",
        "rows": {
          "per": "wallets",
          "via": "wallet_id",
          "min": 1,
          "max": 5,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each transaction."
          },
          "wallet_id": {
            "kind": "fk",
            "ref": "wallets.id",
            "description": "Reference to the wallet initiating the transaction."
          },
          "amount": {
            "kind": "decimal",
            "min": 0.01,
            "max": 10,
            "scale": 6,
            "description": "The amount of Bitcoin transferred in the transaction.",
            "nullable": true
          },
          "timestamp": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "The date and time when the transaction occurred.",
            "dayProfile": "waking"
          }
        }
      },
      "addresses": {
        "description": "Each row represents a unique Bitcoin address, linking to the wallets it belongs to.",
        "rows": {
          "per": "wallets",
          "via": "wallet_id",
          "min": 1,
          "max": 3,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each address."
          },
          "wallet_id": {
            "kind": "fk",
            "ref": "wallets.id",
            "description": "Reference to the wallet associated with the address."
          },
          "address": {
            "kind": "slug",
            "from": "id",
            "description": "The Bitcoin address associated with the wallet.",
            "nullable": true
          }
        }
      },
      "devices": {
        "description": "This table logs the devices used by users to access their wallets, tracking last access times.",
        "rows": {
          "per": "users",
          "via": "user_id",
          "min": 1,
          "max": 3,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each device."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "Reference to the user associated with the device."
          },
          "device_type": {
            "kind": "enum",
            "values": [
              "mobile",
              "desktop",
              "tablet"
            ],
            "description": "Type of device used to access the wallet."
          },
          "last_accessed": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2024-12-31",
            "description": "The last date and time the device was used to access the wallet.",
            "nullable": true,
            "when": {
              "column": "device_type",
              "in": [
                "mobile",
                "desktop",
                "tablet"
              ]
            }
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "timestamped",
      "monetary",
      "categorical"
    ],
    "analysisQuestions": [
      "What are the most common transaction amounts over the last year?",
      "How does wallet balance vary across different user demographics?",
      "Which devices are most frequently used for Bitcoin transactions?",
      "What time of day sees the highest transaction volume?",
      "Are there patterns in wallet creation based on user activity?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Users and Wallets",
        "sql": "SELECT users.username, wallets.balance FROM users JOIN wallets ON users.id = wallets.user_id;",
        "dialect": "postgres"
      },
      {
        "title": "Aggregate Transaction Amounts",
        "sql": "SELECT wallet_id, SUM(amount) AS total_transacted FROM transactions GROUP BY wallet_id;",
        "dialect": "postgres"
      },
      {
        "title": "Daily Transactions Count",
        "sql": "SELECT DATE(timestamp) AS transaction_date, COUNT(*) AS transaction_count FROM transactions GROUP BY transaction_date;",
        "dialect": "postgres"
      },
      {
        "title": "Transactions by Device Type",
        "sql": "SELECT devices.device_type, COUNT(transactions.id) FROM devices JOIN users ON devices.user_id = users.id JOIN wallets ON users.id = wallets.user_id JOIN transactions ON wallets.id = transactions.wallet_id GROUP BY devices.device_type;",
        "dialect": "postgres"
      },
      {
        "title": "Wallet Balance Changes Over Time",
        "sql": "SELECT wallets.id, wallets.balance, transactions.timestamp FROM wallets JOIN transactions ON wallets.id = transactions.wallet_id ORDER BY transactions.timestamp;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Data Analysts",
        "body": "Data analysts can use this dataset to explore Bitcoin transaction trends and analyze user behavior patterns over time. By querying the transactions and wallets tables, they can gain insights into how user activity correlates with market events and how wallet balances change."
      },
      {
        "title": "Developers",
        "body": "Developers can use this synthetic dataset to seed their applications with realistic data for testing purposes. By utilizing the users, wallets, and transactions tables, they can simulate user interactions with Bitcoin wallets and ensure their applications handle various scenarios effectively."
      },
      {
        "title": "Educators",
        "body": "Educators can leverage this dataset in classroom settings to teach students about cryptocurrency, blockchain technology, and financial transactions. The dataset provides a hands-on opportunity to analyze real-world-like data while learning SQL and data analysis techniques."
      },
      {
        "title": "Financial Researchers",
        "body": "Financial researchers can explore this dataset to study the patterns of cryptocurrency transactions and user wallet management. By analyzing the relationships between users, wallets, and transactions, they can uncover insights into the behaviors of digital finance users."
      }
    ]
  },
  "counts": {
    "users": 100,
    "devices": 151,
    "wallets": 152,
    "addresses": 245,
    "transactions": 343
  },
  "stats": {
    "users": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "username": {
          "nulls": 15,
          "distinct": 85
        },
        "email": {
          "nulls": 14,
          "distinct": 85
        },
        "created_at": {
          "nulls": 0,
          "distinct": 89,
          "min": "2023-01-26",
          "max": "2024-12-16"
        }
      }
    },
    "wallets": {
      "rows": 152,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 152,
          "min": 1,
          "max": 152
        },
        "user_id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "balance": {
          "nulls": 26,
          "distinct": 126,
          "min": 32.10187,
          "max": 986.123382
        },
        "created_at": {
          "nulls": 0,
          "distinct": 130,
          "min": "2023-01-03",
          "max": "2024-12-29"
        }
      }
    },
    "transactions": {
      "rows": 343,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 343,
          "min": 1,
          "max": 343
        },
        "wallet_id": {
          "nulls": 0,
          "distinct": 152,
          "min": 1,
          "max": 152
        },
        "amount": {
          "nulls": 31,
          "distinct": 312,
          "min": 0.016298,
          "max": 9.988275
        },
        "timestamp": {
          "nulls": 0,
          "distinct": 343,
          "min": "2023-01-01 10:36:46",
          "max": "2024-12-30 19:00:55"
        }
      }
    },
    "addresses": {
      "rows": 245,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 245,
          "min": 1,
          "max": 245
        },
        "wallet_id": {
          "nulls": 0,
          "distinct": 152,
          "min": 1,
          "max": 152
        },
        "address": {
          "nulls": 28,
          "distinct": 217
        }
      }
    },
    "devices": {
      "rows": 151,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 151,
          "min": 1,
          "max": 151
        },
        "user_id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "device_type": {
          "nulls": 0,
          "distinct": 3,
          "min": "desktop",
          "max": "tablet"
        },
        "last_accessed": {
          "nulls": 0,
          "distinct": 151,
          "min": "2023-01-04 21:22:46",
          "max": "2024-12-27 02:25:36"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/users.csv",
      "format": "csv",
      "table": "users",
      "key": "datasets/cryptocurrency-transaction-insights/v1/csv/users.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-transaction-insights/v1/csv/users.csv",
      "bytes": 8544,
      "sha256": "cfedec4b9d27287c61030e150dd76475a44f723ba2b0633e01c92bdf4835882b",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/devices.csv",
      "format": "csv",
      "table": "devices",
      "key": "datasets/cryptocurrency-transaction-insights/v1/csv/devices.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-transaction-insights/v1/csv/devices.csv",
      "bytes": 5252,
      "sha256": "1dfc838d378c054c0ba937b42776fa421af6f061e01b86ca06c82a4a522eb004",
      "rows": 151,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/wallets.csv",
      "format": "csv",
      "table": "wallets",
      "key": "datasets/cryptocurrency-transaction-insights/v1/csv/wallets.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-transaction-insights/v1/csv/wallets.csv",
      "bytes": 4205,
      "sha256": "8f2198f0df5e0b20c2bfffb66933dceb09858ee50ef3a2dd8da31593127f2064",
      "rows": 152,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/addresses.csv",
      "format": "csv",
      "table": "addresses",
      "key": "datasets/cryptocurrency-transaction-insights/v1/csv/addresses.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-transaction-insights/v1/csv/addresses.csv",
      "bytes": 2747,
      "sha256": "8f0b5a6fd3f6277b04f31ab1fcc3b580713b70e38dbd849807ceed3751085119",
      "rows": 245,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/transactions.csv",
      "format": "csv",
      "table": "transactions",
      "key": "datasets/cryptocurrency-transaction-insights/v1/csv/transactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-transaction-insights/v1/csv/transactions.csv",
      "bytes": 12471,
      "sha256": "f98c339f9ae556f57d2a142e4a2cf9f6c8876ed4c47bf03b5ecb5e883c824769",
      "rows": 343,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "cryptocurrency-transaction-insights.json",
      "format": "json",
      "table": null,
      "key": "datasets/cryptocurrency-transaction-insights/v1/cryptocurrency-transaction-insights.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-transaction-insights/v1/cryptocurrency-transaction-insights.json",
      "bytes": 112708,
      "sha256": "b796fafe09555c90054c0510b6ecb771a99446e2930a3da572119321f25700c0",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/cryptocurrency-transaction-insights/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-transaction-insights/v1/sql/postgres.sql",
      "bytes": 47438,
      "sha256": "799a53ca7040d59ed82607f13878735b31993e5c295674e9657c783e9235afae",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/cryptocurrency-transaction-insights/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-transaction-insights/v1/sql/mysql.sql",
      "bytes": 46889,
      "sha256": "e38e33139904d3b5d2e3596c31ddb7b7dbf9a8d2dd16f07b226c4cc88d41886d",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/cryptocurrency-transaction-insights/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-transaction-insights/v1/sql/mssql.sql",
      "bytes": 48485,
      "sha256": "deccca470d842ebd6b39d0f65b0a094b14ef11ab321f829bcd4ab47a633c2d02",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/cryptocurrency-transaction-insights/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-transaction-insights/v1/sql/sqlite.sql",
      "bytes": 46711,
      "sha256": "69fe870e2a14ab554ec7a038117a3d0e95f0d69c043963802c96a99a930132c2",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/cryptocurrency-transaction-insights/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-transaction-insights/v1/prisma/seed.ts",
      "bytes": 94243,
      "sha256": "231d075b2a088b6455a66e12c13d8165c0683182c08198104352dc5ea5be2175",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/cryptocurrency-transaction-insights/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/cryptocurrency-transaction-insights/v1/django/fixtures.json",
      "bytes": 155739,
      "sha256": "bda8053d23a446a769805a409a2609582c9bb88bf108ef4729d60a1d2dd75985",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788766242986,
  "updatedAt": 1788766242986
}
