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
@@ -74,7 +74,7 @@ To secure your keypair and money, you must export it and save it somewhere secur
74
74
```
75
75
=== "Windows"
76
76
```PowerShell
77
-
pchain_client.exe keys export --name <NAME>
77
+
./pchain_client.exe keys export --name <NAME>
78
78
```
79
79
80
80
You will be asked to input your password to export the keypair. The keypair will be saved in the current directory, in JSON format, with the same name as the keypair itself.
@@ -88,7 +88,7 @@ To add your keypair, type the following command below:
Copy file name to clipboardExpand all lines: docs/getting_started/staking.md
+45-45Lines changed: 45 additions & 45 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ First, before you stake, you have to lock up (stake) some balance tied to an ope
17
17
=== "Linux / macOS"
18
18
```bash
19
19
./pchain_client transaction create \
20
-
--nonce <NONCE> \
20
+
--nonce <NONCE> \
21
21
--gas-limit <GAS_LIMIT> \
22
22
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
23
23
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
@@ -28,14 +28,14 @@ First, before you stake, you have to lock up (stake) some balance tied to an ope
28
28
```
29
29
=== "Windows"
30
30
```PowerShell
31
-
pchain_client.exe transaction create \
32
-
--nonce <NONCE> \
33
-
--gas-limit <GAS_LIMIT> \
34
-
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
35
-
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
36
-
deposit create \
37
-
--operator <OPERATOR_ADDRESS> \
38
-
--balance <BALANCE> \
31
+
./pchain_client.exe transaction create `
32
+
--nonce <NONCE> `
33
+
--gas-limit <GAS_LIMIT> `
34
+
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> `
35
+
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> `
36
+
deposit create `
37
+
--operator <OPERATOR_ADDRESS> `
38
+
--balance <BALANCE> `
39
39
--auto-stake-rewards
40
40
```
41
41
The last flag for `auto-stake-rewards` is optional. By default, it is false. It indicates whether your rewards should be staked to the Pool in each epoch.
@@ -57,7 +57,7 @@ After creating a Deposit in a Pool, use the CLI subcommands `deposit top-up` if
57
57
=== "Linux / macOS"
58
58
```bash
59
59
./pchain_client transaction create \
60
-
--nonce <NONCE> \
60
+
--nonce <NONCE> \
61
61
--gas-limit <GAS_LIMIT> \
62
62
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
63
63
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
@@ -67,13 +67,13 @@ After creating a Deposit in a Pool, use the CLI subcommands `deposit top-up` if
67
67
```
68
68
=== "Windows"
69
69
```PowerShell
70
-
pchain_client.exe transaction create \
71
-
--nonce <NONCE> \
72
-
--gas-limit <GAS_LIMIT> \
73
-
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
74
-
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
75
-
deposit top-up \
76
-
--operator <OPERATOR_ADDRESS> \
70
+
./pchain_client.exe transaction create `
71
+
--nonce <NONCE> `
72
+
--gas-limit <GAS_LIMIT> `
73
+
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> `
74
+
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> `
75
+
deposit top-up `
76
+
--operator <OPERATOR_ADDRESS> `
77
77
--amount <AMOUNT>
78
78
```
79
79
@@ -85,7 +85,7 @@ You specified the flag `auto-stake-rewards` when you created the Deposit. You ca
85
85
=== "Linux / macOS"
86
86
```bash
87
87
./pchain_client transaction create \
88
-
--nonce <NONCE> \
88
+
--nonce <NONCE> \
89
89
--gas-limit <GAS_LIMIT> \
90
90
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
91
91
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
@@ -95,13 +95,13 @@ You specified the flag `auto-stake-rewards` when you created the Deposit. You ca
95
95
```
96
96
=== "Windows"
97
97
```PowerShell
98
-
pchain_client.exe transaction create \
99
-
--nonce <NONCE> \
100
-
--gas-limit <GAS_LIMIT> \
101
-
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
102
-
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
103
-
deposit update-settings \
104
-
--operator <OPERATOR_ADDRESS> \
98
+
./pchain_client.exe transaction create `
99
+
--nonce <NONCE> `
100
+
--gas-limit <GAS_LIMIT> `
101
+
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> `
102
+
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> `
103
+
deposit update-settings `
104
+
--operator <OPERATOR_ADDRESS> `
105
105
--auto-stake-rewards
106
106
```
107
107
@@ -113,7 +113,7 @@ After you create a Deposit to a Pool, you should now stake some amount of it to
113
113
=== "Linux / macOS"
114
114
```bash
115
115
./pchain_client transaction create \
116
-
--nonce <NONCE> \
116
+
--nonce <NONCE> \
117
117
--gas-limit <GAS_LIMIT> \
118
118
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
119
119
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
@@ -123,13 +123,13 @@ After you create a Deposit to a Pool, you should now stake some amount of it to
123
123
```
124
124
=== "Windows"
125
125
```PowerShell
126
-
pchain_client.exe transaction create \
127
-
--nonce <NONCE> \
128
-
--gas-limit <GAS_LIMIT> \
129
-
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
130
-
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
131
-
stake stake \
132
-
--operator <OPERATOR_ADDRESS> \
126
+
./pchain_client.exe transaction create `
127
+
--nonce <NONCE> `
128
+
--gas-limit <GAS_LIMIT> `
129
+
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> `
130
+
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> `
131
+
stake stake `
132
+
--operator <OPERATOR_ADDRESS> `
133
133
--max-amount <MAX_AMOUNT>
134
134
```
135
135
@@ -140,7 +140,7 @@ You can also unstake your stake on with the CLI subcommand `stake unstake`.
140
140
=== "Linux / macOS"
141
141
```bash
142
142
./pchain_client transaction create \
143
-
--nonce <NONCE> \
143
+
--nonce <NONCE> \
144
144
--gas-limit <GAS_LIMIT> \
145
145
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
146
146
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
@@ -150,11 +150,11 @@ You can also unstake your stake on with the CLI subcommand `stake unstake`.
150
150
```
151
151
=== "Windows"
152
152
```PowerShell
153
-
pchain_client.exe transaction create
154
-
--nonce <NONCE> \
153
+
./pchain_client.exe transaction create
154
+
--nonce <NONCE> \
155
155
--gas-limit <GAS_LIMIT> \
156
156
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
157
-
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
157
+
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
158
158
stake unstake \
159
159
--operator <OPERATOR_ADDRESS> \
160
160
--max-amount <MAX_AMOUNT>
@@ -176,10 +176,10 @@ Suppose you created the transaction file (i.e. `tx.json`) from the step [Creatin
176
176
```
177
177
=== "Windows"
178
178
```PowerShell
179
-
pchain_client.exe transaction append \
180
-
--file <PATH_TO_TRANSACTION_FILE> \
181
-
stake stake \
182
-
--operator <OPERATOR_ADDRESS> \
179
+
./pchain_client.exe transaction append `
180
+
--file <PATH_TO_TRANSACTION_FILE> `
181
+
stake stake `
182
+
--operator <OPERATOR_ADDRESS> `
183
183
--max-amount <MAX_AMOUNT>
184
184
```
185
185
@@ -193,7 +193,7 @@ Your Deposit can be increased due to reward distribution in each epoch. If you w
193
193
=== "Linux / macOS"
194
194
```bash
195
195
./pchain_client transaction create
196
-
--nonce <NONCE> \
196
+
--nonce <NONCE> \
197
197
--gas-limit <GAS_LIMIT> \
198
198
--max-base-fee-per-gas <MAX_BASE_FEE_PER_GAS> \
199
199
--priority-fee-per-gas <PRIORITY_FEE_PER_GAS> \
@@ -203,11 +203,11 @@ Your Deposit can be increased due to reward distribution in each epoch. If you w
The gas limit required for the transaction depends on the complexity of the smart contract. For safety reasons, you can always set a higher gas limit. You can also test contract calls on testnet to reassure.
@@ -80,7 +80,7 @@ To query the resulting receipt of the transaction,
The commands stored in `transaction` and command receipts in `receipt` are following the same order. That means you can always find the corresponding transaction from a command receipt.
@@ -98,7 +98,7 @@ For example, if the contract method returns a u32 integer, the `return value` is
The output will be the parsed value of the `CallResult`, which in this case is `4`. For more details, you can use the `help` command to see the usage of the tool or take a look at the example `argument,json`.
0 commit comments