SDK for accepting SUT (SuperTrust) token payments on Polygon.
npm install sut-payimport SUTPay, { SUT_CONFIG, BUY_LINKS } from 'sut-pay';
// Initialize with your wallet address
const sutPay = new SUTPay('0xYourWalletAddress');
// Verify a payment
const payment = await sutPay.verifyPayment('0xTransactionHash');
console.log(`Received ${payment.amount} SUT from ${payment.from}`);
// Verify with minimum amount
const payment = await sutPay.verifyPayment('0xTransactionHash', 5);
// Check balance
const balance = await sutPay.getBalance('0xAddress');
console.log(`Balance: ${balance} SUT`);
// Generate payment request message
const request = SUTPay.generatePaymentRequest('0xWallet', 10, 'Premium Service');
console.log(request);- Network: Polygon (Chain ID: 137)
- Contract:
0x98965474EcBeC2F532F1f780ee37b0b05F77Ca55 - Symbol: SUT
- Name: SuperTrust
MIT