@@ -146,7 +146,7 @@ interface FunctionKeyProvider {
146
146
*
147
147
*
148
148
* const keyProvider = new AleoKeyProvider();
149
- * const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
149
+ * const networkClient = new AleoNetworkClient({ host: "https://api.explorer.provable.com/v1" } );
150
150
* const recordProvider = new NetworkRecordProvider({ account, networkClient });
151
151
*
152
152
* // Initialize a program manager with the key provider to automatically fetch keys for value transfers
@@ -200,7 +200,7 @@ interface FunctionKeyProvider {
200
200
*
201
201
* @example
202
202
* // Create a new object which implements the KeyProvider interface
203
- * const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
203
+ * const networkClient = new AleoNetworkClient({ host: "https://api.explorer.provable.com/v1" } );
204
204
* const keyProvider = new AleoKeyProvider();
205
205
* const recordProvider = new NetworkRecordProvider({ account, networkClient });
206
206
*
@@ -328,7 +328,7 @@ class AleoKeyProvider implements FunctionKeyProvider {
328
328
*
329
329
* @example
330
330
* // Create a new object which implements the KeyProvider interface
331
- * const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
331
+ * const networkClient = new AleoNetworkClient({ host: "https://api.explorer.provable.com/v1" } );
332
332
* const keyProvider = new AleoKeyProvider();
333
333
* const recordProvider = new NetworkRecordProvider({ account, networkClient });
334
334
*
@@ -390,7 +390,7 @@ class AleoKeyProvider implements FunctionKeyProvider {
390
390
*
391
391
* @example
392
392
* // Create a new AleoKeyProvider object
393
- * const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
393
+ * const networkClient = new AleoNetworkClient({ host: "https://api.explorer.provable.com/v1" } );
394
394
* const keyProvider = new AleoKeyProvider();
395
395
* const recordProvider = new NetworkRecordProvider({ account, networkClient });
396
396
*
@@ -521,7 +521,7 @@ class AleoKeyProvider implements FunctionKeyProvider {
521
521
*
522
522
* @example
523
523
* // Create a new AleoKeyProvider
524
- * const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
524
+ * const networkClient = new AleoNetworkClient({ host: "https://api.explorer.provable.com/v1" } );
525
525
* const keyProvider = new AleoKeyProvider();
526
526
* const recordProvider = new NetworkRecordProvider({ account, networkClient });
527
527
*
0 commit comments