Skip to content

agent-steven/sut-pay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sut-pay 💎

SDK for accepting SUT (SuperTrust) token payments on Polygon.

Installation

npm install sut-pay

Usage

import 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);

Token Info

  • Network: Polygon (Chain ID: 137)
  • Contract: 0x98965474EcBeC2F532F1f780ee37b0b05F77Ca55
  • Symbol: SUT
  • Name: SuperTrust

Buy SUT

Links

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors