Unlock Guides

Back

Using a Custom Currency

Subscriptions, memberships, and event tickets created using Unlock Protocol can be priced in any currency that supports the ERC-20 token specification. This means that any subscription, membership, or event ticket can be priced in a stablecoin such as USDC, a community coin such as $DEGEN, or a memecoin such as $BOOMER.

For example, let’s walk through an example of an event using Unlock Protocol that wanted to price its onchain tickets using $DEGEN on Base.

The first thing the project would need to do would be to look up the contract address for the $DEGEN ERC-20 on Base. Looking up $DEGEN on Coingecko shows the contract address for $DEGEN is 0x4ed4e862860bed51a9570b96d89af5e1b0efefed.

The address can be double-checked by way of block explorers as well, in this case at https://basescan.org/address/0x4ed4e862860bed51a9570b96d89af5e1b0efefed.

Once the contract address of the ERC-20 currency is known, you can use the Unlock Labs dashboard to set the currency and price for the ticket.

In this instance, to set up a smart contract priced in $DEGEN with Unlock Protocol, the event organizer would deploy a smart contract on Base and use the $DEGEN ERC-20 for pricing using the $DEGEN token (0x4ed4e862860bed51a9570b96d89af5e1b0efefed). It will now show its price in $DEGEN.

Here’s what it looks like in practice. It takes about a minute to set up.

Once the smart contract has been updated, we can take a look at how it’s presented for subscribers or attendees who are making a purchase.

Head over to https://app.unlock-protocol.com/event/eth-galactic-2025-based for a live example.

The landing page shows $DEGEN as the method of payment, and the checkout flow for this event now shows $DEGEN as the way to pay for the ticket to this event.

This same approach can be used to price any Unlock Protocol powered subscription, membership, or ticket using any ERC-20 token.

Note: Pricing using ERC-20s is not limited to event tickets. Any type of onchain subscription, automatically recurring subscription, or membership can be priced using this approach using Unlock Protocol.

Was this article helpful?
YesNo

Table of Contents