🇷🇺 Русская версия документации здесь
A convenient and fast way to implement paid services using Solana, Cosmos, Algorand, Toncoin cryptocurrencies. The process is simple: You open any crypto wallet, scan the QR code displayed on the device, transfer the specified amount, and once the payment is received (the wallet balance is checked every 5 seconds), the relay activates and turns on your device for the time you have set. This can be any device, from a kettle, coffee machine, or light bulb to turning on electricity in a room or any other place.
You can build the device yourself or ask us to do it for you. To order a ready-made device, contact us via Telegram, Skype, or Discord.
We have a similar project with a display, check it out, and also based on Sonoff:
If you want to see a new cryptocurrency that you need here, feel free to contact us, and we'll add it. :)
-
Connecting the Device:
-
When the device is turned on for the first time, or if it cannot find a router, it will create a hotspot named "Crypto payments."
-
Connect to this hotspot (no password required) and open a browser, then enter http://192.168.4.1. After connecting to Wi-Fi, the Captive Portal will usually open automatically, redirecting you to the required page.
-
Click "Configure WiFi" to set it up.
-
-
Device Configuration:
-
Router and Password: Enter your Wi-Fi credentials.
-
Device Name: Enter a device name, for example, "Buy coffee."
-
Your TonCoin Wallet: Enter your wallet address to receive payments.
-
Your Solana Wallet: Enter your wallet address to receive payments.
-
Your Cosmos Wallet: Enter your wallet address to receive payments.
-
Your Algorand Wallet: Enter your wallet address to receive payments.
-
CoinMarketCap API: Used to get the current exchange rate of Solana, Cosmos, Algorand, Toncoin in fiat currency.
-
Tatum API: Used to get information about your wallet balance.
You can use built-in APIs for testing; however, for long-term use, it is highly recommended to register on the respective websites (coinmarketcap.com and tatum.io) and obtain your own API keys. Free plans allow up to 10,000 requests per month, enough for 10 devices. However, with an increased number of devices, there may be delays in getting up-to-date information, which could disrupt the payment process.
-
Currency: Choose the currency in which you want to receive payments (EUR, USD, RUB, BYN, BGN, GBP, etc.). This is necessary for automatic conversion of the amount into Solana, Cosmos, Algorand, Toncoin based on the current exchange rate, which is updated hourly via coinmarketcap.com.
-
Service Currency Price: Set the price in the selected currency that the client must pay.
-
Payment Tolerance: Enter the allowable price deviation here. Since the value of Ton fluctuates constantly, you need to specify a tolerance range (as a single number) that you are willing to accept for payment.
-
Relay Work Time: Specify how many seconds the relay should remain active. This can range from one second (for simulating a button press, for example) to several minutes or hours.
-
-
Reset Settings: To reset the device to factory settings, follow these steps:
- Press the right button located on the back of the device. The device will start rebooting. Alternatively, you can disconnect and reconnect the power supply to the device.
- When the device turns on, and you see the firmware version displayed along with a short beep, immediately press and hold the left button.
- After that, you will hear a long, low-pitched signal, and a message about data erasure will appear on the screen. The device settings will now be reset. And the WiFi "Crypto Payment" will appear again.
For DIY assembly, you will need ESP32 C3 MINI 1.69inch LCD TouchScreen Display ST7789
Additionally, you'll need:
Good luck! If you have any questions, don’t hesitate to contact us.
You need to connect the device via Type-C to your computer and open the following website in your browser:
{ "path": "./build/esp32.esp32.esp32c3/crypto_payment_touchScreen.ino.bootloader.bin", "offset": 0 },
{ "path": "./build/esp32.esp32.esp32c3/crypto_payment_touchScreen.ino.partitions.bin", "offset": 32768 },
{ "path": "./build/esp32.esp32.esp32c3/boot_app0.bin", "offset": 57344 },
{ "path": "./build/esp32.esp32.esp32c3/crypto_payment_touchScreen.ino.bin", "offset": 65536 }
If you like this project, you can buy me a cup of coffee ☕