{"id":1808,"date":"2022-06-27T13:20:49","date_gmt":"2022-06-27T13:20:49","guid":{"rendered":"https:\/\/unlock-guides.flywheelstaging.com\/?p=1808"},"modified":"2024-06-28T23:22:28","modified_gmt":"2024-06-28T23:22:28","slug":"using-a-custom-currency","status":"publish","type":"post","link":"https:\/\/unlock-protocol.com\/guides\/using-a-custom-currency\/","title":{"rendered":"Using a Custom Currency"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, let&#8217;s walk through an example of an event using Unlock Protocol that wanted to price its onchain tickets using $DEGEN on Base.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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 <code>0x4ed4e862860bed51a9570b96d89af5e1b0efefed<\/code>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img fetchpriority=\"high\" decoding=\"async\" width=\"932\" height=\"960\" src=\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2024\/06\/degen-base-coingecko.png\" alt=\"\" class=\"wp-image-4427\" style=\"width:539px;height:auto\" srcset=\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2024\/06\/degen-base-coingecko.png 932w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2024\/06\/degen-base-coingecko-291x300.png 291w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2024\/06\/degen-base-coingecko-768x791.png 768w\" sizes=\"(max-width: 932px) 100vw, 932px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The address can be double-checked by way of block explorers as well, in this case at <a href=\"https:\/\/basescan.org\/address\/0x4ed4e862860bed51a9570b96d89af5e1b0efefed\">https:\/\/basescan.org\/address\/0x4ed4e862860bed51a9570b96d89af5e1b0efefed<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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 (<a href=\"https:\/\/basescan.org\/token\/0x4ed4e862860bed51a9570b96d89af5e1b0efefed\" target=\"_blank\" rel=\"noreferrer noopener\">0x4ed4e862860bed51a9570b96d89af5e1b0efefed<\/a>). It will now show its price in $DEGEN.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here\u2019s what it looks like in practice. It takes about a minute to set up.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Pricing Smart Contracts in DEGEN with Unlock Protocol\" width=\"800\" height=\"600\" src=\"https:\/\/www.youtube.com\/embed\/oYBhRZE6CSA?feature=oembed&#038;enablejsapi=1&#038;origin=https:\/\/unlock-protocol.com\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once the smart contract has been updated, we can take a look at how it\u2019s presented for subscribers or attendees who are making a purchase.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Head over to <a href=\"https:\/\/app.unlock-protocol.com\/event\/eth-galactic-2025-based\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/app.unlock-protocol.com\/event\/eth-galactic-2025-based<\/a> for a live example.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"723\" src=\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2024\/06\/eth-galactic-degen-1024x723.jpeg\" alt=\"\" class=\"wp-image-4428\" srcset=\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2024\/06\/eth-galactic-degen-1024x723.jpeg 1024w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2024\/06\/eth-galactic-degen-300x212.jpeg 300w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2024\/06\/eth-galactic-degen-768x542.jpeg 768w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2024\/06\/eth-galactic-degen-1536x1084.jpeg 1536w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2024\/06\/eth-galactic-degen.jpeg 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"717\" src=\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2024\/06\/degen-checkout-1024x717.jpeg\" alt=\"\" class=\"wp-image-4429\" srcset=\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2024\/06\/degen-checkout-1024x717.jpeg 1024w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2024\/06\/degen-checkout-300x210.jpeg 300w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2024\/06\/degen-checkout-768x538.jpeg 768w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2024\/06\/degen-checkout-1536x1076.jpeg 1536w, https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2024\/06\/degen-checkout.jpeg 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This same approach can be used to price any Unlock Protocol powered subscription, membership, or ticket using any ERC-20 token.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Note:<\/em><\/strong><em> Pricing using ERC-20s is <\/em><strong><em>not<\/em><\/strong><em> limited to event tickets. Any type of onchain subscription, automatically recurring subscription, or membership can be priced using this approach using Unlock Protocol.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;s walk [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":2306,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[44,13],"tags":[48,49],"class_list":["post-1808","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-basics","category-selling","tag-currency","tag-payment"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using a Custom Currency - Unlock Guides<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unlock-protocol.com\/guides\/using-a-custom-currency\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using a Custom Currency - Unlock Guides\" \/>\n<meta property=\"og:description\" content=\"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&#8217;s walk [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unlock-protocol.com\/guides\/using-a-custom-currency\/\" \/>\n<meta property=\"og:site_name\" content=\"Unlock Guides\" \/>\n<meta property=\"article:published_time\" content=\"2022-06-27T13:20:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-28T23:22:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/06\/custom-currency.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1800\" \/>\n\t<meta property=\"og:image:height\" content=\"1200\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Unlock Labs\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Unlock Labs\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/unlock-protocol.com\/guides\/using-a-custom-currency\/\",\"url\":\"https:\/\/unlock-protocol.com\/guides\/using-a-custom-currency\/\",\"name\":\"Using a Custom Currency - Unlock Guides\",\"isPartOf\":{\"@id\":\"https:\/\/unlock-protocol.com\/guides\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/unlock-protocol.com\/guides\/using-a-custom-currency\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/unlock-protocol.com\/guides\/using-a-custom-currency\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/06\/custom-currency.png\",\"datePublished\":\"2022-06-27T13:20:49+00:00\",\"dateModified\":\"2024-06-28T23:22:28+00:00\",\"author\":{\"@id\":\"https:\/\/unlock-protocol.com\/guides\/#\/schema\/person\/86a3d8403e1c58bd42cc4695cad75b27\"},\"breadcrumb\":{\"@id\":\"https:\/\/unlock-protocol.com\/guides\/using-a-custom-currency\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/unlock-protocol.com\/guides\/using-a-custom-currency\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/unlock-protocol.com\/guides\/using-a-custom-currency\/#primaryimage\",\"url\":\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/06\/custom-currency.png\",\"contentUrl\":\"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/06\/custom-currency.png\",\"width\":1800,\"height\":1200},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/unlock-protocol.com\/guides\/using-a-custom-currency\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https:\/\/unlock-protocol.com\/guides\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using a Custom Currency\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/unlock-protocol.com\/guides\/#website\",\"url\":\"https:\/\/unlock-protocol.com\/guides\/\",\"name\":\"Unlock Guides\",\"description\":\"Connect with your 1000 true fans with membership NFT\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/unlock-protocol.com\/guides\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/unlock-protocol.com\/guides\/#\/schema\/person\/86a3d8403e1c58bd42cc4695cad75b27\",\"name\":\"Unlock Labs\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/unlock-protocol.com\/guides\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/51d138ba516030128480d1b9dcc5312f6f306a984bebcc5e79aa2db8c8d8259f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/51d138ba516030128480d1b9dcc5312f6f306a984bebcc5e79aa2db8c8d8259f?s=96&d=mm&r=g\",\"caption\":\"Unlock Labs\"},\"url\":\"https:\/\/unlock-protocol.com\/guides\/author\/unlockteam\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using a Custom Currency - Unlock Guides","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/unlock-protocol.com\/guides\/using-a-custom-currency\/","og_locale":"en_US","og_type":"article","og_title":"Using a Custom Currency - Unlock Guides","og_description":"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&#8217;s walk [&hellip;]","og_url":"https:\/\/unlock-protocol.com\/guides\/using-a-custom-currency\/","og_site_name":"Unlock Guides","article_published_time":"2022-06-27T13:20:49+00:00","article_modified_time":"2024-06-28T23:22:28+00:00","og_image":[{"width":1800,"height":1200,"url":"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/06\/custom-currency.png","type":"image\/png"}],"author":"Unlock Labs","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Unlock Labs","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/unlock-protocol.com\/guides\/using-a-custom-currency\/","url":"https:\/\/unlock-protocol.com\/guides\/using-a-custom-currency\/","name":"Using a Custom Currency - Unlock Guides","isPartOf":{"@id":"https:\/\/unlock-protocol.com\/guides\/#website"},"primaryImageOfPage":{"@id":"https:\/\/unlock-protocol.com\/guides\/using-a-custom-currency\/#primaryimage"},"image":{"@id":"https:\/\/unlock-protocol.com\/guides\/using-a-custom-currency\/#primaryimage"},"thumbnailUrl":"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/06\/custom-currency.png","datePublished":"2022-06-27T13:20:49+00:00","dateModified":"2024-06-28T23:22:28+00:00","author":{"@id":"https:\/\/unlock-protocol.com\/guides\/#\/schema\/person\/86a3d8403e1c58bd42cc4695cad75b27"},"breadcrumb":{"@id":"https:\/\/unlock-protocol.com\/guides\/using-a-custom-currency\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unlock-protocol.com\/guides\/using-a-custom-currency\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/unlock-protocol.com\/guides\/using-a-custom-currency\/#primaryimage","url":"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/06\/custom-currency.png","contentUrl":"https:\/\/unlock-protocol.com\/guides\/wp-content\/uploads\/2022\/06\/custom-currency.png","width":1800,"height":1200},{"@type":"BreadcrumbList","@id":"https:\/\/unlock-protocol.com\/guides\/using-a-custom-currency\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Guides","item":"https:\/\/unlock-protocol.com\/guides\/"},{"@type":"ListItem","position":2,"name":"Using a Custom Currency"}]},{"@type":"WebSite","@id":"https:\/\/unlock-protocol.com\/guides\/#website","url":"https:\/\/unlock-protocol.com\/guides\/","name":"Unlock Guides","description":"Connect with your 1000 true fans with membership NFT","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unlock-protocol.com\/guides\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/unlock-protocol.com\/guides\/#\/schema\/person\/86a3d8403e1c58bd42cc4695cad75b27","name":"Unlock Labs","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/unlock-protocol.com\/guides\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/51d138ba516030128480d1b9dcc5312f6f306a984bebcc5e79aa2db8c8d8259f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/51d138ba516030128480d1b9dcc5312f6f306a984bebcc5e79aa2db8c8d8259f?s=96&d=mm&r=g","caption":"Unlock Labs"},"url":"https:\/\/unlock-protocol.com\/guides\/author\/unlockteam\/"}]}},"_links":{"self":[{"href":"https:\/\/unlock-protocol.com\/guides\/wp-json\/wp\/v2\/posts\/1808","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unlock-protocol.com\/guides\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unlock-protocol.com\/guides\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unlock-protocol.com\/guides\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/unlock-protocol.com\/guides\/wp-json\/wp\/v2\/comments?post=1808"}],"version-history":[{"count":0,"href":"https:\/\/unlock-protocol.com\/guides\/wp-json\/wp\/v2\/posts\/1808\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unlock-protocol.com\/guides\/wp-json\/wp\/v2\/media\/2306"}],"wp:attachment":[{"href":"https:\/\/unlock-protocol.com\/guides\/wp-json\/wp\/v2\/media?parent=1808"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unlock-protocol.com\/guides\/wp-json\/wp\/v2\/categories?post=1808"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unlock-protocol.com\/guides\/wp-json\/wp\/v2\/tags?post=1808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}