transfer. Gas is sponsored by the Startale paymaster, so the user pays only the USDSC amount.
Contract addresses
USDSC follows the standard ERC-20 interface. Read decimals at runtime, do not hardcode them.
Send a USDSC payment
The
parseUnits(amount, 6) call assumes USDSC uses 6 decimals. Read the actual value at runtime with decimals() if you support multiple stablecoins or want to be defensive against contract upgrades.Approve and spend in one click
Usewallet_sendCalls (EIP-5792) when your flow needs an approve followed by a contract call. The user signs once and both calls land atomically.
Pay in ETH
For native ETH payments, useuseSendTransaction: