Feeless Transactions for Developers
VinuChain is determinably feeless: eligible wallets get their gas fees refunded after a transaction is mined. This page is the developer-facing guide to integrating with that system — the Payback/Quota contract, the staking interface, the on-chain refund signal, and the vc_ RPC namespace — with a copy-paste end-to-end example you can run against mainnet (or testnet).
"Feeless" means refunded, not zero-charge. A Payback-eligible transaction still debits the sender's balance for
gasUsed × gasPricewhen it executes, exactly like any EVM transaction. The protocol then credits a separatefeeRefundback to the sender in the same state transition. The net cost is zero (or partial) after the refund, but the wallet must hold enough balance to pay the gas up front. Code that assumes a literal zero-cost transaction (e.g. estimating withgasPrice: 0) will not work — send a normal transaction and read the refund from the receipt.
How the refund works
The refund is computed and applied by the node during block processing (evmcore/state_transition.go), not by a smart contract call you make. The flow for a refunded transaction is:
The sender's wallet must have at least
minStake()VC staked into the Payback/Quota contract (directly, or viastakeFor).When the transaction executes, the node looks up the wallet's currently available Payback quota (an amount denominated in wei).
The fee
gasUsed × gasPriceis charged as usual, then afeeRefundofmin(fee, availableQuota)is added back to the sender's balance.The granted
feeRefundis recorded on the transaction receipt.
If the wallet's available quota is 0 (not staked, below minStake(), or quota already exhausted for the period), feeRefund is 0x0 and the transaction simply pays normal gas. If the quota is smaller than the fee, the refund is partial.
Congestion guard. When network demand pushes the EIP-1559 base fee above the chain-configured floor, the node suppresses Payback refunds so fee escalation can still deter spam (
refundGasinevmcore/state_transition.go). Under congestion an otherwise-eligible transaction can returnfeeRefund: 0x0. This is expected behavior, not a failure.
Eligibility: staking for Payback
The minimum stake
A wallet only becomes refund-eligible once its Payback stake reaches the contract's minStake(). On mainnet the active Quota contract's minStake() is 10 VC; on the testnet QuotaContract V2 it is 1000 VC. The value is owner-configurable via setMinStake(uint256), so always read it from the contract rather than hard-coding it. Below the minimum, transactions pay normal gas and show feeRefund: 0x0.
Quota is dynamic (anti-spam)
The Payback quota a wallet accrues is not a flat per-stake allowance — it scales with the wallet's share of total stake and with elapsed time, and shrinks as the total Payback stake across all users grows. In practice (see Staking → Overview):
The more VC a single wallet stakes for Payback, the larger its quota.
The more VC staked for Payback in total by everyone, the smaller each wallet's share.
minStake()is only an eligibility floor, not an automatic spam throttle. Each refunded transaction consumes that wallet's available quota. Once exhausted, later transactions pay normal gas and receive a partial refund orfeeRefund: 0x0until quota accrues again.
You can read a wallet's current available quota directly with the vc_getPaybackBalance RPC method (below) — it returns the wei amount the node would use as the refund cap for that wallet's next transaction.
The Payback / Quota contract
Active Quota contract
0x5D989A2d65d049e2198D91d8ddc31C918f2544AB (PaybackV2)
0x89D1cBD9DEAaB4dFf6f800a336FBDd9A5c6829e4 (PaybackV2)
Chain ID
207
206
RPC
https://rpc.vinuchain.org
https://testnet-rpc.vinuchain.org
Feeless transactions are live on both networks, and both now run
QuotaContractV2, which adds receiver-funded staking (stakeFor/unstakeFor). Mainnet switched at the ELEMONTPaybackV2seal on 2026-08-29.If you staked on the old mainnet proxy, your stake no longer earns fee refunds. It remains withdrawable and must be migrated to V2 — see the migration steps.
Confirm the address the node is actually enforcing at any time with
vc_getRules("latest")→Economy.QuotaCacheAddress(see below).
Getting the ABI
The canonical ABIs are published in the ecosystem registry Vinuchain-Lists under contracts/vinuchain/ — QuotaContractV2_abi.json for the active Quota contract on both networks, and QuotaContract_abi.json for the retired V1 proxies (with matching .sol sources). The node calls the same core methods on both, so the inline minimal ABI in the example below is enough to get started.
Staking interface
The Quota contract exposes the following developer-facing functions (the node recognizes stake(), stakeFor(address), unstake(uint256), and unstakeFor(address,uint256) as Payback-staking transactions). The core self-staking functions (stake/unstake/withdrawStake) and the receiver-funded stakeFor/unstakeFor pair all work on both networks, since mainnet and testnet both run QuotaContractV2:
Stake for yourself
stake() payable
Credits msg.sender; msg.value is the staked VC. Both networks.
Stake for another wallet
stakeFor(address delegator) payable
Both networks (V2). msg.sender funds and keeps withdrawal ownership; delegator receives the Payback quota credit.
Unstake your own stake
unstake(uint256 amount) → uint256 wrID
Opens a withdrawal request; funds unlock after holdTime(). Both networks.
Unstake third-party-funded stake
unstakeFor(address delegator, uint256 amount) → uint256 wrID
Both networks (V2). Only the funding wallet (the original stakeFor caller) may call this for that delegator.
Complete a withdrawal
withdrawStake(uint256 wrID)
Callable once block.timestamp ≥ unlockTime. Both networks.
Read-only views used by the node and useful to dapps: minStake(), getStake(address), totalStake(), quotaFactor(), feeRefundBlockCount(), holdTime().
stakeForownership (V2, both networks). WithstakeFor(receiver), the funding wallet supplies the VC and is the only party that can withdraw it (viaunstakeFor(receiver, amount)). The receiver gets the Payback quota for transactions it signs but has no claim on the staked principal. This lets a sponsor underwrite a user's gas without handing over funds.
The feeRefund receipt field
When a transaction receives a Payback refund, the node adds a feeRefund field (a hex-encoded wei amount) to the transaction receipt. Read it with the standard eth_getTransactionReceipt:
A non-zero
feeRefund(e.g.0x...) is the wei amount that was credited back to the sender.feeRefundis absent or0x0when no refund was granted (wallet not eligible, quota exhausted, or refunds suppressed under congestion).
The field is also surfaced on eth_getTransactionByHash for the same transaction.
The vc_ RPC namespace
VinuChain mirrors the standard eth_ JSON-RPC namespace under a branded vc_ namespace and adds Payback-specific methods. The methods relevant to feeless integration:
vc_getRules(blockTag)
Returns the active network rules for the epoch. result.Economy.QuotaCacheAddress is the Payback contract the node is currently enforcing; result.NetworkID is the chain ID.
vc_getPaybackBalance(address, blockTag)
Returns the wallet's currently available Payback quota in wei (the refund cap for its next transaction). 0x0 for ineligible wallets. Rate-limited per node.
The vc namespace mirrors the core Ethereum RPC services for branding, so the common read/transaction methods are available under vc_ as well (e.g. vc_chainId, vc_getBalance, vc_getTransactionReceipt, vc_sendRawTransaction). It is not a complete alias of every eth_ method — namespaced extras such as the filter/subscription methods (eth_newFilter, eth_getLogs, eth_subscribe) are only registered under eth, so their vc_ forms return method-not-found. For normal tooling just use the standard eth_ methods; reach for vc_ specifically for vc_getRules and vc_getPaybackBalance.
Verify the active contract and chain ID live:
End-to-end example (ethers.js, mainnet)
This script stakes the minimum for Payback, waits for the quota to accrue, sends an ordinary transaction, and reads the feeRefund from its receipt — all against mainnet at https://rpc.vinuchain.org (chain 207).
Prerequisites
Node 18+ and
ethersv6:npm i ethers@6A funded mainnet key with more than
minStake()VC plus gas headroom (≈ 11 VC).Run with
PRIVATE_KEY=0x... node feeless.mjs— never hard-code keys.To run against testnet instead, swap in
https://testnet-rpc.vinuchain.org, the testnet QuotaContractV20x89D1cBD9DEAaB4dFf6f800a336FBDd9A5c6829e4, chain206, and itsminStakeof 1000 VC (request testnet VC in the VinuChain Discord).
Expected first-run output (abridged) once quota has accrued:
FAQ
Why was my refund only partial? The refund is capped at the wallet's available quota: min(fee, quota). If the quota is smaller than gasUsed × gasPrice, you get a partial refund. Quota also shrinks as total network-wide Payback stake grows.
I staked but feeRefund is 0x0 — why? Most commonly: (1) your stake hasn't reached minStake(); (2) quota hasn't accrued yet (it grows with elapsed time since your stake — poll vc_getPaybackBalance); (3) you've already consumed your quota; or (4) the network is congested and refunds are suppressed.
Who owns funds staked with stakeFor? The funding wallet (the stakeFor caller) keeps ownership and is the only party that can withdraw, via unstakeFor(receiver, amount). The receiver only gets the Payback quota for transactions it signs.
Can I send a transaction with gasPrice: 0? No. Payback is a refund, not a fee waiver — the wallet must pay gas up front and is reimbursed afterward. Send a normal transaction and read the refund from the receipt.
See also
Staking → Overview — the staking model and quota semantics in user terms.
Network Details — canonical chain IDs, RPCs, and the active Quota contract address.
Whitepaper → Quota System — the theory and original quota formulas, with an implementation note mapping them to the shipped Payback model.
Last updated