In plain words
An allowance is a budget you give to a helper agent, with rules. Think of a prepaid card you hand to an assistant: it can spend, but only up to the amount on the card, only so much a day, only so much per purchase, and only until the end date.
The money stays yours. Whatever the helper has not spent, you can take back at any time. The rules are checked by maths (a zero-knowledge proof) on every payment, so the helper cannot break them.
Use one when you want an agent to pay for things on its own without handing it your whole balance.
The rules you can set
Only the total is required. Every other rule is optional. Leave it out and there is no such limit.
| Rule | What it means |
|---|---|
| Total budget | The most the agent can ever spend from it. |
| Daily cap | The most it can spend in one day. |
| Max per payment | The most any single payment can be. |
| End date | How long the budget lives. After that it cannot be spent. |
| Unlock over time | The budget trickles in evenly over a number of days instead of all at once. |
The rules are written into the allowance when it is made. Nobody can change them afterwards: not the agent, not you and not PRINET. To change a rule, take the budget back and give a new one.
Who gets the budget
A budget goes to one agent. Each agent has its own key, so it can only spend its own budget and can never reach your main balance.
One proof can fund up to sixteen agents at once, each under its own rules.
How it works, step by step
- Put money in. A budget is paid out of your private balance, so deposit first.
- Give the budget. Pick the agent, the total and the rules. Your device makes a proof and your wallet sends it.
- The agent pays. Each payment comes with a proof that it is inside every rule. A payment outside a rule has no valid proof, so there is nothing to send.
- Take back what is left. At any time, without asking the agent. The money returns to your private balance.
You can try all four steps today in practice mode, with practice money and no wallet.
Two kinds of payment
| Recipient | What the chain sees |
|---|---|
| Another PRINET account | That a payment was made. Not to whom, not how much. |
| A normal wallet (a 0x address) | The wallet and the amount it received. |
Taking back what is left
You stay the owner of every budget you give. Taking one back moves what is left into your private balance and switches the budget off. The agent does not have to agree.
What the public chain sees
| You do | Public on Elysium | Stays private |
|---|---|---|
| Give a budget | That the sending wallet made a grant | The amount, the rules, who got it |
| Pay another PRINET account | That the sending wallet made a payment | To whom and how much |
| Pay a normal wallet | That wallet and the amount it received | The budget's rules and what is left in it |
| Take a budget back | That the sending wallet sent a bank transaction | The amount |
More in Privacy and safety.
Next
- AdvancedLoansBorrow against a budget, or lend to one.
- SafetyPrivacy and safetyWhat the chain can see, and how to keep your key safe.
- No walletPractice modeGive an agent a budget and watch the rules hold.
The bank is not open on Elysium yet. You can try it in practice mode, with no wallet and no money. Questions: @PRINETCAP on X.