Datalog

Now that you have some funds on your account you can submit extrinsics. The first to try is a Datalog. It allows you to store data in the blockchain persistently. Imagine a distributed and crypto-protected storage for your data and this is it!


Dev Node
Please pay attention that this and following tutorials are demonstrated on a local instance of Robonomics Node. Set up yours with these instructions.

1. Navigate to Developer -> Extrinsics

extrinsics

2. Choose datalog -> record from the dropdown list of possible extrinsics

Also choose an account you want to submit the extrinsic with. Fill in the record field.

record

Large amount of data
Datalog supports a string with a maximum of 512 bytes. To store large amount of data one may use IPFS.

3. Submit transaction

Sign and submit the transaction with an account created previously using the extension or the DApp.

submit

Erase
You may also erase ALL of your records with datalog -> erase call.

4. Review your datalog in the storage

For this, navigate to Developer -> Chain state, select datalog -> datalogIndex, specify your account and press the
“+” button to get the indexes of your account’s records and then explore the one you need with datalog -> datalogItem.

item

Explorer
All the events including datalog record may be seen in the events flow in the Explorer.

Couldn't complete

Thanks,
we'll keep in touch!

It was hard

Thanks,
we'll keep in touch!

It was ok

Thanks,
we'll keep in touch!

It was easy

Thanks,
we'll keep in touch!
Main contributors: @PaTara43
Make a contribution

Robonomics wiki is open source. See something that's wrong or unclear? Submit a pull request.

Latest commit on 23.09.2024 by Julia
? Ask your question