> For the complete documentation index, see [llms.txt](https://vanetchain.gitbook.io/vanetchain/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vanetchain.gitbook.io/vanetchain/vanetchain-dapps/vanetchain-mini-demo.md).

# Vanetchain mini demo

## &#x20;A mini demo simulation for VANET

▪ This is a mini demo application that simulates VANET network with blockchain. Note that this runs only a server.There are no other nodes, so there is nothing about chain sync This only demonstrates the data of the blockchain with a simple algorithm.

▪ There is an event point pointed at the map image.This location points to the event.For your vehicle, click a point on the map as your location and submit.Get a coefficient as location\_weight for your location.That coefficient is calculated by your distance to the location of event. Note that as long as you click a point very near to this point you will get bigger weight.It is good to get a location weight above 0.5 to have the chance to be added to blockchain.

▪ After getting the location weight, you will send the event details and it will be added to the network if conditions met.Note that genesis block has only one transaction, left intentionally.After that all blocks will have 5 transactions per.If your transaction have good weight to be added to the chain, it will be added to next block, and you will see it after 5 transaction happened and new block added.

▪ Enter location coordinates to the Location field as loc1,loc2 example => 617,1520

▪ Enter the timestamp that you send data as Unix time. You can convert current time to Unix Epoch from Epoch Converter . The reference time that the event happened is set as 03.09.2023 09:39 GMT. you will get big time coefficient even the event happened nearly one month ago, it is set for test purposes.

<https://www.epochconverter.com/> (convert current time to GMT)&#x20;

▪ Enter your vehicles direction relative to the event. east,west,north,south. Enter east for better performance

▪ Enter location weight that you get previously.

▪ Enter the communication technology as 5g,lora or wifi. 5g has massive priority, wifi the last.

▪ There are three event types.accident,traffic\_busy,parking.It is case sensitive enter as written.Example => accident,traffic\_busy,parking

▪ Example setup:&#x20;

Location: 615,1510,

Timestamp:1696931603,

Direction:east,

&#x20;Location weight :0.54, (calculated by getting location certificate)

Communication technology:5g,

Event\_id:accident

▪ You can see the transactions and block at Vanetchain in JSON Format
