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.