@@ -37,7 +37,7 @@ const { Codex } = require("@codex-storage/sdk-js");
3737To create a Codex instance, provide the REST API url to interact with the Codex client:
3838
3939``` js
40- const codex = new Codex (" http://localhost:3000 " );
40+ const codex = new Codex (" http://localhost:8080 " );
4141```
4242
4343Then you can access any module like this:
@@ -61,7 +61,7 @@ const { Codex } = require("@codex-storage/sdk-js/async");
6161To create a Codex instance, provide the REST API url to interact with the Codex client:
6262
6363``` js
64- const codex = new Codex (" http://localhost:3000 " );
64+ const codex = new Codex (" http://localhost:8080 " );
6565```
6666
6767To use a module, you need to use the await syntax. If the module is not loaded yet, it will be imported first and then cached in memory.
@@ -75,7 +75,7 @@ const marketplace = await codex.marketplace();
7575You can use basic authentication when creating a new Codex object:
7676
7777``` js
78- const codex = new Codex (" http://localhost:3000 " , {
78+ const codex = new Codex (" http://localhost:8080 " , {
7979 auth: {
8080 basic: " MY BASIC AUTH SECRET"
8181 }
@@ -122,7 +122,7 @@ if (slots.error) {
122122The following API assume that you have already a marketplace module loaded, example:
123123
124124``` js
125- const codex = new Codex (" http://localhost:3000 " );
125+ const codex = new Codex (" http://localhost:8080 " );
126126// When using the async api
127127const marketplace = await codex .marketplace ();
128128
@@ -270,7 +270,7 @@ const purchase = await marketplace.purchaseDetail(purchaseId);
270270The following API assume that you have already a data module loaded, example:
271271
272272``` js
273- const codex = new Codex (" http://localhost:3000 " );
273+ const codex = new Codex (" http://localhost:8080 " );
274274// When using the async api
275275const data = await codex .data ();
276276
@@ -406,7 +406,7 @@ const result = await data.localDownload(cid);
406406The following API assume that you have already a node module loaded, example:
407407
408408``` js
409- const codex = new Codex (" http://localhost:3000 " );
409+ const codex = new Codex (" http://localhost:8080 " );
410410// When using the async api
411411const data = await codex .debug ();
412412
@@ -444,7 +444,7 @@ const info = await debug.info();
444444The following API assume that you have already a node module loaded, example:
445445
446446``` js
447- const codex = new Codex (" http://localhost:3000 " );
447+ const codex = new Codex (" http://localhost:8080 " );
448448// When using the async api
449449const node = await codex .node ();
450450
0 commit comments