Skip to content

Commit

Permalink
fix local endpoints (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahschwartz authored Jun 3, 2024
1 parent 45ce557 commit 0c06426
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/guides/docs/frontend-quickstart/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ npm run fuels:dev

</CodeTabs>

The local endpoint for node will be `http://localhost:4000/graphql`.
The local endpoint for node will be `http://localhost:4000/v1/graphql`.

Next, open a new terminal in the project directory, and run the following command to start the frontend:

Expand Down
6 changes: 3 additions & 3 deletions docs/guides/docs/running-a-node/running-a-local-node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ fuel-core run --db-type in-memory --debug --snapshot ./your/path/to/chain_config
To deploy a contract to the local node, run the following command:

```sh
forc deploy <signing-key> --node-url 127.0.0.1:4000/graphql
forc deploy <signing-key> --node-url 127.0.0.1:4000/v1/graphql
```

Or to deploy with the default signer that is pre-funded by fuel-core:

```sh
forc deploy --default-signer --node-url 127.0.0.1:4000/graphql
forc deploy --default-signer --node-url 127.0.0.1:4000/v1/graphql
```

## Chain Configuration
Expand Down Expand Up @@ -101,5 +101,5 @@ fuel-core run --ip 127.0.0.1 --port 4000 --snapshot ./your/path/to/chain_config_
To connect to the local node using a browser wallet, import the network address as:

```sh
http://127.0.0.1:4000/graphql
http://127.0.0.1:4000/v1/graphql
```
2 changes: 1 addition & 1 deletion docs/guides/docs/running-a-node/running-a-testnet-node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ To connect to the local node using a browser wallet, import the network address
{/*// ANCHOR: connecting_to_local_node_endpoint*/}

```sh
http://0.0.0.0:4000/graphql
http://0.0.0.0:4000/v1/graphql
```

{/*// ANCHOR_END: connecting_to_local_node_endpoint*/}

0 comments on commit 0c06426

Please sign in to comment.