$CRE8 is launching on May 22nd. Beware of fake launches.
CRE8 Finance
CRE8 Finance
  • Introduction
  • Getting Started
    • The $8+ Trillion Service Economy
    • Tokenized Gigs: Turning Services into SPL Tokens
  • Smart Contract Architecture
    • Token Minting and Management
    • Escrow and Service Contract Logic
  • Gig Flow: From Listing to Escrow to Settlement
    • 1. Service Listing & Tokenization
    • 2. Buyer Purchases the Service (Escrow Initiation)
    • 3. Service Delivery Off-Chain
    • 4. Verification & Escrow Settlement
    • 5. Ratings and Reputation
    • Summary of the Flow with an Example
  • Platform Features, Applications and User Tools
    • Web App and Mobile Apps
      • Integrated Chat and Communication
      • Reviews and Ratings System
      • User Dashboard and Analytics
      • Wallet Integration (Non-Custodial)
      • Notifications and Real-Time Updates
      • Additional Features
  • $CRE8 Token
    • Utility Overview
      • Medium of Exchange
      • Platform Fee Currency
      • Staking and Rewards
      • Governance
      • Incentives and Rewards
      • Collateral / DeFi Utility
  • Fee Discounts
  • Tokenomics and Distribution
  • Staking Mechanism
  • Governance Rights
  • Summary of $CRE8 Benefits
  • APIs & SDK
    • Integrating with CRE8
    • API Overview
    • SDKs for Different Environments
    • Detailed API Endpoints (Examples)
    • Example Use Cases for APIs/SDKs
    • API/SDK Security and Rate Limiting
    • Developer Portal and Documentation
  • Developer Section
    • Examples, Formulas, and Integration Flows
    • Creating a Tokenized Service (via SDK)
    • Calculating Fees and Discounts
    • Escrow Milestone Release Calculation
    • Integration Flow: Web App Using CRE8 APIs
    • Architectural Diagram
    • Querying On-Chain Data
    • Developer Tips
  • Other Products
    • CRE8 Wallet
      • Wallet Architecture and Key Management
      • Integrated Features
      • Security Measures
      • Interaction with the Platform
      • Supported Assets
      • Non-Custodial Philosophy
  • The CRE8 Card
    • Concept Overview
    • How it works
    • Integration with Platform
    • Compliance for Card
    • Timeline and Status
    • Potential Impact of CRE8 Card
  • Community & FAQ
    • Glossary
    • FAQ
    • Legal
    • Privacy Policy
    • CRE8 Socials
Powered by GitBook

@CRE8 Technologies LLC

On this page
  1. Developer Section

Querying On-Chain Data

A quick example using Solana web3.js (without CRE8 SDK) to check the status of a service token:

const solanaWeb3 = require('@solana/web3.js');
const connection = new solanaWeb3.Connection(solanaWeb3.clusterApiUrl('mainnet-beta'));

// Assuming we have the mint address of a service token:
const mintAddress = new solanaWeb3.PublicKey("Fg6z...serviceTokenMint...");
const tokenSupply = await connection.getTokenSupply(mintAddress);
console.log("Total service tokens (supply):", tokenSupply.value.amount);

// Get token accounts for this mint (to see who holds it, escrow or someone):
const largestAccounts = await connection.getTokenLargestAccounts(mintAddress);
console.log("Largest token accounts:", largestAccounts.value);
if (largestAccounts.value.length > 0) {
    const escrowAcct = largestAccounts.value[0].address;
    // Possibly the escrow PDA if not yet completed, or buyer address if in buyer custody
    console.log("Escrow (or holder) account:", escrowAcct.toBase58());
}

This snippet uses low-level Solana RPC to fetch token supply and holders. A developer might use such techniques for verification or analytics outside the provided API.

PreviousArchitectural DiagramNextDeveloper Tips

Last updated 3 days ago

Page cover image