website logo
WebsiteGithubDiscordTwitterTelegram
⌘K
Get started
Welcome to peaq
Introduction to peaq
Our mission
Our vision
Learn
Networks overview
Economics
Tokens & Token Utility
Why Polkadot
Tech stack
Source code
Important links
Security Assessment Reports
Builders
Get started
Build
Integrate
Get inspired
Grants & Funding
Node operators
Run a node
Tokens & Earn
Agung tokens (Faucet)
Wallets
peaq App
Docs powered by archbee 
8min

Machine dApps

Machine dApp Use Case

Decentralized applications (dApps) for vehicles, robots, devices, and other machines are important building blocks of the Economy of Things on peaq. Running on smart contracts that leverage peaq’s core functions, these dApps can power a wide array of services - leveraging connected machines to generate value for all users through real-world economic processes and exchanges.

Visit our Use Cases page to see what dApps you can build on peaq. Below are three examples described in more detail.

Example: Electric Vehicle Charging (charge.xyz)

Alice owns a private charging station which she wants to make available to the public whenever she is not using it. However, she doesn’t want to sign up with an expensive third-party subscription service to handle charging sessions for her.

With the peaq network, Alice’s charging station is visible to Bob so that he can select it for reservation. Bob requests to reserve the charging station for 30 minutes. Bob’s car (Consumer) initiates the reserve request via the smart contract for the charging station (Provider). The smart contract then checks whether Bob has sufficient funds and, if so, blocks the required amount. The authentication is successful, and Bob gets a booking confirmation for the charging station. The charging station receives the information about the car’s identity (Consumer Public Key) to expect. 

Bob arrives at the charging station and plugs in the charging cable, which triggers a verification check via the smart contract to validate the car's identity. After a successful verification, Bob’s car is authorized to charge, and the energy begins to flow in. By ending the charging session, Bob triggers the smart contract, which checks how much energy got consumed by Bob’s car and transfers the appropriate amount (pay-per-use) from the blocked funds to Alice. Bob unplugs the vehicle and drives off into the sunset.



Example: Parking

Alice owns a parking slot in a city with high parking congestion and wants to make it available to the public whenever she is not using it. However, she doesn’t want to sign up with an expensive third-party subscription service that would handle parking sessions for her.

With the peaq network, Alice’s parking slot becomes visible to Bob so that he can book it. Bob requests to reserve the parking slot for 2 hours. Bob’s car (Consumer) initiates the reserve request via the smart contract for the parking slot (Provider). The smart contract then checks whether Bob has sufficient funds and, if so, blocks the required amount. The authentication is successful, and Bob gets a notification confirming the reservation. The sensor at the parking slot receives the information about the car’s identity (Consumer Public Key) to expect. 

Bob arrives at the parking slot, setting off the parking sensor, which triggers a verification check via the smart contract to validate the car’s identity. After a successful check, Bob’s car is authorized to park, and the billing time starts. An hour and a half later, Bob drives away, which sets off the parking sensor again. The sensor initiates the end of the billing period, which triggers the smart contract that checks how long Bob’s car occupied the spot and transfers the appropriate amount (pay-per-use) from the blocked funds to Alice.

Example: Car Sharing

Alice owns a car which she wants to make available to the public whenever she is not using it. However, she doesn’t want to sign up with an expensive third-party subscription service that would handle the car sharing for her.

With the peaq network, Alice’s car becomes visible to Bob so that he can select it for rent. Bob requests to reserve the car for 15 minutes. Through his mobile phone, Bob (Consumer) initiates the reserve request via the smart contract for the car (Provider). The smart contract then checks whether Bob has sufficient funds and, if so, blocks the required amount. The authentication is successful, and Bob gets a notification confirming the reservation. The vehicle receives the information on the user’s identity (Consumer Public Key) to expect. 

Bob arrives at the car and requests access to it via his phone. This triggers a verification check via the smart contract to validate Bob’s identity. After a successful verification, Bob is authorized to enter the car and start his rental period. Once done with his drive, Bob exits the car and locks it via his mobile phone, which initiates the end of the rental period and triggers the smart contract. The contract checks for how long Bob was using the car and transfers the exact amount (pay-per-use) from the blocked funds to Alice.

Did this page help you?
Yes
No
UP NEXT
Machine DeFi dApps
Docs powered by archbee 
TABLE OF CONTENTS
Machine dApp Use Case
Example: Electric Vehicle Charging (charge.xyz)
Example: Parking
Example: Car Sharing