Chainlink VRF subscription or direct funding?
Pick a subscription when you make many requests with callback limits set well above what the callback uses. Pick direct funding when each player should pay for their own request in the same transaction, or when your callback limit is tight. Direct funding prices the full callback limit plus a fixed overhead, but at the requester's gas price. A subscription pays for the gas the fulfilment actually used, at the gas price Chainlink's node paid, plus a 60% premium. On Base in the 24 hours to 2026-12-04, a consumer with a 150,000 callback limit paid 0.69 times what the same fulfilments cost the wrapper's subscription, and consumers with 500,000 and 900,000 limits paid 2.8 times.
Chainlink's own pages say only that direct funding has "higher gas overhead". The numbers below come from every Chainlink VRF v2.5 fulfilment on Base in that window and from the coordinator and wrapper configs on Base and Ronin. Sources are at the end.
What each method does
Subscription (VRFConsumerBaseV2Plus) | Direct funding (VRFV2PlusWrapperConsumerBase) | |
|---|---|---|
| Setup | Create a subscription, fund it in LINK or native, add each consumer (up to 100 per subscription) | None. The consumer holds the funds |
| Who pays | The subscription owner, from a prepaid balance | Whoever calls the consumer: it can forward msg.value from the player |
| When the price is set | At fulfilment | At request, returned by calculateRequestPriceNative |
| Gas price used | The fulfilment transaction's, set by Chainlink's node | The request transaction's, tx.gasprice |
| Gas charged | Gas the fulfilment used, plus gasAfterPaymentCalculation (42,500 on Base, 48,500 on Ronin) | Your full callback limit, plus coordinatorGasOverheadNative (128,500 on Base) and 435 per word, plus 13,400 not marked up |
| Premium | 60% in native, 50% in LINK, on both networks | The same 60% or 50%, applied by the wrapper |
| Unused callback gas | Not charged | Kept by the wrapper; no refund |
| Words per request | Up to 500 | Up to 10 on Base |
| Underfunded | The request waits up to 24 hours for a top-up, then Chainlink's nodes stop trying | The request reverts unless the consumer sends the full quote |
| Open request | Locks cancelSubscription, removeConsumer and migrate until it is fulfilled | Blocks nothing on your side |
What happens when a VRF request is never fulfilled covers the last two rows in detail, and When a VRF callback reverts covers what each method charges for a reverted callback: both charge.
What direct funding cost on Base, measured
Chainlink's Base coordinator fulfilled 1,929 requests in the 432,000 blocks to block 65,888,223 (24 hours ending 2026-12-04). 1,866 were subscription requests paid in ETH, from 9 subscriptions. 16 were subscription requests paid in LINK. 47 came through the wrapper, from 4 consumer contracts. Every fulfilment succeeded.
For each wrapper request, the table compares what the consumer sent the wrapper with what the coordinator then charged the wrapper's own subscription for that fulfilment. The second figure is what a subscription consumer with the same callback would have paid, plus the wrapper's own gas (configured at 13,400).
| Consumer callback limit | Requests | Consumer paid (median, wei) | Subscription charge (median, wei) | Paid ÷ charge, median (range) |
|---|---|---|---|---|
| 150,000 | 37 | 2,812,199,383,579 | 4,169,583,532,558 | 0.69 (0.41–1.14) |
| 1,600,000 | 8 | 16,726,046,769,184 | 14,465,693,567,276 | 1.18 (0.94–1.56) |
| 500,000 | 1 | 11,311,737,746,278 | 4,114,716,946,278 | 2.75 |
| 900,000 | 1 | 10,143,350,821,595 | 3,601,757,364,625 | 2.82 |
The 150,000-limit consumer paid less than a subscription would have in 35 of its 37 requests. Over all 47, consumers paid 0.000260 ETH and the coordinator charged the wrapper's subscription 0.000290 ETH, so the wrapper took in about 10% less than its fulfilments cost, and its subscription balance covered the difference.
Why: two different gas prices
Direct funding quotes at the gas price of your request transaction. On Base that is the base fee, 0.005 gwei, plus whatever tip your wallet adds: the median request paid 0.0060 gwei. A subscription is charged at the gas price of Chainlink's fulfilment transaction, and Chainlink's node tips more: the median fulfilment paid 0.0110 gwei on wrapper requests and 0.0116 gwei on subscription requests. That is 1.8 times the price the requests paid.
Against that, direct funding charges for gas that never runs. The 150,000-limit consumer was priced for 278,935 gas (limit, coordinator overhead, one word), while its fulfilments were charged about 221,000 gas. The overcharge in gas, 1.26 times, was smaller than the discount in price, 1.8 times, so direct funding came out cheaper. The 500,000 and 900,000-limit consumers were charged about 210,000 and 222,000 gas, so they paid for two to four times the gas they used, and the price discount could not make up for it.
As a rough rule for Base and one word per request, direct funding is cheaper when
callbackGasLimit + 128,935 < 1.8 × gas a subscription fulfilment is chargedand a subscription is cheaper otherwise. The 1.8 is the ratio between the two gas prices in this window. Check it on your chain before relying on it, because it moves with Chainlink's tip and with your wallet's.
Which to pick
- Players pay per request, or the price must be known before the request: direct funding. The quote is final, and the consumer can require
msg.valuefrom the player in the same call. - Tight callback limit, set from a measurement: direct funding is cheaper on Base, as above. How to set a VRF callback gas limit shows how to measure one.
- Generous or uncertain callback limit: a subscription, since it charges only the gas the callback used.
- More than 10 words per request: a subscription, or derive more values from one word: VRF seed to a number in a range shows how.
- Many consumer contracts under one budget: a subscription. Keep it above its minimum balance, because an underfunded request waits and then locks the subscription.
Moving a subscription consumer to direct funding
The request and the base contract change; the callback stays. From the coin flip tested in How to test a Chainlink VRF v2.5 consumer in Foundry:
- Inherit
VRFV2PlusWrapperConsumerBase(wrapper)instead ofVRFConsumerBaseV2Plus(coordinator). DropsubIdandkeyHash; the wrapper uses its own. - Replace
s_vrfCoordinator.requestRandomWords(...)withrequestRandomnessPayInNative(callbackGasLimit, confirmations, numWords, extraArgs). It quotes and pays in one call and returns(requestId, price). - Give the consumer a way to hold or receive ETH, such as
receive()or a payable request function. - Change
fulfillRandomWords(uint256, uint256[] calldata)to takeuint256[] memory.
function flip() external payable returns (uint256 requestId, uint256 price) {
(requestId, price) = requestRandomnessPayInNative(
callbackGasLimit, 3, 1, VRFV2PlusClient._argsToBytes(VRFV2PlusClient.ExtraArgsV1({nativePayment: true}))
);
playerOf[requestId] = msg.sender;
}Direct funding on Randoo
Randoo serves the direct-funding interface on Ronin, Base and Robinhood, at 0xC66eB2e7EE91145875000Ad46B55600000000001. A consumer built on VRFV2PlusWrapperConsumerBase runs on it when you change the wrapper address, as in Migrate from Chainlink VRF v2.5. Randoo has no subscriptions, so a VRFConsumerBaseV2Plus consumer needs the four changes above first.
The pricing differs from Chainlink's wrapper in one way that matters here. Randoo also prepays on the callback limit, but it bills the gas the fulfilment used, at the lower of your buffered gas price and the price its oracle paid, and refunds the rest to the consumer if it accepts ETH, or to the network treasury if it does not (Fees and failures). A generous limit costs nothing extra once the refund arrives. Pricing lists the service fee on each network.
Check the numbers yourself
The wrapper's quote at your own gas price, and the configs behind both methods on Base:
RPC=https://base-rpc.publicnode.com
WRAPPER=0xb0407dbe851f8318bd31404A49e658143C982F23
COORDINATOR=0xd5D517aBE5cF79B7e95eC98dB0f0277788aFF634
# Direct funding: price for a 150,000 limit and 1 word at the current gas price
cast call -r $RPC $WRAPPER "calculateRequestPriceNative(uint32,uint32)(uint256)" 150000 1 \
--gas-price $(cast gas-price -r $RPC)
# Wrapper overheads: wrapperGasOverhead, coordinatorGasOverheadNative, perWord, premiums, maxNumWords
cast call -r $RPC $WRAPPER "getConfig()(int256,uint32,uint32,uint32,uint32,uint32,uint32,uint16,uint8,uint8,bytes32,uint8)"
# Subscription: gasAfterPaymentCalculation and the native and LINK premiums
cast call -r $RPC $COORDINATOR "s_config()(uint16,uint32,bool,uint32,uint32,uint32,uint32,uint8,uint8)"On Ronin, read s_config() the same way on the coordinator address from Chainlink's supported networks page, with -r https://api.roninchain.com/rpc. It had no requests in the 48 hours to 2026-11-27, the last time we counted, so there is nothing on Ronin to measure.
Sources
- Every
RandomWordsRequestedandRandomWordsFulfilledevent of the Base coordinator from block 65,456,223 to 65,888,223, with each fulfilment's receipt. What each wrapper consumer paid is the wrapper's balance change in the request block; it matched the wrapper's pricing formula to the wei for 46 of 47 requests (the 47th shared its block with another request). getConfig()ands_config()read on 2026-12-04 at Base block 65,888,061 and Ronin block 64,449,703.VRFCoordinatorV2_5.solandVRFV2PlusWrapper.solin@chainlink/contracts1.5.0.- Chainlink's subscription and direct funding overviews and billing page, read 2026-12-04.
Updated 2026-12-04.