Using the Testnet
Last updated
Last updated
A testnet network is an almost identical copy of a blockchain that serves as an alternative specifically made for testing without affecting the operation of the original network (mainnet).
In this step-by-step guide I’ll show you how to connect to a testnet with Keplr and SecretCLI, receive tokens through a faucet, and interact with secret applications.
The easy way to use a testnet is via the Keplr wallet browser extension, you can install it and set it up by following this guide or this video.
For safety reasons we recommend using a separate secondary wallet for testing purposes.
Once you have saved your mnemonic phrase you can connect to the pulsar-3 chain.
Go to https://keplr-connect-pulsar3.vercel.app and click on the Keplr button
Click “approve” once the Keplr window pops up to add the chain config
And again to connect the website, and allow it to view your balances etc
Now you should be able to see the Secret Testnet network on Keplr wallet by selecting it from the drop down menu. (verify that your Secret mainnet and testnet addresses coincide and start with “secret”)
You have now successfully added the Secret Testnet to your wallet and you’re ready to get your first tokens and experiment!
The fastest and easiest way to get some test SCRT into your wallet is to use faucets which are tools that distribute a standard amount of tokens to a specific address.
Remember that all tokens on the Secret Testnet have no real value as they’re free to mint and they’re impossible to transfer to mainnet.
In a matter of seconds you should be able to see 100 test SCRT on your Keplr balance.
To have access to all the testnet functionalities and to develop you can connect using SecretCLI, a desktop client tool to interact with the blockchain from the console.
Install and configure SecretCLI by following this tutorial
Open your terminal and run the following commands to connect to pulsar-3 and add your wallet:
Paste your wallet’s mnemonic phrase when asked to do so
You can always change the parameters to connect to alternative APIs and testnets. You can find the full list of testnets, APIs, faucets and explorers on the official github repository.
Once you have everything set up you can connect to protocols that have a public testnet URL available.
Here’s a table of the main ones:
Dapp | Website | Feedback form |
---|---|---|
Sienna | Na | |
Actilist.io | Na | |
Prifi labs | ||
Secret Dashboard | ||
Shade Swap | ||
abakhus | ||
Bidshop |
Alternatively you can directly interact with their testnet secret contracts. Below are some of the main smart contract addresses available:
Contract | Address | Testnet Chain |
---|---|---|
SSCRT | secret1gvn6eap7xgsf9kydgmvpqwzkru2zj35ar2vncj | Pulsar-3 |
With Keplr you’ll need to approve a connection request for each protocol that you want to connect to. You can easily manage active website connections under “Manage Connections” in the Keplr settings.
Note: If you’re using secretcli
view a full list of commands for Secret Contracts here.
To view testnet transactions and contract interactions on the testnets you can use the [Ping Dashboard, a light explorer for Cosmos-based Blockchains. https://ping.pub pulsar-3.
Ping Dashboard, light explorer for Cosmos-based Blockchains. https://ping.pub
Paste your address in the text box, verify the captcha and click on “Send me tokens”