Live on X Layer mainnet. Open source. Every rule is checked again each time money moves.
How it works
1
Pick a rule
Like "everyone pays, then one person gets the pot, in turn." You read it in plain words.
2
We prove it
The rule is checked against every possible case, so it can't hide a trick.
3
Locked for good
It goes on X Layer. After that nobody can change it, and the money follows the rule automatically.
What these words mean
Rule
A small program on the blockchain that decides when money can move. You read it in plain words, and nobody can change it after it is locked.
Circle
A group saving plan. Everyone pays the same amount each round, and the whole pot goes to one member per round, in turn.
Payroll
Pay for a team, released automatically at the end of each cycle by a public rule.
Step
The unit a wallet limit is counted in. If one step is 5 USDC, a limit of 10 steps means 50 USDC.
Proof
A check that the rule behaves correctly for every possible case before it is locked.
USDC
A digital dollar. One USDC is worth one US dollar.
X Layer
The blockchain where Bylaw rules live. It is run by OKX.
Gas (OKB)
A small network fee, paid in OKB, to record something on X Layer.
Wallet address
Your public account number. It starts with 0x. Anyone can send money to it, but only you can spend from it.
What you can do with Bylaw
Tap one to read the full guide: what it is for, the steps, and what to check. You do not need to leave this page.
Savings Circle
A savings circle (also called a rotating savings group) lets friends, family or a team save together. Every member pays the same amount each round, and the whole pot goes to one member per round until everyone has had a turn. Fee: 1% of each payout.
Where it fits
A group that wants to save toward a goal without trusting one person to hold the money.
Friends or colleagues who each need a lump sum at a different time.
A small business group pooling money for equipment, rent or stock.
How to set it up, step by step
Open Savings Circle and connect your wallet. The wallet you create from only pays the network fee. It is a member only if you list it.
Name the circle and add every member: a name and a wallet address for each. A circle has 2 to 15 members.
Choose how much each member pays per round in USDC, and how long each round lasts in minutes, hours, days, weeks, months or years. A month counts as 30 days and a year as 365 days.
Press Review and read the sentence it shows. It says who pays what and who receives the pot in which round.
Tick the box and create it. Your wallet shows a popup. Read it and confirm.
Send the circle link to every member.
Each round, every member allows USDC and presses Pay. When the round is over and everyone has paid, anyone can press the payout button and the pot goes to the member whose turn it is.
What you can choose
How many members (2 to 15), how much each pays per round, and how long a round lasts.
The order of payouts. It follows your member list, so list people in the order you agreed.
The pot each round is the amount per person times the number of members.
Round length is how long each round lasts. It is not how long a link stays valid. Links never expire and nothing renews by itself.
The clock starts the moment the circle is created. Every round ends one round length after the previous one, and nobody can pause or restart it. Choose a length that gives everyone enough time to pay.
What to check before you confirm
Every wallet address, one by one. A wrong address cannot be fixed after the circle is created.
That each member holds enough USDC on X Layer for every round, plus a little OKB for network fees.
That the order of the list is the order you want for payouts.
That every member has agreed to the amount and the round length.
If something goes wrong
If someone has not paid a week after the round ends, anyone can close the circle, and members who already paid into that round take their money back.
If a payout is stuck for 30 days, anyone can close the circle and the same refund applies.
Nobody, including you, can change the rule, take the pot or skip a member.
Payroll lets a business, studio or creator lock a team's pay once. At the end of each cycle the rule releases every worker's share, and no one can redirect it. Fee: 1%, paid on top when you fund it.
Where it fits
Contractors and creators who want proof that their pay is already set aside.
Small teams paid weekly, monthly or on any cycle you choose.
Employers who want to show workers that the money is locked, not just promised.
How to set it up, step by step
Open Payroll. The first part is the organization. The wallet shown there is the employer and pays the money. Switch account if it is the wrong one.
Name the payroll after your organization or the pay period.
Add each worker: a name, a wallet address and the USDC they get each cycle. You can add 1 to 20 workers, each with their own amount.
Choose how long a cycle lasts (minutes, hours, days, weeks, months or years) and how many cycles there are (1 to 15). A month counts as 30 days and a year as 365 days.
Press Review. The sentence shows the total you will lock, plus the 1% fee.
Tick the box and create it. Your wallet shows a popup. Read it and confirm.
Open the link it gives you and fund it in two steps: allow the USDC, then fund. The clock starts when you fund.
At the end of each cycle, anyone presses Release for a worker. The money always goes to that worker.
What you can choose
The workers, and a different amount for each one.
How long each cycle is (minutes up to years), and how many cycles to run. A cycle is not a link validity period, and nothing renews by itself.
The clock starts when you fund the payroll, not when you create it. Each cycle ends one cycle length after the last.
The total you lock is every worker's pay added up, times the number of cycles, plus the 1% fee.
What to check before you confirm
That the paying wallet at the top is the organization wallet, and not one of the workers.
Every worker address and amount. A wrong address cannot be fixed after creation.
That the paying wallet holds the full total plus the fee in USDC, and a little OKB for network fees.
That your workers have the link, so they can see the schedule.
If something goes wrong
The terms cannot be edited. If an address was wrong, create a new payroll before you fund the old one.
After funding, nobody, including the employer, can redirect pay. Money that was never released returns to the employer only 90 days after the last cycle.
Escrow is for hiring someone or buying something when both sides want protection. The buyer locks the full amount once, and the rule pays the seller in installments. Fee: 1%, paid by the buyer when locking.
Where it fits
Freelance work such as videos, design or writing, paid as each piece is delivered.
Buying a service in stages, or with one payment on a due date.
Any deal between two people where neither wants to pay first or work first.
How to set it up, step by step
Open Escrow. The wallet shown at the top is the buyer, the one who pays.
Name the deal and enter the seller's wallet address.
Choose the amount per payment, how often (once, every week, every 2 weeks or every 30 days) and how many payments, up to 24. For a single payment, choose when it is due.
Optionally name a referee: a neutral wallet both sides trust. The referee must be a third wallet.
Write the terms in plain words. Both sides read the same text, and its fingerprint is saved in the contract.
Review, tick the box, create it, and confirm in your wallet.
Send the link to the seller. The seller reads the terms and accepts with their wallet.
Then the buyer locks the full amount plus the 1% fee once, and the clock starts.
For each installment the buyer can approve it, and it is paid right away. If the buyer does nothing, it is paid automatically 3 days after it is due.
What you can choose
The amount, the schedule and the number of payments.
Whether to name a referee. Without one, there is no hold or dispute step.
If a referee was named, the buyer can put one installment on hold before its 3-day window ends. The referee then decides: pay the seller or return it to the buyer.
What to check before you confirm
The seller's wallet address, letter by letter.
The amounts and the number of payments, and the total you will lock.
That the terms say exactly what must be delivered for each payment.
That the referee, if any, is truly neutral and trusted by both sides.
That the buyer wallet holds the total plus the fee in USDC, and a little OKB for network fees.
If something goes wrong
The seller can always hand an installment back to the buyer.
Nobody else can move the money, not even Bylaw.
The terms cannot be edited. If both sides want different terms, create a new agreement.
A Bylaw Wallet is a separate wallet that holds USDC and sends it only when a public rule says yes. Even if your key is stolen, a thief can only do what the rule allows. Fee: 0.1% on sends.
Where it fits
Keeping savings or a team budget away from your everyday wallet.
Protecting against copied-address scams, because new recipients are held back.
Limiting what an assistant or an automated tool that uses the owner key can spend.
What you can choose
Daily cap: the wallet can send at most the limit you set each day, in total. Anything over is refused.
Trusted recipients: a saved recipient becomes trusted after 2 days, or after your waiting time if that is longer, and can then be paid any amount. A brand-new recipient can only get small amounts, and only after the waiting time.
Confirm above: payments up to your limit go straight through. Above it, a second person you name must confirm before the owner can send.
How to set it up, step by step
Open Bylaw Wallet. The wallet shown at the top becomes the owner, the only one who can send.
Name the wallet and pick one of the three rules.
Pick a step size (1, 5, 10 or 100 USDC) and a limit counted in steps, from 1 to 63. For example, 50 steps of 1 USDC is 50 USDC.
For trusted recipients, set the waiting time in hours. For confirm above, enter the wallet address of the second person.
Review, tick the box, create it, and confirm in your wallet.
Send USDC to the new wallet's address. Send only USDC. Other tokens sent there by mistake cannot be taken out.
To pay someone, use the send form. The rule checks every payment. The recipient gets the full amount, and the 0.1% fee is taken on top from the wallet balance.
What to check before you confirm
That you picked the right rule and the limit in USDC is what you meant.
For confirm above, that the second person is a different wallet and a different person from you.
Try one small send first to see how it behaves.
Keep the owner key safe. The rule limits a thief, but the owner key still controls what the rule allows.
If something goes wrong
The rule cannot be changed after the wallet is created.
The only way around the rule: if the public rule itself was changed on X Layer, the owner can move everything out so the money is not stuck forever.
Nobody at Bylaw can move, pause or recover the money.
Rule Lab shows how a rule is built from tiny logic gates, tests it against every possible case, and says the same rule in plain words. It is the place to learn how Bylaw works.
Where it fits
Learning how a money rule becomes a circuit before you trust it.
Showing a partner, an investor or a community how the rules are checked.
Checking that a rule says what you think it says.
How to set it up, step by step
Open Rule Lab and choose a rule.
Fill in the numbers and read the rule in plain words.
Look at the gates it is built from. Every rule is made only of NAND gates.
Open the technical proof to see the certificate showing the circuit matches the rule on every possible case.
What to check before you confirm
That the plain-words sentence matches what you mean. The proof shows the circuit matches the rule you read, but it cannot tell whether the rule is what you meant.
That the circuit number and processor address match what the contracts use.
Your money sits in a contract on X Layer, not with us. The rule is locked and is checked again on every payment. Bylaw is live on X Layer mainnet. There are no admin keys, no pause switch and no upgrades, and the source is public and verified. An independent audit is still to come.
Who holds the money?
The contract does. Nobody at Bylaw can move it, pause it or change the rule. The organizer of a circle cannot take the pot either.
Can a rule be changed after it is created?
No. Once a rule is locked, nobody can edit it. If something needs to change, you create a new one.
What does it cost?
Circles, payroll and escrow take a 1% fee. Wallet sends take 0.1%. You also pay a small network fee in OKB each time something is recorded on X Layer.
What do I need to use it?
A crypto wallet (such as OKX Wallet or MetaMask), some USDC on X Layer, and a little OKB for network fees.
What is TapeOut?
TapeOut is the rule processor on X Layer. Each Bylaw rule is a small logic circuit stored there, and the contracts ask it for the answer before any money moves.
Can I read the code?
Yes. Everything is open source on GitHub, and the contract code can be checked against what is live.
Find your circle or payroll
Paste the address or link someone shared with you. Your own circles and payrolls on this device are listed below.
Set it up once, in plain words. After you create it, nobody can change it, not even you.
Creating walletNot connected yet. You can fill in the form first and connect before you create.This wallet only pays the network gas to create the circle. It is a member only if you list it below.
2 to 15 members. Use the ✕ to remove a row.
Everyone pays during a round. When the round ends and everyone has paid, the pot goes to the next member and the next round begins. The links never expire, and nothing renews by itself. The clock starts the moment the circle is created, so each round ends exactly one round length after the last, and nobody can pause or restart it.
A month is counted as 30 days and a year as 365 days.
Creating the circle costs a small amount of OKB for network gas. This cannot be undone or edited later.
Set it once, then it is locked. Choose your workers, what each is paid per cycle, how often, and for how many cycles. You put in the full amount one time. Each worker's pay is released at the end of each cycle by a public rule. Nobody can change it, not even you. Anything the workers never claim can come back to you only 90 days after the last cycle.
1. The organization (pays the money)
Paying wallet (the organization)Not connected yet. You can fill in the form first and connect before you create.This wallet puts in the money and is the employer. It is not a worker unless you also add it below.
2. The workers (get paid)
1 to 20 workers. Use the ✕ to remove a row.
Pay for a cycle is released when that cycle ends. The clock starts when you fund the payroll, not when you create it, and nothing renews by itself.
A month is counted as 30 days and a year as 365 days.
One of your workers uses the same wallet as the paying wallet, so you would be paying yourself. Check the addresses.
Creating costs a little OKB for gas. After creating, you fund it in a second step. Terms can never be edited.
Escrow (agreements)
Your agreement
1. Seller accepts2. Buyer locks the money3. Payments are released
For paying a creator, hiring someone or buying something. The buyer locks the full amount once, and it is paid out in installments by a public rule: when the buyer approves each one, or automatically when it is due. Nobody can take the money back, and the buyer can hold one installment at a time if a referee was named.
Buyer wallet (you, the one who pays)Not connected yet. You can fill in the form first and connect before you create.This wallet locks the money. The seller is the other wallet you enter below.
Creating it costs a small amount of OKB for network gas. The terms are fixed after this. Send the link to the seller so they can accept.
Bylaw Wallet
Your Bylaw Wallet
You are connected, but this wallet belongs to someone else. You can add money or confirm payments if you are the chosen second person.
Send money
Above your limit, this creates a request that the second person must confirm first.
A saved recipient becomes trusted after 2 days, or after the waiting time if that is longer.
A wallet that holds USDC and only sends it when a public rule says yes. Even if your key is stolen, it can only do what the rule allows. You choose the rule once and it is locked. Live on X Layer mainnet. Audit pending.
Owner wallet (you)Not connected yet. You can fill in the form first and connect before you create.This wallet will own the new Bylaw Wallet and is the only one that can send from it.
Creating costs a little OKB for network gas. Limits are counted in whole steps, from 1 to 63 steps. The rule cannot be edited after creation.
Rule lab
Pick a rule to see what it does. Every rule is checked against all possible cases before it is locked.
Show the technical proof
Proof certificate
Circuit (), ready to tape out on X Layer
Developer notes
ChainX Layer, id 196Processor0x526b96238cc418d909005e2e2d79e327da4bd0f7 (TapeOut My 4004 #29)Circuits#6 circle (58 NAND), #7 payroll, #8 confirm-above, #9 trusted-or-small, #10 daily cap (wallet rules)CircleBylawCircle: ownerless, stores keccak256(netlist), rechecks on every payout, fee fixed at creation (max 1%)Sourcegithub.com/cloverjat/bylaw