# Simple way to add metadata to a transaction?

**URL:** <https://forum.cardano.org/t/simple-way-to-add-metadata-to-a-transaction/68128>\
**Category:** Transaction Metadata\
**Created:** [4 August 2021 18:42 UTC](https://forum.cardano.org/t/simple-way-to-add-metadata-to-a-transaction/68128 "2021-08-04T18:42:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy\_krogi](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@andy\_krogi](https://forum.cardano.org/u/andy_krogi)\
**Post date:** [4 August 2021 18:42 UTC](https://forum.cardano.org/t/simple-way-to-add-metadata-to-a-transaction/68128/1 "2021-08-04T18:42:33Z")

</div>

Hi all,

I plan to sell a product in the spirits market and I want to store some production information on the Cardano Blockchain (more or less in the same way like Baia Wine is doing it with metadata).  
I watched some videos about adding metadata to a transaction, but simply said: It’s still to complicated for me as I have only very basic coding skills.

So is it correct that there is no desktop wallet available where I can simply add metadata to a transaction?  
Or any ideas how I can find help how to make a transaction with metadata?

Cheers  
Andreas

---

<div class="post-metadata">

**Author:** ![tomdx](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/tomdx/32/44498_2.png) [@tomdx](https://forum.cardano.org/u/tomdx)\
**Post date:** [5 August 2021 09:00 UTC](https://forum.cardano.org/t/simple-way-to-add-metadata-to-a-transaction/68128/2 "2021-08-05T09:00:32Z")

</div>

You can talk to me on this channel, it is really quite easy to create a Tx with metadata using the cardano-cli. I would first ask you to spin up a node on your machine [like this](https://tdiesler.gitbook.io/cardano/v/iohk/plain-docker/running-the-nodes).

```auto
docker run --detach \
    --name=relay \
    -p 3001:3001 \
    -v node-data:/opt/cardano/data \
    -v node-ipc:/opt/cardano/ipc \
    nessusio/cardano-node run

```

If all of this is new to you - no problem, we do this step by step and eventually you’ll be comfortable with creating metadata Tx [like this](https://twitter.com/AstorPool/status/1418101052008763393).

---

<div class="post-metadata">

**Author:** ![andy\_krogi](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@andy\_krogi](https://forum.cardano.org/u/andy_krogi)\
**Post date:** [5 August 2021 17:56 UTC](https://forum.cardano.org/t/simple-way-to-add-metadata-to-a-transaction/68128/3 "2021-08-05T17:56:17Z")

</div>

Thanks for your reply:-) Alright I start with installing Docker (also this is completly new for me), but google is my friend and I’ll come back to you as soon as it runs.

---

<div class="post-metadata">

**Author:** ![ATADA](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/atada/32/16409_2.png) [@ATADA](https://forum.cardano.org/u/ATADA)\
**Post date:** [5 August 2021 18:16 UTC](https://forum.cardano.org/t/simple-way-to-add-metadata-to-a-transaction/68128/4 "2021-08-05T18:16:39Z")

</div>

So, we have the CIP-0020 now with Transaction Messages. If you wanna attach some Text to a Cardano-Transaction, you can already do it with [ccwallet.io](http://ccwallet.io) for example.

---

<div class="post-metadata">

**Author:** ![andy\_krogi](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@andy\_krogi](https://forum.cardano.org/u/andy_krogi)\
**Post date:** [5 August 2021 21:18 UTC](https://forum.cardano.org/t/simple-way-to-add-metadata-to-a-transaction/68128/5 "2021-08-05T21:18:32Z")

</div>

So I’ve tested [ccwallet.io](http://ccwallet.io) and it worked perfectly! Thanks a lot.  
I added at least a small amount of metadata to a transaction (basically one sentence - but it’s enough for the beginning 🙂)  
The limit is 64 bytes, is there a plan to further increase it?

@tomdx: I still want to follow your proposed approach so I installed the docker and it worked, at least I’ve got a response when testing it with:

$ docker run --rm centos echo “Hello Cardano”

But setting up the node

> [@tomdx](#):
>
> ```auto
> docker run --detach \
> --name=relay \
> -p 3001:3001 \
> -v node-data:/opt/cardano/data \
> -v node-ipc:/opt/cardano/ipc \
> nessusio/cardano-node run
> 
> ```

already made problems, the response was “invalid reference format”.  
I try to figure out what the problem is and then come back to you.

---

<div class="post-metadata">

**Author:** ![ATADA](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/atada/32/16409_2.png) [@ATADA](https://forum.cardano.org/u/ATADA)\
**Post date:** [6 August 2021 06:23 UTC](https://forum.cardano.org/t/simple-way-to-add-metadata-to-a-transaction/68128/6 "2021-08-06T06:23:49Z")

</div>

going with the msg standard, you can do multiple lines in an array:

> <https://github.com/cardano-foundation/CIPs/blob/7b3d6f135c215f8729c43cbf38d6f23cbd611c35/CIP-0020/CIP-0020.md>

at the moment, [ccwallet.io](http://ccwallet.io) supports a oneliner for a transaction

---

<div class="post-metadata">

**Author:** ![tomdx](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/tomdx/32/44498_2.png) [@tomdx](https://forum.cardano.org/u/tomdx)\
**Post date:** [6 August 2021 07:25 UTC](https://forum.cardano.org/t/simple-way-to-add-metadata-to-a-transaction/68128/7 "2021-08-06T07:25:33Z")

</div>

The image works on macos/linux on intel/arm64 - it would not work on windows. For that we’d need to go to a hosted environment. Or, if you really want to get into it, you could get a [RaspberryPi4](https://www.raspberrypi.org/products/raspberry-pi-4-model-b/?variant=raspberry-pi-4-model-b-8gb). Be careful though, you might end up wanting to run your own pool 😉

---

<div class="post-metadata">

**Author:** ![andy\_krogi](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@andy\_krogi](https://forum.cardano.org/u/andy_krogi)\
**Post date:** [8 August 2021 17:30 UTC](https://forum.cardano.org/t/simple-way-to-add-metadata-to-a-transaction/68128/8 "2021-08-08T17:30:07Z")

</div>

Ok. Actually I always wanted to try some things with a RaspberryPi, so that’s finally a reason to buy one. I come back here as soon as I bought one and istalled the OS and the docker.

---

<div class="post-metadata">

**Author:** ![tomdx](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/tomdx/32/44498_2.png) [@tomdx](https://forum.cardano.org/u/tomdx)\
**Post date:** [8 August 2021 19:39 UTC](https://forum.cardano.org/t/simple-way-to-add-metadata-to-a-transaction/68128/9 "2021-08-08T19:39:13Z")

</div>

Ok, here are [step-by-step instructions](https://tdiesler.gitbook.io/cardano/v/iohk/plain-docker/raspberrypi-4) on how to set up the Pi4 - get an 8g version.

---

<div class="post-metadata">

**Author:** ![andy\_krogi](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@andy\_krogi](https://forum.cardano.org/u/andy_krogi)\
**Post date:** [9 August 2021 17:37 UTC](https://forum.cardano.org/t/simple-way-to-add-metadata-to-a-transaction/68128/10 "2021-08-09T17:37:02Z")

</div>

Ok:-) Thanks!
