From a9e79f25fe7f38983b8e97dbc204f6f4733452d1 Mon Sep 17 00:00:00 2001 From: mwrites <20499416+mwrites@users.noreply.github.com> Date: Tue, 17 Jan 2023 23:12:31 +0800 Subject: [PATCH] Update README.md (#130) --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b880ef23..dad3789f 100644 --- a/README.md +++ b/README.md @@ -84,11 +84,28 @@ tar -xjvf clockwork-geyser-plugin-release-x86_64-unknown-linux-gnu.tar.bz2 rm clockwork-geyser-plugin-release-x86_64-unknown-linux-gnu.tar.bz2 ``` -Next, create a new keypair for signing Clockwork txs. Load this keypair with a small amount of SOL (~0.01 ◎). You will be compensated for lamports spent by the tasks your worker executes. Automation fees (rewards) are implemented and will soon be enabled. +Next, create a new keypair for signing Clockwork txs: ```sh solana-keygen new -o clockwork-worker-keypair.json ``` +Load this keypair with a small amount of SOL (~0.01 ◎). You will be compensated for lamports spent by the tasks your worker executes. Automation fees (rewards) are implemented and will soon be enabled. + +Let's register your worker and get a `worker_id`: +```sh +clockwork worker create clockwork-worker-keypair +``` + +Get your `worker_id` from the above output: +``` +... +Worker { + id: ... +} +... +``` + + Then, setup the plugin config file in a folder where your validator startup script can reference it. Note, the `libpath` and `keypath` values should point to the binary and keypair mentioned in the steps above. ```js {