Stake-for-Card and Stake-for-Distributor: Prepaid Balances, Credit Lines, and Distribution in an NFT Policy Shell

When a retail chain, cloud compute provider, or gaming platform wants to issue prepaid value cards or corporate credit lines on-chain, a common first response is to create a standard fungible token such as ERC-20, or build a bookkeeping contract around a centralized database.
Real commercial settlement exposes the limits of both approaches:
- Pure fungible tokens have no memory of where a unit came from. In a promotion that adds 200 bonus units to a 1,000-unit purchase, which units represent the customer's refundable paid balance, and which are merchant-funded credits that can only be spent? Pool them in one undifferentiated balance, and that boundary disappears. Scripts can exploit the resulting promotion arbitrage to drain merchant funds.
- Requiring every distributor or reseller to pay a nonrefundable franchise fee or purchase deposit creates a high barrier to participation. Channel discounting and disappearing resellers can also leave customers holding cards that cannot be redeemed.
ArcBlock's protocol design addresses these problems with two connected sets of native staking primitives: Stake-for-Card / Stake-for-Credit, which place fungible balances inside an NFT policy shell, and Stake-for-Distributor, a refundable admission stake that replaces sunk franchise fees.

1. Why a Prepaid Card Needs an FT-in-an-NFT-Policy-Shell
Prepaid cards, gift cards, monthly compute packages, and corporate credit lines are all forms of policy-bound fungible value:
- They need fine-grained balance deductions. A card with 500 units might redeem 12.5 today and 38.2 tomorrow, continuing until its balance reaches zero.
- They also need an independent identity and policy envelope. Each card has an issuance batch, expiration rules, an eligible-merchant allowlist, per-transaction limits, and transferability rules. Crucially, it must specify how much underlying collateral is locked to back its balance at a 1 ratio.
In ArcBlock's ledger design, both prepaid cards (PREPAID) created through Stake-for-Card and postpaid credit lines (POSTPAID) backed through Stake-for-Credit therefore use FT-in-an-NFT-Policy-Shell: a fungible ledger inside an NFT policy container.
- The outer layer is a verifiable NFT container,
IAssetState, withIAssetState.data.valueCard. It carries a globally unique asset DID,cardAssetDid, holder-signature safeguards, verifiable dynamic card artwork, and the card's on-chain state-machine policies. - The inner layer is a protocol stake vault,
StakeState, deterministically derived from the card DID.- A
PREPAIDcard uses the reserve slottoStakeAddress(cardAssetDid, tokenAddress, 'value-card-reserve'). - A
POSTPAIDcard uses the credit-collateral slottoStakeAddress(cardAssetDid, tokenAddress, 'value-card-credit-collateral').
- A
- Every redemption passes through the policy gate. When the holder calls
spendValueCard, the state machine validates the policies inIAssetState.data.valueCard, then uses double-entry bookkeeping to deduct the balance and transfer the correspondingStakeStatereserves. It also supports lazyArcSpaceattribution when needed.
The card combines an NFT's individual policy boundaries with a fungible balance's payment granularity. A customer or auditor can inspect its value-card-reserve slot to verify that the available paid balance is fully backed by assets locked in protocol escrow. The locked backing cannot be diverted by the merchant before the protocol permits its release.
2. Three Withdrawal and Settlement Modes
Prepaid retail and SaaS subscriptions need two controls that an undifferentiated balance cannot provide: separation of paid funds from promotional credits, and staged release tied to fulfillment.
The Stake-for-Card design includes three withdrawal and settlement modes in IAssetState.data.valueCard, with separate accounting for the paid and promotional portions of the same card.
INSTANT: Immediate Settlement
This mode suits standard digital goods, metered API billing, and retail purchases delivered immediately. When spendValueCard redeems a balance, the same atomic transaction deducts the card's available units and transfers the corresponding underlying assets from value-card-reserve to the participating merchant's settlement account.
ESCROW_MATURITY: Release After the Escrow Period
This mode suits prepaid services whose fulfillment takes time: course packages, long-running cloud contracts, or distributor orders with return windows. After redemption or channel settlement, funds remain in a protocol-protected pending-maturity escrow pool. They are released to the recipient only after the configured maturity window has elapsed.
PROMO_SPEND_ONLY: Promotional Credits Can Be Spent, Not Withdrawn
For a promotion that adds 200 units to a 1,000-unit purchase, the 1,000 paid units enter a balance ledger fully backed by value-card-reserve. The 200 merchant-funded bonus units are marked PROMO_SPEND_ONLY.
spendValueCard deducts balances according to deterministic rules. On card cancellation, however, the protocol refunds only the unspent portion attributable to the actual staked payment. PROMO_SPEND_ONLY credits cannot be withdrawn as underlying tokens.
This state-machine invariant lets merchants offer promotional bonuses and cross-subsidies without turning those credits into a direct withdrawal path from the reserve pool.
3. Stake-for-Distributor: Refundable Admission Stakes and Retail-Floor Enforcement
With the card primitive in place, how can independent publishers, community nodes, and physical stores distribute branded cards without expensive, nonrefundable franchise fees?
The mechanism is Stake-for-Distributor, accessed through stakeForValueCardDistributor.

