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
* Create an unsigned online key registration transaction
168
+
*
169
+
* Parameters for online key registration.
170
+
* - sender: The address of the account that will send the transaction
171
+
* - voteKey: The root participation public key
172
+
* - selectionKey: The VRF public key
173
+
* - voteFirst: The first round that the participation key is valid. Not to be confused with the firstValid round of the keyreg transaction
174
+
* - voteLast: The last round that the participation key is valid. Not to be confused with the lastValid round of the keyreg transaction
175
+
* - voteKeyDilution: This is the dilution for the 2-level participation key. It determines the interval (number of rounds) for generating new ephemeral keys
sender: randomAccountA,// The address of the account sending the transaction
168
-
voteKey: newUint8Array(),// The root participation public key
169
-
selectionKey: newUint8Array(),// The VRF public key
170
-
voteFirst: 1000n,// The first round that the participation key is valid. Not to be confused with the firstValid round of the keyreg transaction
171
-
voteLast: 2000n,// The last round that the participation key is valid. Not to be confused with the lastValid round of the keyreg transaction
172
-
voteKeyDilution: 10n,// This is the dilution for the 2-level participation key. It determines the interval (number of rounds) for generating new ephemeral keys
178
+
sender: randomAccountA,
179
+
voteKey: newUint8Array(),
180
+
selectionKey: newUint8Array(),
181
+
voteFirst: 1000n,
182
+
voteLast: 2000n,
183
+
voteKeyDilution: 10n,
173
184
})
174
-
// example: KEY_REG_ONLINE_TRANSACTION
185
+
// example: KEY_REGISTRATION_ONLINE_TRANSACTION
175
186
176
-
// example: KEY_REG_OFFLINE_TRANSACTION
187
+
// example: KEY_REGISTRATION_OFFLINE_TRANSACTION
188
+
/**
189
+
* Create an unsigned offline key registration transaction
190
+
*
191
+
* Parameters for offline key registration.
192
+
* - sender: The address of the account that will send the transaction
193
+
* - preventAccountFromEverParticipatingAgain: Whether to prevent the account from ever participating again
0 commit comments