Smart Contract Reference

Complete reference for integrating with Zenmint's pure Web3 payment infrastructure. No API keys, no accounts, just smart contracts.

Zenmint.app Smart Contract Integration

The future of payments is here. Integrate blockchain payments into your existing applications with Zenmint.app's pure Web3 infrastructure - no API keys, no accounts, just smart contracts.

Why Choose Zenmint.app?

💰 Lower Costs

Pay 0.5% fees + minimal gas vs traditional 2.9% + $0.30

🚀 No Setup Required

No API keys, accounts, or KYC processes

🔒 Pure Web3

Fully decentralized with smart contract security

âš¡ Instant Settlement

No waiting periods or chargebacks

Smart Contract Architecture

PaymentProcessor

Core payment processing with automatic fee calculation and staking discounts

BatchPaymentProcessor

Efficient bulk payments with gas optimization

PaymentStream

Continuous payment flows for subscriptions and salaries

ScheduledPayment

Automated future payments and recurring transfers

Contract Addresses (Polygon Mainnet)

const ZENMINT_CONTRACTS = {
  PaymentProcessor: '0xa7F4248e7e287ece9DEF8Cc8e14E05F0610F9CE5',
  BatchPaymentProcessor: '0xB8c77482e45F1F44dE1745F52C74426C631bDD52',
  PaymentStream: '0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984',
  ScheduledPayment: '0x6B175474E89094C44Da98b954EedeAC495271d0F',
  
  // Supported Tokens
  USDC: '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174',
  USDT: '0xc2132D05D31c914a87C6611C10748AEb04B58e8F',
  DAI: '0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063'
}

Integration Methods

Direct Contract Calls (Recommended)

Use ethers.js or web3.js to interact directly with smart contracts

React Hooks (wagmi/viem)

Modern React integration with TypeScript support

Backend Integration

Server-side payment processing with private key management