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
* @param {number} fee Fee to pay for the transaction
232
+
* @param {boolean} privateFee Use a private record to pay the fee. If false this will use the account's public credit balance
233
+
* @param {RecordSearchParams | undefined} recordSearchParams Optional parameters for searching for a record to use
234
+
* pay the deployment fee
235
+
* @param {string | RecordPlaintext | undefined} feeRecord Optional Fee record to use for the transaction
236
+
* @param {PrivateKey | undefined} privateKey Optional private key to use for the transaction
237
+
* @returns {string} The transaction id of the deployed program or a failure message from the network
238
+
*
239
+
* @example
240
+
* // Create a new NetworkClient, KeyProvider, and RecordProvider
241
+
* const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
242
+
* const keyProvider = new AleoKeyProvider();
243
+
* const recordProvider = new NetworkRecordProvider(account, networkClient);
244
+
*
245
+
* // Initialize a program manager with the key provider to automatically fetch keys for deployments
246
+
* const program = "program hello_hello.aleo;\n\nfunction hello:\n input r0 as u32.public;\n input r1 as u32.private;\n add r0 r1 into r2;\n output r2 as u32.private;\n";
247
+
* const programManager = new ProgramManager("https://api.explorer.provable.com/v1", keyProvider, recordProvider);
0 commit comments