DEV Community

Cover image for I Wrote "Hello World" to the Cardano Blockchain and Here's How You Can Too
Kory Becker
Kory Becker

Posted on

I Wrote "Hello World" to the Cardano Blockchain and Here's How You Can Too

Read the full article.

Writing text on the blockchain

I’ve always been curious about what it actually takes to write data to a blockchain. Not building a full dApp nor deploying a smart contract, but rather just store a simple message. Something like the classic "Hello World", but on-chain and permanent.

So I decided to try it with Cardano, and honestly, the process was way more approachable than I expected. If you’ve ever wanted to experiment with blockchain development without spending real money or running a full node, this walkthrough might help.

Why store text on a blockchain?

Every blockchain transaction includes metadata. Most people think of blockchains as "sender, receiver, amount", but the metadata field can store arbitrary text or even JSON. That opens the door to things like:

  • Verifiable logs
  • On-chain proofs
  • Timestamped notes
  • Game data
  • Audit trails
  • Tiny decentralized apps
  • And of course… "Hello World."

Step 1 — Create a Cardano wallet

I used the cardanomsg Python library to generate a wallet. It creates two files:

  • wallet.addr — your public address
  • wallet.skey — your private key (keep this safe)

Once the wallet exists, you'll need some ADA to send a transaction. I used a testnet.

Step 2 — Fund the wallet using Cardano's free faucet

Cardano provides a preview testnet and a faucet that sends you free ADA for development. After submitting my wallet address, I received about 10,000 ADA (testnet only). You can verify the balance on Cardanoscan.

Step 3 — Send a transaction with a message

To avoid running a full node, I used Blockfrost, an API that lets you interact with Cardano using a simple key.

With the wallet funded, I sent 1 ADA to myself and attached the message "Hello World" as metadata. The transaction returned a hash, which I could then look up on Cardanoscan to confirm it was included in the chain.

Seeing the message appear on-chain was a pretty cool moment.

Writing a Hello World on the blockchain

A few troubleshooting notes

If you try this yourself, a couple of things might trip you up:

  • Testnet funds sometimes take a minute or two to appear
  • Make sure your Blockfrost key is for the Preview network
  • Transactions may take a bit to index before they show up

Just remember: anything you put on-chain is public and permanent.

If you want to explore further, I’ve shared the full code and steps in the article. It’s a great way to dip your toes into blockchain development without spending real money or setting up heavy infrastructure.

Top comments (0)