Skip to content

Commit 8e1f630

Browse files
update readme
1 parent d91176a commit 8e1f630

File tree

1 file changed

+4
-11
lines changed
  • create-leo-app/template-offline-public-transaction-ts

1 file changed

+4
-11
lines changed

create-leo-app/template-offline-public-transaction-ts/README.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,17 @@ construction of the offline transaction.
2828

2929
## 2. Usage
3030

31-
### 2.1 Pre-Download the Keys
32-
First run this command online to download the key material to disk:
33-
3431
`npm run build`
3532

33+
`npm run dev`
34+
3635
Once this command is run, all proving keys for the `transfer_public`, `bond_public`, `unbond_public`, and
37-
`claim_unbond_public` functions will be downloaded to the `./keys` folder. The machine can then be disconnected from
36+
`claim_unbond_public` functions will be downloaded to the `dist/keys` folder. The machine can then be disconnected from
3837
the internet and the `OfflineKeyProvider` will search this directory for the function proving keys when building the
3938
transaction instead of connecting to the internet. Alternatively you can skip the online step entirely by adding the proving key creating this directory manually and
4039
adding the key material yourself.
4140

42-
### 2.2 Build the Transaction Offline
43-
44-
Once the key material is downloaded, turn off your internet connection and run the following command:
45-
46-
`npm run dev`
47-
48-
You should see the transactions being built and the resulting transaction IDs printed to the console.
41+
Once the keys are downloaded to your local machine, the offline transactions will be built without requiring an internet connection.
4942

5043
## 3. Notes
5144

0 commit comments

Comments
 (0)