date
Jan 6, 2025
slug
deploy-solana-sm
status
Published
tags
Blockchain
Solana
summary
Cách deploy solana smart contract
type
Post
 
Now you have successfully deployed your program to your local cluster. If you want to deploy it to the public devnet to show your program to your friends you can do so by running the following command:
 
Then change the connections url in your client.mjs also to https://api.devnet.solana.com and run the client again.
 
 
You should see the same output as before but now on the public devnet cluster. You can see the transaction in the Solana Explorer again. Now you just need to switch it to devnet on the top right.
Congratulations, now everyone in the world can see your "Hello World" transaction on the Solana blockchain.

“Success is not final, failure is not fatal: it is the courage to continue that counts.“

Winston Churchill


© Hiếu Trần 2020 - 2025

Tip: Use console.table() for better array logging!
Anime Character