Quickstart
By the end of this guide, you will have deployed a program onto the Entropy blockchain and be able to interact with it to produce signatures. These terms (deploy, program, blockchain, signature) may be a bit foreign to you right now, and that’s ok! You don’t need to understand everything in order to play around with Entropy.
What is Entropy
The Entropy network provides threshold signing as a service. That means multiple users can collectively sign a message to perform some function on any blockchain network. Entropy can also be used to perform non-blockchain tasks like encrypting and decrypting chunks of data. That’s all we will cover now, but you’ll learn more about Entropy in other parts of this docs website.
1. Install CLI
The command-line interface (CLI) is the most straightforward way to interact with Entropy from your device.
Ensure you have Node.js version
20.x.x
or above:node --version
v23.1.0
Install the Entropy CLI globally using NPM:
npm install --global @entropyxyz/cli
Test that the CLI is installed by requesting the CLI version:
entropy --version
v0.1.0
Next, you’ll create an Entropy account.
2. Create an account
You need funds to interact with the Entropy network. Your funds are stored in an account. You can have multiple accounts.
Open the Entropy CLI text-based user interface (TUI):
entropy tui
@@@@@@@@@@ @@@@@@@@@@ @@@@@ @@@@@@@@@@@ @@@@@@@@@ @@@@@@@@@@ @@@@@ @@@@@ @@@@@@@@@@ @@@@@@@@@@ @@@@@ @@@@@@@@@@@ @@@@@@@@@ @@@@@@@@@@ @@@@@ @@@@@ @@@@@@@@@@ @@@@@@@@@@ @@@@@@@ @@@@@@@@@@@ @@@@@@@@@ @@@@@@@@@@ @@@@@ @@@@@ @@@@@ @@@@ @@@@@ @@@@ @@@@@@@ @@@@@ @@@@@ @@@@ @@@@ @@@@@ @@@@ @@@@@ @@@@@ @@@@@ @@@@ @@@@@ @@@@ @@@@@ @@@@@ @@@@@ @@@@ @@@@ @@@@@ @@@@ @@@@@ @@@@@ @@@@@ @@@@ @@@@@ @@@@ @@@@@ @@@@@ @@@@@ @@@@ @@@@ @@@@@ @@@@ @@@@@ @@@@@ @@@@@@@@@@ @@@@@ @@@@ @@@@@ @@@@@ @@@@ @@@@ @@@@@ @@@@ @@@@@ @@@@@ @@@@@@@@@@ @@@@@ @@@@ @@@@@ @@@@@ @@@@ @@@@ @@@@@ @@@@ @@@@@ @@@@@ @@@@@ @@@@@ @@@@ @@@@@ @@@@@ @@@@ @@@@ @@@@@ @@@@ @@@@@ @@@@@ @@@@@ @@@@ @@@@@ @@@@ @@@@@ @@@@@ @@@@ @@@@ @@@@@ @@@@ @@@@@ @@@@@ @@@@@ @@@@ @@@@@ @@@@ @@@@@ @@@@@ @@@@ @@@@ @@@@@ @@@@ @@@@@ @@@@@ @@@@@ @@@@ @@@@@ @@@@ @@@@@ @@@@@ @@@@ @@@@ @@@@@ @@@@ @@@@@ @@@@@ @@@@@@@@@@ @@@@@ @@@@ @@@@@@@ @@@@@ @@@@@@@@@ @@@@@@@@@@ @@@@@@@@@@@ @@@@@@@@@@ @@@@@ @@@@ @@@@@@@ @@@@@ @@@@@@@@@ @@@@@@@@@@ @@@@@@@@@@@ @@@@@@ TEST @@@@@@ *NET @@@@@@ ENTROPY-CLI @@@@@@ COREv0.3.0 ? Select Action (Use arrow keys) ❯ Manage Accounts Entropy Faucet Balance Register Sign Transfer Deploy Program User Programs Exit
Select Manage Accounts.
Select Create/Import Account.
Type
n
and pressENTER
when asked Would you like to import your own seed?:? Would you like to import your own seed? (y/N) n
Enter the name of your new account.
Type
Y
and pressENTER
to return to the main menu.
Next up, you’ll request some funds to play around with.
3. Get testing funds
Funds for testing are available from the CLI’s built-in faucet.
Select Entropy Faucet from the main menu.
The CLI will request
2
test tokens from the Entropy network and send them to your selected account. This equates to20,000,000,000
bits, which is enough to perform actions like registering an account, transferring funds, and deploying a program.⠧ Funding account…
Once you have been sent some funds, the CLI will output a success message:
Account: 5EFDfxft4oZYvjj35TWttFkkKZSHUDVnBRmp3eMQQcpt9zku has been successfully funded with 20,000,000,000 BITS
Next, you’ll register your account on the Entropy network.
4. Register your account
Registering an account is a feature unique to Entropy. Without going into too much detail, it advertises to the network that you own this account and that you’re ready to start signing things.
Back at the main menu, select Register:
? Select Action Manage Accounts Balance > Register Sign Transfer Deploy Program User Programs Exit
The CLI will send your selected account information to the network. The network will then register your account as long as you have enough funds.
Attempting to register the address: 5EFDfxft4oZYvjj35TWttFkkKZSHUDVnBRmp3eMQQcpt9zku Your address 5EFDfxft4oZYvjj35TWttFkkKZSHUDVnBRmp3eMQQcpt9zku has been successfully registered.
Press
Y
to go back to the main menu.
Next up, we’ll attempt to get a signature from the network!
5. Get a signature
Back at the main menu within the CLI, select Sign:
? Select Action Manage Accounts Balance Register > Sign Transfer Deploy Program User Programs Exit
The CLI will prompt you to enter a message in the default terminal-based text editor on your system:
? Enter the message you wish to sign (this will open your default editor): Press <enter> to launch your preferred editor.
You can set your terminal’s preferred editor by changing the
EDITOR
environment variable:# Set default text-editor to Neovim. export EDITOR='nvim'
Press
ENTER
to open a text editor.Within your text editor, enter a message. It doesn’t matter what the message is at this point.
Once you have finished entering your message into the text editor, save and quit the text editor.
The CLI will output the verifying key used to sign the message and the signature of the message itself:
verifying key: 0x03aee03ad9862e9f31d06f7d1b4b388ad1c66152ad17f919fc16fcc75929b08db3 signature: 0xe78fce90707f824530677ba91ef90d3be4418da3eb10b3233709553b4355f1973b21e88d285e04ba323c8fe0d079a4f027c840a23cc57590371d57c95ed9eaa901
Congratulations! You just received a signature from the Entropy network using the CLI!
So, what was all that about? While this quickstart guide didn’t go into much detail regarding the theory of what you just did and why, you should now have a solid understanding of the steps available to you using Entropy.
Next steps
There’s much more to come from Entropy! Next, you should check out the Entrosplainer, an end-to-end explanation of what Entropy is, why it’s necessary, and how it works!