Skip to main content

Introduction

Staxiq leverages smart contracts on the Stacks blockchain (Bitcoin Layer 2) to provide transparent, verifiable, and immutable records of user preferences and AI-generated trading strategies.

User Profiles

Store risk preferences on-chain with tamper-proof records

Strategy History

Anchor AI strategy recommendations to the blockchain

Bitcoin Security

Inherit Bitcoin’s security through Stacks L2

Open Source

Fully auditable and verifiable contract code

Why Smart Contracts?

Staxiq uses blockchain technology to provide:

Transparency

All risk profiles and strategy recommendations are permanently recorded on-chain, creating an immutable audit trail that users can verify at any time.

User Ownership

Users maintain complete control over their data. Risk profiles are stored under the user’s wallet address, not in a centralized database.

Verifiable AI

Every AI-generated strategy recommendation is hashed and anchored to the blockchain, providing cryptographic proof of what was recommended and when.

Regulatory Compliance

On-chain records provide transparent documentation for regulatory requirements while maintaining user privacy.

Technology Stack

;; Staxiq User Profile Contract
;; Built on Stacks Bitcoin L2

(define-map user-profiles
  principal
  {
    risk-level: uint,
    created-at: uint,
    updated-at: uint,
    strategy-count: uint
  }
)

Core Components

  • Blockchain: Stacks (Bitcoin Layer 2)
  • Smart Contract Language: Clarity (decidable, non-Turing complete)
  • Development Framework: Clarinet
  • Testing: Vitest with Clarinet SDK
  • Frontend SDK: @stacks/transactions, @stacks/blockchain-api-client

Contract Architecture

The Staxiq smart contracts are designed with simplicity and security in mind:
  • Single Contract Design: All user profile functionality in one contract
  • Read-Only Functions: Gas-free data queries
  • Public Functions: Authenticated writes requiring user signatures
  • No Admin Functions: Fully decentralized with no owner privileges after deployment

Getting Started

1

Understand the Architecture

Read the Architecture page to understand contract data structures and design decisions.
2

Explore Functions

Review the User Profile Functions to see all available contract methods.
3

Integrate Frontend

Follow the Integration Guide to connect your frontend application.
4

Deploy and Test

Learn about Deployment and Testing processes.

Contract Address

The Staxiq User Profile contract is deployed at:Testnet: ST9ZZEP9M6VZ9YJA0P69H313CRPV0HQ1ZNPVS8NZ.staxiq-user-profileMainnet deployment coming soon.

Next Steps

Contract Architecture

Learn about data structures and design patterns

User Profile Contract

Explore the user profile contract capabilities

Build docs developers (and LLMs) love