Allowances: Hot Wallets, Budgets, and Subscriptions
A spend limit has multiple uses. Obi Signet can assist in signature finalization for an authorized user if a spend limit abstraction rule applies.
Examples:
A customizable daily spend limit of $100 for the userβs primary Passkey, allowing easy quick signing on mobile device without needing to escalate to the whole x-of-n Multikey. This provides the added benefit of a βphishing shield,β where transactions such as minting and small sends should not trigger escalation, and escalation is a warning sign that the connected site is not acting as expected.
A budget of $1500 per month for a contractor. This does not need to be topped up or manually paid out, as the contractor has permission to spend (withdraw) this amount per month without needing additional action from the Obi Account.
A subscription of $20 per week. The provider account has permission to withdraw that amount per week. The user can cancel at any time, but otherwise does not need to take any regular action to keep the subscription.
Creating an Allowance in the User Interface
Party Members is coming to the obi.money interface soon.
Managing Allowances using CLI/Code
Manually: Retrieve your user account's state with the query
"{"gatekeeper_contracts": {}}
. Then, interact with the returneduser_state
contract address as follows:Adding a new allowance:
Querying current allowances (optionally for a particular address):
Removing an allowance (note that currently this will also remove any inheritance on the address):
Updating an allowance to double the limit:
Last updated