You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,41 @@ Tuktuk's architecture allows for crankers to run a simple rust util that require
12
12
13
13
Creators of Task Queues set their payment per-crank turn in SOL. Crankers that run the tasks are paid out in SOL for each crank they complete. There is a minimum deposit of 1 SOL to create a task queue to discourage spam. This deposit is refunded when the task queue is closed. The intent is to minimize the number of task queues that crank turners need to watch. You should try to reuse task queues as much as possible. It is an antipattern to create a new task queue for each user, for example.
14
14
15
+
## Running a Crank Turner
16
+
17
+
Install the crank turner:
18
+
19
+
```
20
+
cargo install tuktuk-crank-turner
21
+
```
22
+
23
+
If you want to run a crank turner, create a config.toml file with the following:
24
+
25
+
```
26
+
rpc_url = "https://api.mainnet-beta.solana.com"
27
+
key_path = "/path/to/your/keypair.json"
28
+
min_crank_fee = 10000
29
+
```
30
+
31
+
Then run the crank turner:
32
+
33
+
```
34
+
tuktuk-crank-turner -c config.toml
35
+
```
36
+
37
+
You can also provider configuration via environment variables
You will need a good Solana RPC that doesn't have heavy rate limits (for when there are a lot of tasks queued). You should also handle restarting the process if it crashes, as this can happen if your RPC disconnects the websocket without a proper handshake.
49
+
15
50
## Usage
16
51
17
52
Install the tuktuk cli by running `cargo install tuktuk-cli`.
0 commit comments