Skip to content

Commit 33ee0bf

Browse files
committed
Update API endpoint from api.explorer.provable.com/v1 to api.provable.com/v2
1 parent 84d4205 commit 33ee0bf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+313
-313
lines changed

create-leo-app/template-build-and-execute-authorization-ts/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const keyProvider = new AleoKeyProvider();
77
keyProvider.useCache(true);
88

99
// Initialize a program manager with the key provider to automatically fetch keys for executions.
10-
const programManager = new ProgramManager("https://api.explorer.provable.com/v1", keyProvider);
10+
const programManager = new ProgramManager("https://api.provable.com/v2", keyProvider);
1111

1212
// Build the `Authorization`.
1313
const privateKey = new PrivateKey(); // Change this to a private key that has an aleo credit balance.

create-leo-app/template-react-leo/src/workers/worker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async function deployProgram(program) {
3737
keyProvider.useCache(true);
3838

3939
// Create a record provider that will be used to find records and transaction data for Aleo programs
40-
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
40+
const networkClient = new AleoNetworkClient("https://api.provable.com/v2");
4141

4242
// Use existing account with funds
4343
const account = new Account({
@@ -48,7 +48,7 @@ async function deployProgram(program) {
4848

4949
// Initialize a program manager to talk to the Aleo network with the configured key and record providers
5050
const programManager = new ProgramManager(
51-
"https://api.explorer.provable.com/v1",
51+
"https://api.provable.com/v2",
5252
keyProvider,
5353
recordProvider,
5454
);

create-leo-app/template-react-ts/src/workers/worker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ async function deployProgram(program) {
3838
keyProvider.useCache(true);
3939

4040
// Create a record provider that will be used to find records and transaction data for Aleo programs
41-
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
41+
const networkClient = new AleoNetworkClient("https://api.provable.com/v2");
4242

4343
// Use existing account with funds
4444
const account = new Account({
@@ -49,7 +49,7 @@ async function deployProgram(program) {
4949

5050
// Initialize a program manager to talk to the Aleo network with the configured key and record providers
5151
const programManager = new ProgramManager(
52-
"https://api.explorer.provable.com/v1",
52+
"https://api.provable.com/v2",
5353
keyProvider,
5454
recordProvider,
5555
);

create-leo-app/template-vanilla/worker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async function deployProgram(program) {
4545
keyProvider.useCache(true);
4646

4747
// Create a record provider that will be used to find records and transaction data for Aleo programs
48-
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
48+
const networkClient = new AleoNetworkClient("https://api.provable.com/v2");
4949

5050
// Use existing account with funds
5151
const account = new Account({
@@ -56,7 +56,7 @@ async function deployProgram(program) {
5656

5757
// Initialize a program manager to talk to the Aleo network with the configured key and record providers
5858
const programManager = new ProgramManager(
59-
"https://api.explorer.provable.com/v1",
59+
"https://api.provable.com/v2",
6060
keyProvider,
6161
recordProvider,
6262
);

docs/api_reference/sdk-src_account.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ __*return*__ | [RecordPlaintext](sdk-src_wasm.md) | *The decrypted record plaint
236236
import { AleoNetworkClient, Account } from "@provablehq/sdk/testnet.js";
237237

238238
// Create a connection to the Aleo network and an account
239-
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
239+
const networkClient = new AleoNetworkClient("https://api.provable.com/v2");
240240
const account = Account.fromCiphertext(process.env.ciphertext!, process.env.password!);
241241

242242
// Get the record ciphertexts from a transaction.
@@ -272,7 +272,7 @@ __*return*__ | `Array.<RecordPlaintext>` | *An array of decrypted record plainte
272272
import { AleoNetworkClient, Account } from "@provablehq/sdk/testnet.js";
273273

274274
// Create a connection to the Aleo network and an account
275-
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
275+
const networkClient = new AleoNetworkClient("https://api.provable.com/v2");
276276
const account = Account.fromCiphertext(process.env.ciphertext!, process.env.password!);
277277

278278
// Get the record ciphertexts from a transaction.
@@ -358,7 +358,7 @@ __*return*__ | `boolean` | *True if the account owns the record, false otherwise
358358
import { AleoNetworkClient, Account } from "@provablehq/sdk/testnet.js";
359359

360360
// Create a connection to the Aleo network and an account
361-
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
361+
const networkClient = new AleoNetworkClient("https://api.provable.com/v2");
362362
const account = Account.fromCiphertext(process.env.ciphertext!, process.env.password!);
363363

364364
// Get the record ciphertexts from a transaction and check ownership of them.
@@ -620,7 +620,7 @@ __*return*__ | [RecordPlaintext](sdk-src_wasm.md) | *The decrypted record plaint
620620
import { AleoNetworkClient, Account } from "@provablehq/sdk/testnet.js";
621621

622622
// Create a connection to the Aleo network and an account
623-
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
623+
const networkClient = new AleoNetworkClient("https://api.provable.com/v2");
624624
const account = Account.fromCiphertext(process.env.ciphertext!, process.env.password!);
625625

626626
// Get the record ciphertexts from a transaction.
@@ -656,7 +656,7 @@ __*return*__ | `Array.<RecordPlaintext>` | *An array of decrypted record plainte
656656
import { AleoNetworkClient, Account } from "@provablehq/sdk/testnet.js";
657657

658658
// Create a connection to the Aleo network and an account
659-
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
659+
const networkClient = new AleoNetworkClient("https://api.provable.com/v2");
660660
const account = Account.fromCiphertext(process.env.ciphertext!, process.env.password!);
661661

662662
// Get the record ciphertexts from a transaction.
@@ -742,7 +742,7 @@ __*return*__ | `boolean` | *True if the account owns the record, false otherwise
742742
import { AleoNetworkClient, Account } from "@provablehq/sdk/testnet.js";
743743

744744
// Create a connection to the Aleo network and an account
745-
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
745+
const networkClient = new AleoNetworkClient("https://api.provable.com/v2");
746746
const account = Account.fromCiphertext(process.env.ciphertext!, process.env.password!);
747747

748748
// Get the record ciphertexts from a transaction and check ownership of them.

docs/api_reference/sdk-src_function-key-provider.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ __*return*__ | `Promise.<FunctionKeyPair>` | *Proving and verifying keys for the
123123

124124
```javascript
125125
// Create a new object which implements the KeyProvider interface
126-
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
126+
const networkClient = new AleoNetworkClient("https://api.provable.com/v2");
127127
const keyProvider = new AleoKeyProvider();
128128
const recordProvider = new NetworkRecordProvider(account, networkClient);
129129

130130
// Initialize a program manager with the key provider to automatically fetch keys for value transfers
131-
const programManager = new ProgramManager("https://api.explorer.provable.com/v1", keyProvider, recordProvider);
131+
const programManager = new ProgramManager("https://api.provable.com/v2", keyProvider, recordProvider);
132132
programManager.transfer(1, "aleo166q6ww6688cug7qxwe7nhctjpymydwzy2h7rscfmatqmfwnjvggqcad0at", "public", 0.5);
133133

134134
// Keys can also be fetched manually using the key provider
@@ -155,12 +155,12 @@ __*return*__ | `Promise.<FunctionKeyPair>` | *Proving and verifying keys for the
155155

156156
```javascript
157157
// Create a new AleoKeyProvider object
158-
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
158+
const networkClient = new AleoNetworkClient("https://api.provable.com/v2");
159159
const keyProvider = new AleoKeyProvider();
160160
const recordProvider = new NetworkRecordProvider(account, networkClient);
161161

162162
// Initialize a program manager with the key provider to automatically fetch keys for value transfers
163-
const programManager = new ProgramManager("https://api.explorer.provable.com/v1", keyProvider, recordProvider);
163+
const programManager = new ProgramManager("https://api.provable.com/v2", keyProvider, recordProvider);
164164
programManager.transfer(1, "aleo166q6ww6688cug7qxwe7nhctjpymydwzy2h7rscfmatqmfwnjvggqcad0at", "public", 0.5);
165165

166166
// Keys can also be fetched manually
@@ -187,12 +187,12 @@ __*return*__ | `Promise.<FunctionKeyPair>` | *Proving and verifying keys for the
187187

188188
```javascript
189189
// Create a new AleoKeyProvider
190-
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
190+
const networkClient = new AleoNetworkClient("https://api.provable.com/v2");
191191
const keyProvider = new AleoKeyProvider();
192192
const recordProvider = new NetworkRecordProvider(account, networkClient);
193193

194194
// Initialize a program manager with the key provider to automatically fetch keys for value transfers
195-
const programManager = new ProgramManager("https://api.explorer.provable.com/v1", keyProvider, recordProvider);
195+
const programManager = new ProgramManager("https://api.provable.com/v2", keyProvider, recordProvider);
196196
programManager.transfer(1, "aleo166q6ww6688cug7qxwe7nhctjpymydwzy2h7rscfmatqmfwnjvggqcad0at", "public", 0.5);
197197

198198
// Keys can also be fetched manually
@@ -373,12 +373,12 @@ __*return*__ | `Promise.<FunctionKeyPair>` | *Proving and verifying keys for the
373373

374374
```javascript
375375
// Create a new object which implements the KeyProvider interface
376-
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
376+
const networkClient = new AleoNetworkClient("https://api.provable.com/v2");
377377
const keyProvider = new AleoKeyProvider();
378378
const recordProvider = new NetworkRecordProvider(account, networkClient);
379379

380380
// Initialize a program manager with the key provider to automatically fetch keys for value transfers
381-
const programManager = new ProgramManager("https://api.explorer.provable.com/v1", keyProvider, recordProvider);
381+
const programManager = new ProgramManager("https://api.provable.com/v2", keyProvider, recordProvider);
382382
programManager.transfer(1, "aleo166q6ww6688cug7qxwe7nhctjpymydwzy2h7rscfmatqmfwnjvggqcad0at", "public", 0.5);
383383

384384
// Keys can also be fetched manually using the key provider
@@ -405,12 +405,12 @@ __*return*__ | `Promise.<FunctionKeyPair>` | *Proving and verifying keys for the
405405

406406
```javascript
407407
// Create a new AleoKeyProvider object
408-
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
408+
const networkClient = new AleoNetworkClient("https://api.provable.com/v2");
409409
const keyProvider = new AleoKeyProvider();
410410
const recordProvider = new NetworkRecordProvider(account, networkClient);
411411

412412
// Initialize a program manager with the key provider to automatically fetch keys for value transfers
413-
const programManager = new ProgramManager("https://api.explorer.provable.com/v1", keyProvider, recordProvider);
413+
const programManager = new ProgramManager("https://api.provable.com/v2", keyProvider, recordProvider);
414414
programManager.transfer(1, "aleo166q6ww6688cug7qxwe7nhctjpymydwzy2h7rscfmatqmfwnjvggqcad0at", "public", 0.5);
415415

416416
// Keys can also be fetched manually
@@ -437,12 +437,12 @@ __*return*__ | `Promise.<FunctionKeyPair>` | *Proving and verifying keys for the
437437

438438
```javascript
439439
// Create a new AleoKeyProvider
440-
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
440+
const networkClient = new AleoNetworkClient("https://api.provable.com/v2");
441441
const keyProvider = new AleoKeyProvider();
442442
const recordProvider = new NetworkRecordProvider(account, networkClient);
443443

444444
// Initialize a program manager with the key provider to automatically fetch keys for value transfers
445-
const programManager = new ProgramManager("https://api.explorer.provable.com/v1", keyProvider, recordProvider);
445+
const programManager = new ProgramManager("https://api.provable.com/v2", keyProvider, recordProvider);
446446
programManager.transfer(1, "aleo166q6ww6688cug7qxwe7nhctjpymydwzy2h7rscfmatqmfwnjvggqcad0at", "public", 0.5);
447447

448448
// Keys can also be fetched manually

0 commit comments

Comments
 (0)