Tonutils Storage Provider
Written in pure go, can be compiled for any OS.
It uses alternative version of storage contract and different flow, so it is not compatible with C++ storage-provider.
How to setup
- Download precompiled version:
- Start it
./tonutils-storage-provider-{os}-{arch}
, it will generate config.json
- Topup provider wallet, address will be shown in output at startup
- Run tonutils-storage version v0.4.0 or later, with api enabled
-api ip:port
flag
- Configure settings such as tountils-storage api address, space for rent and price in config.json
- Share provider key with your clients, it will be shown in output at startup also. Clients can use it in TON Torrent to buy your storage.
Storage smart-contract
Contract used for providing storage is shared between many providers and can be deployed by user asking for storage. Contract is discoverable onchain if owner address and bag info is known.
Contract source can be found here
CRON contracts trigger mode
You can enable cron contracts tracking to earn additional rewards by triggering blockchain's cron contracts deployed by other users.
User puts some amount of ton to cron contract and sets desired period, this software will call this contract when time has come and gets some coins to provider's wallet.
To enable this mode set Enabled
to true and set MinReward
, recommended value is 0.005 ton.
Example of config section:
{
...
"Storages": [
...
],
"CRON": {
"Enabled": true,
"MinReward": "0.005"
}
}
Withdraw coins from provider wallet
To withdraw using this software you can enable input by using startup flag -enable-input
and when in starts type command withdraw [amount in TONs] [address to send]
or help