Skip to main content
Research Preview — Code snippets need testing against actual implementation.

Build a Local Currency

Create a local currency that can only be traded by people physically in a specific region — enabling hyperlocal economies.
About location verification: This guide uses GPS coordinates as input. GPS is spoofable. We’re working on Location Proof plugins that will replace getCurrentLocation for stronger verification — these are still in development.

Concept

Imagine a “Berlin Token” (BLN) that:
  • Can only be minted by people present in Berlin
  • Can only be transferred to people currently in Berlin
  • Creates a true local currency for the city
For more on the economic theory behind spatially-restricted currencies, see Spatial Demurrage.

Step 1: Define the Region


Step 2: The Token Contract


Step 3: SDK Integration


Alternative: Simpler Transfer Gate

For a simpler implementation, gate transfers directly:

Use Cases

Neighborhood Currency

Local money that stays in the community

Tourism Credits

Tokens only spendable within city limits

Regional Stablecoins

Pegged currencies for specific regions

Event Tokens

Festival/conference currency

Next: Delivery Verification

Build an escrow with location verification