- Stake to qualify, with no sunk franchise fee. A distributor seeking to sell a brand's cards calls
stakeForValueCardDistributorand locks the required admission bond under its own account. That stake grants dedicated wholesale purchasing access without paying a nonrefundable franchise fee to the brand. - Issue on sale, with commission settlement and a
MAP_FLOOR_VIOLATIONsafeguard. Distributors do not need to stockpile unused cards. At the time of a retail sale,purchaseDedicatedValueCardWithRebateatomically creates the card, locks the customer's paid funds invalue-card-reserve, and settles the agreed distributor commission. The protocol checks the brand's minimum advertised or retail amount,minRetailPriceAbt. A transaction that tries to undercut it through a concealed buyer rebate triggersMAP_FLOOR_VIOLATIONand is rejected. - Recover the full bond on exit after pending obligations mature. Once the
ESCROW_MATURITYwindows for outstanding order commissions have elapsed, the distributor callsunstakeValueCardDistributor. The entire admission stake returns to the distributor's wallet.
4. VC-Composed Multi-Merchant Bundles and Coalition T-Point Redemption
Commerce rarely stops at one merchant. Combining FT-in-an-NFT-Policy-Shell with Verifiable Credentials (VCs) allows the design to extend individual cards into cross-brand bundles.

- Permissionless multi-merchant bundles through
composePermissionlessBundleValueCard. A distributor or coalition organizer can use signed VCs to combine independent cards, such as a coffee-chain card, a quarterly cloud-storage card, and a compute card, into one bundle NFT. The holder redeems the component cards with their respective merchants. Each merchant'svalue-card-reserveremains separate and settles independently; assembling the bundle does not merge its reserves. - Combined redemption with coalition
T-Pointcredits. Participating merchants can usemintCoalitionTPointandspendValueCardWithCoalitionTPointto combine prepaid-balance payment with fully reserve-backed coalition points in one atomic transaction: one signature, with real-time settlement across multiple ledgers.
Put Commercial Rules Into the State Machine
Stake-for-Card separates paid balances from promotional credits. Stake-for-Credit supplies a collateral slot for postpaid credit. Stake-for-Distributor replaces sunk admission fees with refundable stakes and enforces the configured retail floor through MAP_FLOOR_VIOLATION.
Together, they show why commercial balances need more than interchangeable units. An NFT policy shell can hold a precise fungible ledger while retaining the rules that govern its backing, redemption, refund, and settlement. Those rules let customers verify reserves and constrain how merchants and distributors can move them.
The final article in the Stake-for-X series examines Stake-for-Quality and Stake-for-Bridge: performance bonds and deterministic slashing for AI skill marketplaces and self-operated SubToken bridges.