blockpay
04 · SMART CONTRACT 6 MIN READ

Smart Contracts, Factory & Settlement Wallet

Audit Blockpay’s verified Ethereum Mainnet factory, per-merchant settlement contract, counterfactual EIP-1167 QR vaults, and atomic 99.31% / 0.69% split.

ChainEthereum Mainnet (Chain ID 1)
Factory0x2cC72E5eC9f3b14416595b1055A36d3833B103e5
Split Formulafee = floor(gross × 69 / 10000)
Custody0% — 100% Noncustodial

Two noncustodial settlement paths, one atomic split

Blockpay’s Ethereum Mainnet settlement architecture eliminates pooled custody while keeping checkout instant for every kind of buyer—whether paying from a browser extension wallet or withdrawing directly from a centralized exchange.

Payment PathContract MechanismLatency & Gas Profile
Browser / WalletConnect (Direct)Merchant’s dedicated BlockpayMerchant contract calls payNative(...) or payToken(...)0ms provisioning; buyer signs directly and settles atomically in 1 Ethereum tx
QR Code / Exchange TransferFactory predicts a counterfactual EIP-1167 deposit vault via predictDepositAddress(...)Zero upfront deployment gas; factory deploys & settles via settleDeposit(...) only when funds arrive
Zero admin sweep, zero pooled balances

Every BlockpayMerchant contract and counterfactual vault is bound to the merchant’s approved Ethereum payout address onchain. There is no omnibus wallet, no admin withdraw function, and no mechanism for Blockpay to redirect, freeze, or delay settled merchant proceeds.

Verified Ethereum Mainnet contracts & assets

TEXTETHEREUM MAINNET (CHAIN ID 1) REGISTRY
Factory Contract: 0x2cC72E5eC9f3b14416595b1055A36d3833B103e5
Protocol Fee:     69 bps (0.69%) · Merchant receives 99.31%
Native ETH:       0x0000000000000000000000000000000000000000
USDC (6 dec):     0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
USDT (6 dec):     0xdAC17F958D2ee523a2206206994597C13D831ec7
SOLIDITYCORE CONTRACT INTERFACE (ABI EXCERPT)
// Per-merchant settlement contract (BlockpayMerchant)
function payNative(string orderNumber, uint256 amountDue, uint64 expiresAt) external payable;
function payToken(string orderNumber, address token, uint256 amountDue, uint64 expiresAt) external;

// Factory deterministic QR vault prediction & settlement
function merchantAccounts(bytes32 merchantId) external view returns (address);
function predictDepositAddress(
  bytes32 merchantId,
  string orderNumber,
  address token,
  uint256 amountDue,
  uint64 expiresAt
) external view returns (address);

// Canonical onchain settlement event emitted on finality
event Settled(
  bytes32 indexed merchantId,
  string businessName,
  string orderNumber,
  address indexed token,
  uint256 gross,
  uint256 fee,
  uint256 net,
  bool late
);

Exact integer split math

All token accounting uses deterministic integer math in base token units (wei for ETH, 10⁻⁶ units for USDC and USDT)—never floating-point numbers. In the same Ethereum transaction that completes payment, the contract computes fee = floor(gross × 69 / 10000) and net = gross − fee, forwarding net directly to the merchant’s payout wallet and fee to the protocol treasury.

Order AmountGross USDC UnitsProtocol Fee (0.69%)Merchant Receives (99.31%)
$10.0010,000,00069,000 ($0.069)9,931,000 ($9.931)
$100.00100,000,000690,000 ($0.69)99,310,000 ($99.31)
$2,500.002,500,000,00017,250,000 ($17.25)2,482,750,000 ($2,482.75)
$10,000.0010,000,000,00069,000,000 ($69.00)9,931,000,000 ($9,931.00)

Configuring your receiving wallet safely

  1. Always provide an EIP-55 checksummed self-custody Ethereum address in Dashboard → Profile → Settlement Wallet (or connect directly with MetaMask / hardware wallet).
  2. For commercial treasuries, we strongly recommend a Safe (Gnosis Safe) multisig or dedicated hardware wallet rather than a centralized exchange deposit address.
  3. Changing your receiving wallet or business name triggers an automatic re-verification hold so compromised dashboard credentials cannot silently reroute live store payouts.
  4. Verify your live settlement transactions anytime on Etherscan by matching the Settled event orderNumber, net payout transfer, and your receiving wallet address.