Building on Blocks
Anything that earns money can pay a block: trading fees, subscriptions, merch, ticket sales, sponsorships, games, apps, memberships, onchain or off. If your app or platform can choose where its fees go, point that address at a block's Jar and the block earns from it. There are two ways to do it.
Your app can be on any chain Blocks supports. A block's Jar is at the same address on each one, so you pay it the same way wherever your users are, and the Jar sends the block's share home. Jars are live on Robinhood and Base. Sending revenue home from another chain is coming soon. Read Bridging for how money comes home.
In short
- Find the block's Jar address and check the block is live.
- Pay the Jar directly, or pay a Forwarder that splits each receipt between the Jar and your own payees.
- Send any token. The Jar sorts it out.
- There is no SDK yet. Everything below is plain contract calls.
Option 1: pay the Jar directly
Use this when your app already splits revenue itself and wants to send the block's share.
Find the Jar
A block is identified by its home chain id and token address. Its Jar is at a predictable address. On the home chain, ask the lens:
address jar = IBlockLens(lens).jarOf(token);Check the block is live
The lens returns the block's kind. Pay Live and staking blocks.
IBlockLens.Kind kind = IBlockLens(lens).kindOf(token);
require(kind == IBlockLens.Kind.Live || kind == IBlockLens.Kind.Staking);Deposit
Approve the Jar and call deposit. The source is a label for attribution: your app's address. It earns nothing and changes no split.
IERC20(asset).approve(jar, amount);
IJar(jar).deposit(asset, amount, address(this));For native currency, pass the zero address as the asset and send the value:
IJar(jar).deposit{ value: amount }(address(0), amount, address(this));A plain transfer to the Jar also works. Anyone can then call IJar(jar).sync(asset) to route it. A plain transfer has no source label.
Option 2: use a Forwarder
Use this when your app cannot split revenue itself, for example a launchpad or a market with a single fee-recipient slot. A Forwarder is an immutable splitter: the agreed share goes to the block's Jar, the rest to your payees.
- a Forwarder has no owner and no setter. Its split is fixed in its address
- anyone can call forward on it, so an app cannot hold revenue back by doing nothing
- a plain Forwarder pays no protocol share. A partner Forwarder pays a fixed 20% of each receipt to the protocol's fee pool
- on the home chain, a Forwarder can also route part of the Jar's share to the block's creator payout
Choose the configuration
homeChainIdandtokenidentify the blockjarBpsis the share of each receipt that goes to the Jar, in basis points. 10,000 is 100%creatorBpsis the share of the Jar's allocation that goes to the creator payout. Zero sends it all to the Jar. Home chain onlysourceis your attribution labelpartneris true for the 20% protocol share, false for none- payees and weights: 1 to 16 addresses with weights summing to 10,000. Leave both empty only when
jarBpsis 10,000
Create it
IForwarderFactory.Config memory config = IForwarderFactory.Config({
homeChainId: 4663,
token: blockToken,
jarBps: 5_000,
creatorBps: 0,
source: address(this),
partner: false
});
address forwarder = IForwarderFactory(factory).create(config, payees, weights);predict with the same inputs returns the address before it exists. Creating it twice returns the same address.
What happens next
For a block with no custom Policy:
- BUX, and dollars wrapped into BUX, reach the vault and are booked as backing, less the work fee
- tokens the vault keeps are pushed to the vault and booked
- other tokens are sold for BUX by the protocol's falling-price auction, and the BUX is booked
With a custom Policy, BUX and kept tokens wait at the Jar to be collected for the Policy instead. For a staking block, the wrapped token and BUX follow its fixed buyback Policy and reach bToken holders as revenue. The block's own token, sent to its home Jar or Forwarder, is consumed in full. A block burns it; a staking block locks it as profit.
Every receipt emits BlockRevenue(homeChainId, token, asset, gross, source). Indexers and the block's page use it to show where money came from.
Do not pay these addresses
- a staking block's config, returned by
vaultOf. It has no custody and no recovery. Pay the Jar - a block's vault with a token it does not keep. Pay the Jar
- any hook, factory, settings or sale contract. A transfer to a sale is not a commitment
Limits
- the Jar charges nothing. The vault charges the work fee (1% currently) when it books
- a Forwarder's
creatorBpsmust be zero on chains other than the block's home - the protocol never rebates fees to a source. Attribution is a label
For developers
The public interface promised never to break:
- the block identity: home chain id and token address
Jar.deposit(asset, amount, source),Jar.sync(asset), payableJar.bridgeHome(amount), and the readsfactory,homeChainId,token,inventory,policyClaimable,homeBound,accountedForwarderFactory.createandpredict- the
BlockRevenueevent - the
BlockVaultreads listed on the Vaults page
BlockLens is a home-chain contract. On other chains, derive the Jar from the home identity through that chain's JarFactory.predict(homeChainId, token). Contract addresses are on the contracts page.
Next
- Jars for how the Jar sorts what arrives
- Keepers and auctions for the jobs that move your revenue on, and how to run them yourself
- Contracts for addresses and roles
- Protocol fees for what your revenue pays on the way in