Moon avatar

PeakeSino Payout Script

paulmoon410

Published: 27 Jan 2026 โ€บ Updated: 27 Jan 2026PeakeSino Payout Script

PeakeSino Payout Script

We're poor around these parts, I have to find a way to make storage work for me. So here's the long way to do the short thing.

I'm always looking for a helping hand.

Once I can completely figure out port forwading this is how its going to be.

frontend_payout.js


// frontend_payout.js
// Call this function from your game when a user wins and should be paid out
// Example: enqueuePayout('winnerusername', 100, 'Blackjack win')

// Configure backend API base (production: your VPS)
const API_BASE = 'http://serverip/peksino';

function formatAmount(amount) {
    const n = Number(amount);
    if (!isFinite(n) || n <= 0) return '0.00000000';
    // 8 decimal places string
    return n.toFixed(8);
}

function enqueuePayout(to, amount, memo, callback) {
    const qty = formatAmount(amount);
    fetch(`${API_BASE}/enqueue_payout`, {
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
        body: JSON.stringify({
            to: to,
            amount: qty,
            memo: memo || ''
        })
    })
    .then(r => r.json())
    .then(data => {
        if (callback) callback(data);
        if (data.status === 'queued') {
            alert('Payout queued for ' + to + ' (' + qty + ' PEK)');
        } else {
            alert('Payout error: ' + (data.error || 'Unknown error'));
        }
    })
    .catch(err => {
        if (callback) callback({error: err});
        alert('Payout request failed: ' + err);
    });
}


๐Ÿช™ PeakeCoin Ecosystem

๐Ÿ’ฑ PeakeCoin USDT Bridge (Hive โ†” Polygon/MATIC)
Bridge SWAP.USDT from Hive Engine to USDT on Polygon (MATIC).
Whitelist access, documentation, and bridge status updates:
๐Ÿ‘‰ https://geocities.ws/peakecoin


โš™๏ธ HiveP.I.M.P. โ€” PeakeCoin Intelligent Market Protector
Operated by hivepimpHive account@hivepimp, P.I.M.P. stabilizes PEK markets and supports liquidity on Hive Engine.
Community liquidity participation strengthens long-term market health.
๐Ÿ“ˆ Open-source code, bots, and documentation:
๐Ÿ‘‰ https://github.com/paulmoon410


๐ŸŽฐ PeakeSino โ€” The PeakeCoin Casino (Beta)
Blockchain-powered games using PEK as the native in-game currency.
Built on Hive with a focus on provable fairness and community-driven growth.
๐Ÿƒ Play the beta games here:
๐Ÿ‘‰ https://geocities.ws/peakecoin/pek_casino/beta_games/index.html


๐Ÿ™ Acknowledgements

Thanks to and please follow:
enginewittyHive account@enginewitty ecoinstantHive account@ecoinstant neoxianHive account@neoxian txracerHive account@txracer thecrazygmHive account@thecrazygm holdoniaHive account@holdonia aggroedHive account@aggroed

For their continued support, guidance, and help expanding the PeakeCoin ecosystem.


Leave PeakeSino Payout Script to:

Written by

Father, Writer, Rhymer... Doing better.

Read more #hive-167922 posts


Best Posts From Moon

We have not curated any of paulmoon410's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Moon