Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

Mandate

Subscriptions and direct debit on native GNOT. A creator publishes a plan, such as 1 GNOT every week. A supporter signs one permission from their own wallet: at most this much, every period, through this realm only, until I cancel or it expires. The creator's collector then pulls each payment at the start of the period, and this realm checks who, how much and when before it forwards the coins.

The honest limits

  • It is direct debit, not escrow. Nothing is locked up front. A supporter can stop at any time, and a creator is only paid when a pull succeeds.
  • A hard cap the supporter sets. The chain never lets a pull take more than the session's spend limit per period: the plan's amount plus a fee allowance of 0.1 GNOT. A dishonest creator could at worst burn that allowance as network fees; they can never take more, or pull more often.
  • At most 16 mandates per wallet, because the chain allows 16 session keys per account.
  • Revoke any time. Revoking the session on chain stops every pull at once. The realm cannot see a revoke, so a mandate still shows here as active until it is cancelled or expires: how to stop a mandate.
  • One realm, nothing under it. A session for this realm also covers any realm deployed under its path, so nothing will ever be deployed there.
  • No admin, no pause, no upgrade. The realm never holds funds: each payment goes straight to the creator in the same transaction.

How to use it, with every command

Numbers

Plans Mandates ever recorded Payments Paid out
1 1 1 0.5 GNOT

Supporter pages

Plan Price Creator Payments this / last period All payments
#1 Test Plan 0.5 GNOT every 30 days g1x8lsau…3fv9 1 / 0 1

Only plans that someone has paid for are listed here. All plans, newest first


Built on gno.land · source code: github.com/elangrr/mandate