The blockchain payment infrastructure for games. Tournaments, item shops, subscriptions, and payment gateways โ all powered by PYLUN.
Integrate blockchain payments into your game with just a few lines of code.
Accept payments in PYLUN & tokens with automatic fee splitting. Instant settlement to game vaults with configurable platform and referrer fees.
Create tournaments with prize pools and BPS-based distribution. Entry fees, max participants, time-bound events, and automated prize payouts.
ERC-1155 compatible on-chain item shop. Configurable supply, pricing, metadata URIs, and direct-to-player sales with native PYLUN.
import { PylunPay } from "@pylun/pay-sdk";
// Initialize
const pay = new PylunPay();
await pay.connect(signer);
// Process a payment
await pay.payNative(gameId, "order-123", "5.0");
// Create a tournament
await pay.createTournament({
gameId: 0,
name: "Weekly Championship",
entryFee: "1.0",
maxParticipants: 32,
prizeDistribution: [5000, 3000, 2000],
});
// Purchase an item
await pay.purchaseItem(itemId, 1);Pylun Testnet ยท Chain ID 82716