Skip to main content

Stablecoin Operations

PayWithZ supports minting, transferring, and redeeming stablecoins. All operations require KYC verification.

Mint Stablecoin

Mint new stablecoins after fiat deposit verification:
curl -X POST http://api.paywithz.com/api/stablecoin/mint-demo \
  -H "Content-Type: application/json" \
  -d '{
    "wallet": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
    "amount": 1000
  }'
Demo Endpoint: This is a demo endpoint. In production, use /api/stablecoin/mint with fiat deposit verification.

Transfer Stablecoin

Transfer tokens between verified wallets:
curl -X POST http://api.paywithz.com/api/stablecoin/transfer \
  -H "Content-Type: application/json" \
  -d '{
    "from": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
    "to": "9zLYuh3DX98e98UYJTSEcqE6kCifUqB94UaSvKptLhBvV",
    "amount": 100
  }'

Transfer Requirements

Sender SBT

Sender must have valid, non-expired SBT

Receiver SBT

Receiver must have valid, non-expired SBT

Sufficient Balance

Sender must have enough tokens

Compliance Checks

Must pass all compliance checks
Gasless Transfers: All transaction fees are paid by the platform authority. Users never need SOL.

Redeem Stablecoin

Redeem stablecoins for fiat withdrawal:
curl -X POST http://api.paywithz.com/api/stablecoin/redeem \
  -H "Content-Type: application/json" \
  -d '{
    "wallet": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
    "amount": 200
  }'

Complete Flow Example

POST /api/wallet/create
Response: wallet: "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU"
POST /api/kyc/submit
Response: SBT issued, wallet verified
POST /api/stablecoin/mint-demo
Response: 1000 tokens minted
POST /api/stablecoin/transfer
Response: Transfer completed (if both wallets verified)

Key Features

Compliance Enforced

Every transfer automatically checked

Gasless UX

Users never need SOL for fees

Fast Settlement

Transfers complete in seconds

Audit Trail

All transactions logged

Get Your API Key

Request API Key

Join our pilot program to get API access. Perfect for banks, fintechs, and payment processors.

Next Steps