{"id":3459,"date":"2022-12-12T12:20:42","date_gmt":"2022-12-12T12:20:42","guid":{"rendered":"https:\/\/metaschool.so\/articles\/?p=3459"},"modified":"2023-08-31T10:30:28","modified_gmt":"2023-08-31T10:30:28","slug":"how-to-get-testnet-sol-tokens-solana-faucet","status":"publish","type":"post","link":"https:\/\/metaschool.so\/articles\/how-to-get-testnet-sol-tokens-solana-faucet\/","title":{"rendered":"How to get testnet SOL tokens from a Solana Faucet"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_56_1 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/metaschool.so\/articles\/how-to-get-testnet-sol-tokens-solana-faucet\/#Whats_a_Solana_faucet\" title=\"What&#8217;s a Solana faucet?\">What&#8217;s a Solana faucet?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/metaschool.so\/articles\/how-to-get-testnet-sol-tokens-solana-faucet\/#How_to_get_SOL_tokens_from_a_Solana_faucet\" title=\"How to get SOL tokens from a Solana faucet\">How to get SOL tokens from a Solana faucet<\/a><ul class='ez-toc-list-level-3'><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/metaschool.so\/articles\/how-to-get-testnet-sol-tokens-solana-faucet\/#How_to_get_Solana_faucet_token_using_Solana_CLI\" title=\"How to get Solana faucet token using Solana CLI\">How to get Solana faucet token using Solana CLI<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/metaschool.so\/articles\/how-to-get-testnet-sol-tokens-solana-faucet\/#How_to_get_Solana_faucet_token_using_Phantom_Wallet\" title=\"How to get Solana faucet token using Phantom Wallet\">How to get Solana faucet token using Phantom Wallet<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/metaschool.so\/articles\/how-to-get-testnet-sol-tokens-solana-faucet\/#Command_Line_Solana_Faucet_and_Solana_Faucet_websites_difference_which_to_use\" title=\"Command Line Solana Faucet and Solana Faucet websites difference &amp; which to use?\">Command Line Solana Faucet and Solana Faucet websites difference &amp; which to use?<\/a><\/li><\/ul><\/nav><\/div>\n\n<p>Solana is a decentralized platform for hosting applications and its native token is called SOL. Testnet SOL tokens are used for testing purposes on the <a href=\"https:\/\/metaschool.so\/blockchains\/solana\" target=\"_blank\" rel=\"noreferrer noopener\">Solana platform<\/a> and can be obtained from a Solana faucet.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-s-a-solana-faucet\"><span class=\"ez-toc-section\" id=\"Whats_a_Solana_faucet\"><\/span>What&#8217;s a Solana faucet?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>A Solana faucet is a service that provides testnet SOL tokens for free. These tokens are intended for use on the Solana testnet and have no real-world value. These are provided by the Solana team and community members for testing purposes, so that developers and other users can try out the Solana platform without having to use real SOL tokens.<\/p>\n\n\n\n<p>Solana faucets are useful for developers because they allow them to experiment and test their applications and deploy <a href=\"https:\/\/metaschool.so\/courses\/writing-your-first-hello-world-contract-in-solidity?ref=Articles&amp;utm_source=Blog_Organic\" target=\"_blank\" rel=\"noreferrer noopener\">smart contracts<\/a> on the Solana platform without having to spend real money on SOL tokens. This makes it easier and more affordable for developers to <a href=\"https:\/\/metaschool.so\/courses\/create-your-own-solana-token-in-just-10-mins?ref=Articles&amp;utm_source=Blog_Organic\" target=\"_blank\" rel=\"noreferrer noopener\">build on Solana<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"620\" src=\"https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2022\/12\/Sol-faucet-1322x800-1-1024x620.jpeg\" alt=\"solana faucet testnet \" class=\"wp-image-3575\" srcset=\"https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2022\/12\/Sol-faucet-1322x800-1-1024x620.jpeg 1024w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2022\/12\/Sol-faucet-1322x800-1-300x182.jpeg 300w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2022\/12\/Sol-faucet-1322x800-1-768x465.jpeg 768w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2022\/12\/Sol-faucet-1322x800-1.jpeg 1322w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>Additionally, using testnet SOL tokens helps to prevent potential loss of funds and protects against any mistakes or bugs that may occur during development. Since <a href=\"https:\/\/metaschool.so\/articles\/testnet-meaning\/\">testnet<\/a> tokens have no real-world value, developers can safely use them for testing purposes without fear of losing money.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-get-sol-tokens-from-a-solana-faucet\"><span class=\"ez-toc-section\" id=\"How_to_get_SOL_tokens_from_a_Solana_faucet\"><\/span>How to get SOL tokens from a Solana faucet<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before you plan to do any development on Solana, you must install Solana CLI. <\/p>\n\n\n\n<p>The Solana Command Line Interface (CLI) is a tool that allows users to interact with the Solana blockchain from the command line. It provides a range of commands for managing and deploying applications, creating and managing accounts, and more.<\/p>\n\n\n\n<p>To install the Solana CLI, you will need to do the following:<\/p>\n\n\n\n<p>1. Make sure you have the latest version of Node.js installed on your computer. You can download and install <a href=\"https:\/\/nodejs.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Node.js<\/a> from the official website.<\/p>\n\n\n\n<p>2. Open a command prompt or terminal and run the following command to install the Solana CLI globally:<\/p>\n\n\n\n<pre class=\"wp-block-code has-nv-site-bg-background-color has-background\"><code>npm install -g @solana\/cli<\/code><\/pre>\n\n\n\n<p>3. Once the Solana CLI has been installed, you can verify that it was installed correctly by running the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code has-nv-site-bg-background-color has-background\"><code>solana --version<\/code><\/pre>\n\n\n\n<p>4. This should display the version number of the Solana CLI that was installed.<\/p>\n\n\n\n<p>5. You can now use the Solana CLI by running the <code>solana<\/code> command followed by the specific subcommand you want to use. For example, to create a new Solana wallet, you would run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code has-nv-site-bg-background-color has-background\"><code>solana-keygen new --no-outfile<\/code><\/pre>\n\n\n\n<p>The command will create a new Solana wallet, make sure you keep the seed phase to the wallet stored safely<\/p>\n\n\n\n<p>The Solana CLI provides a range of commands that you can use to interact with the Solana blockchain. You can view a list of available commands by running the <code>solana --help<\/code> command.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"how-to-get-solana-faucet-token-using-solana-cli\"><span class=\"ez-toc-section\" id=\"How_to_get_Solana_faucet_token_using_Solana_CLI\"><\/span>How to get Solana faucet token using Solana CLI<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The balance of your newly created wallet should start at zero, but we will soon be acquiring some testnet SOL. Let&#8217;s confirm that we are on the testnet cluster before proceeding:<\/p>\n\n\n\n<pre class=\"wp-block-code has-nv-site-bg-background-color has-background\"><code>solana config get<\/code><\/pre>\n\n\n\n<p>As you can see the Websocket URL is testnet or devnet, if not then run the following command to set the config to testnet or devnet:<\/p>\n\n\n\n<pre class=\"wp-block-code has-nv-site-bg-background-color has-background\"><code>solana config set --url https:\/\/api.devnet.solana.com<\/code><\/pre>\n\n\n\n<p>Now, simply acquire testnet SOL through this command:<\/p>\n\n\n\n<pre class=\"wp-block-code has-nv-site-bg-background-color has-background\"><code>solana airdrop 1<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"how-to-get-solana-faucet-token-using-phantom-wallet\"><span class=\"ez-toc-section\" id=\"How_to_get_Solana_faucet_token_using_Phantom_Wallet\"><\/span>How to get Solana faucet token using Phantom Wallet<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If you haven&#8217;t worked with the command line before, you can connect to Solana&#8217;s devnet with Phantom, which is one of the most popular Solana wallets around. <\/p>\n\n\n\n<p>To set up a Solana Phantom wallet and get SOL tokens from a Solana faucet, you will need to do the following:<\/p>\n\n\n\n<p>1. Visit the Solana Phantom wallet website and click on the &#8220;Get Started&#8221; button.<\/p>\n\n\n\n<p>2. Follow the instructions on the website to download and install the Solana Phantom wallet app on your computer.<\/p>\n\n\n\n<p>3. Once the app is installed, open it and click on the &#8220;I already have a wallet&#8221; button to import your Solana CLI wallet.<\/p>\n\n\n\n<p>4. Follow the on-screen instructions to import your wallet using seed phase and create a secure password.<\/p>\n\n\n\n<p>5. Once your wallet is set up, you will see your Solana <a href=\"https:\/\/metaschool.so\/articles\/wallet-address-blockchain\/\">wallet address<\/a>. This is the address that you will need to provide when requesting testnet SOL tokens from the Solana faucet.<\/p>\n\n\n\n<p>6. Visit the<a href=\"https:\/\/solfaucet.com\/\" target=\"_blank\" rel=\"noreferrer noopener\"> Solana faucet website<\/a> and follow the instructions to request testnet SOL tokens. You will need to provide your Solana wallet address and complete any challenges that the faucet website presents in order to receive the tokens.<\/p>\n\n\n\n<p>7. Once you have received the testnet SOL tokens, they will be credited to your Solana Phantom wallet. You can then use them for testing purposes on the Solana platform.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"command-line-solana-faucet-and-solana-faucet-websites-difference-which-to-use\"><span class=\"ez-toc-section\" id=\"Command_Line_Solana_Faucet_and_Solana_Faucet_websites_difference_which_to_use\"><\/span>Command Line Solana Faucet and Solana Faucet websites difference &amp; which to use?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The Command Line Solana Faucet is a tool to request and receive tokens directly from the Solana network, while the Solana Faucet website is a web-based tool to request and receive tokens from the Solana network. <\/p>\n\n\n\n<p>The Command Line Solana Faucet is more suitable for developers and users who are comfortable using the command line, while the Solana faucet website is more suitable for users who are not comfortable using the command line.<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":3470,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[292],"tags":[51,55],"class_list":["post-3459","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-answers","tag-blockchain","tag-solana"],"_links":{"self":[{"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/posts\/3459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/comments?post=3459"}],"version-history":[{"count":16,"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/posts\/3459\/revisions"}],"predecessor-version":[{"id":6826,"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/posts\/3459\/revisions\/6826"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/media\/3470"}],"wp:attachment":[{"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/media?parent=3459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/categories?post=3459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/tags?post=3459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}