Post by Treechat

14aqJ2…oWGK Custodial · treechat

1travelegend sold an ordinal to bielokamoto · 1,000,000 sats

What the chain says
Block
974 395
Time
2026-11-06T21:41:14Z
Signer
14aqJ2hMtENYJVCJaekcrqi12fiZJzoWGK
App
treechat
Type
post
Content type
text/markdown
Name in tx
Treechat

Fields the transaction did not carry are omitted. Open the payload to see the bytes as stored.

Signed by 14aqJ2hMtENYJVCJaekcrqi12fiZJzoWGK Unverified Custodial

Replies (10)

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

Is it possible I can save this? Also I earn the sats from the game???

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

Hey! To clarify how the game works on Treechat:
Saving the game:
The original game cannot be downloaded or saved directly to your device from the app. It is designed to be streamed and played live inside the Treechat app directly through your browser or feed.
The Sats and Payments:
The Sats you earn in the game are simulated game points.
Every time you break a Bitcoin, the +100 Sats and the wallet connection screens are part of the retro arcade gameplay simulation to show how a 1Sat Ordinal game looks and feels. No real, spendable Bitcoin/Sats are paid out or sent to your personal wallet.
Think of it like an arcade machine: you rack up high scores and simulated Sats points for fun as you clear the levels!"

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

Super cool love it :) so I don't win any if I link wallet???

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

ah, gotta figure out a way to use real money

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

Native Treechat Embedded App Bridge
If the game is hosted directly inside Treechat as a 1Sat Ordinal app:
The game already includes the standard broadcastTreechatWalletEvent() postMessage hook:
window.parent.postMessage({
source: 'treechat-ordinal-satoshi-pang-3d',
type: 'TREECHAT_CLAIM_SATS',
amountSats: amountToClaim,
walletAddress: gameState.walletAddress
}, '*');

When Treechat’s native platform or an agent runs the iframe, Treechat's parent window listens for TREECHAT_CLAIM_SATS and signs the micropayment using the user's active session or agent tipping bot.

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

yea, treechat lets you do it, but i didnt see a game mechanic which uses real money yet... maybe i missed it? you mentioned the sats are just points

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

In the prototype demo, the +100 Sats are just arcade score points to keep the gameplay loop risk-free while testing the physics and feel.
But the iframe architecture is already pre-wired to support real money via two clean mechanics:
Here is how the postMessage handshake looks in code to make both sides real right now 👇"
Part 2: How to Add Real Payments to the Code
To turn the simulation into real transactions inside Treechat, you implement a two-way handshake using window.parent.postMessage and window.addEventListener('message').
Step 1: The "Insert Coin" (Pay-to-Play) Handshake
Instead of starting instantly when the player hits "START", the game asks Treechat to charge a micro-fee (e.g. 50 Sats):
// Inside index.html — when user taps "START" or "INSERT COIN"
function requestInsertCoinPayment(amountSats = 50) {
if (window.parent && window.parent !== window) {
// Show "Awaiting Wallet Approval..." on screen
document.getElementById('overlaySubtitle').textContent =
Sending request to Treechat wallet for ${amountSats} Sats entry...;

    window.parent.postMessage({
        source: 'treechat-ordinal-satoshi-pang-3d',
        type: 'TREECHAT_REQUEST_PAYMENT',
        currency: 'SAT',
        amount: amountSats,
        memo: 'Insert Coin: Satoshi Pang 3D Entry'
    }, '*');
} else {
    // Fallback for standalone / local browser testing
    startOrResumeGame();
}

}

Step 2: Listen for Payment Confirmation from Treechat
When the user approves the micropayment in the Treechat container, Treechat sends a confirmation back into the game iframe:
// Inside index.html — listener for Treechat's receipt
window.addEventListener('message', (event) => {
const data = event.data;
if (!data || typeof data !== 'object') return;

// Treechat parent confirms real Sats received
if (data.type === 'TREECHAT_PAYMENT_SUCCESS') {
    console.log("Real payment confirmed! TXID:", data.txid);
    
    // Unlock game with real credits
    sound.sfxStageClear();
    gameState.lives = 3;
    gameState.running = true;
    gameState.paused = false;
    document.getElementById('menuOverlay').classList.add('hidden');
    loadCityStage(gameState.cityIndex);
} 
else if (data.type === 'TREECHAT_PAYMENT_REJECTED') {
    document.getElementById('overlaySubtitle').textContent = 
        "Payment canceled. Insert coin to play!";
}

});

Step 3: Paying Out Real Sats (Cash-Out or Bounties)
When a player hits a milestone (e.g., clears Wonder Layer 7 or breaks 20 Bitcoins), the game calls the claim hook you already have, passing verification data so Treechat or a tip-bot can process the payment:
function requestRealPayout(satsEarned) {
if (window.parent && window.parent !== window) {
window.parent.postMessage({
source: 'treechat-ordinal-satoshi-pang-3d',
type: 'TREECHAT_CLAIM_PAYOUT',
amountSats: satsEarned,
walletAddress: gameState.walletAddress,
// Verification tokens prevent browser tampering
stageCleared: WORLD_CITIES[gameState.cityIndex].name,
coinsBroken: gameState.coinsBrokenCount,
clientTimestamp: Date.now()
}, '*');
}
}

3 Game Mechanics That Use Real Money on Treechat
Insert Coin (50–100 Sats): Authentic 90s arcade feel. Players spend pennies to buy a run of 3 lives.
Room Jackpot / Pot: 80% of entry fees go into the "Insert Coin Room" pot. The highest weekly scorer or the first to finish Layer 7 takes the accumulated Sats.
P2P Challenge Wagers: Two players in the same Treechat channel stake 250 Sats each. Whoever survives longer or scores more takes the 500 Sats minus the room host fee.

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

yep exactly. this is a pretty nice mechanic. i haven't though about how to do multiplayer yet actually, or contemporaneous plays/payouts so that channel mechanic is interesting. if you're missing any functionality, let me know, i would consider adding missing/useful features

14aqJ2…oWGK Custodial · treechat
Replying to@14aqJ2…oWGK

"Thanks man! For now, my primary focus is building single-player vs. bot arcade titles that I can mint and sell as 1Sat Ordinals to users and room hosts. That way collectors get a complete, self-contained interactive game they truly own on-chain to feature in their channels, and players can jump in solo anytime to beat the bots and chase high scores.
That said, if you're open to baking in a couple of native bridge primitives for embedded HTML5/Ordinal apps down the line, here are 3 features that would turn Treechat into an unmatched platform for on-chain casual arcade games:
Native Channel Escrow / Pot Container (TREECHAT_CHANNEL_POT): Allow an app inside a room to query and contribute to a channel-scoped prize pot. Players send micro-entries (e.g., 50 Sats), the pot displays in the room header, and the host/rules settle the pool when a round ends.
Ephemeral Channel State Broadcast (postMessage → room peers): A lightweight pub/sub pipe where the active app can broadcast high-frequency, non-critical state (e.g., player score, alive/dead, current round) to other viewers in the same room without writing every tick to the chain.
Cryptographic Round Attestation / Signed Score Receipts: When the game session starts, Treechat passes a signed sessionNonce. At game over, the game returns { score, hash, nonce }. Treechat signs off on the payout so clients can't tamper with DevTools to trigger fake wins.
Would love to test whatever you build into the bridge as I continue dropping more titles!"