-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: improving getting started docs for
mainnet
(#3500)
- Loading branch information
Showing
23 changed files
with
285 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"fuels": patch | ||
--- | ||
|
||
docs: improving getting started docs for `mainnet` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<script setup> | ||
import { data } from '../../versions.data' | ||
const { fuels } = data | ||
</script> | ||
|
||
# CDN Usage (browser only) | ||
|
||
```html-vue | ||
<script type="module"> | ||
import { | ||
Wallet, | ||
Provider, | ||
} from "https://cdnjs.cloudflare.com/ajax/libs/fuels/{{fuels}}/browser.mjs"; | ||
const main = async () => { | ||
const provider = await Provider.create( | ||
"https://mainnet.fuel.network/v1/graphql", | ||
); | ||
const { name } = provider.getChain(); | ||
console.log(name); | ||
}; | ||
main(); | ||
</script> | ||
``` | ||
|
||
# More | ||
|
||
- [React Example](./react-example.md) |
10 changes: 0 additions & 10 deletions
10
apps/docs/src/guide/getting-started/connecting-to-a-local-node.md
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
apps/docs/src/guide/getting-started/connecting-to-testnet.md
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
apps/docs/src/guide/getting-started/connecting-to-the-network.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Connecting to the Network | ||
|
||
After [installing](./installation.md) the `fuels` package, it's easy to connect to the Network: | ||
|
||
<<< @./snippets/connecting-to-the-network.ts#main{ts:line-numbers} | ||
|
||
# RPC URLs | ||
|
||
These are our official RPC URLs: | ||
|
||
| Network | URL | | ||
| --------- | ----------------------------------------------------------- | | ||
| Mainnet | `https://testnet.fuel.network/v1/graphql` | | ||
| Testnet | `https://mainnet.fuel.network/v1/graphql` | | ||
| Localhost | [Running a local Fuel node](./running-a-local-fuel-node.md) | | ||
|
||
# Resources | ||
|
||
Access all our apps directly: | ||
|
||
| | Mainnet | Testnet | | ||
| -------- | ------------------------------------------ | ------------------------------------------ | | ||
| Faucet | — | https://faucet-testnet.fuel.network/ | | ||
| Explorer | https://app.fuel.network | https://app-testnet.fuel.network | | ||
| Bridge | https://app.fuel.network/bridge | https://app-testnet.fuel.network/bridge | | ||
| GraphQL | https://mainnet.fuel.network/v1/playground | https://testnet.fuel.network/v1/playground | |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
# Getting Started | ||
|
||
This guide will walk you through the process of setting up and using the Fuels-ts library in your front-end project. | ||
Welcome to `fuels` Typescript SDK! | ||
|
||
We prepared some guides to walk you through your first steps: | ||
|
||
1. [Installation](./installation.md) | ||
1. [Connecting to the Network](./connecting-to-the-network.md) | ||
1. [Running a local Fuel node](./running-a-local-fuel-node.md) | ||
1. [React Example](./react-example.md) | ||
1. [CDN Usage](./cdn-usage.md) | ||
1. [Next Steps](./next-steps.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Done! | ||
|
||
Wait no more, let's build your first Fuel dApp! | ||
|
||
- [Creating a Fuel dApp](../creating-a-fuel-dapp/) | ||
|
||
## Further Resources | ||
|
||
For a more in-depth, step-by-step guide on working with the wider Fuel ecosystem, check out the [Developer Quickstart](https://docs.fuel.network/guides/quickstart/), which uses a more procedural and detailed approach: | ||
|
||
1. Installing all tools needed to develop with the Fuel ecosystem | ||
1. Writing your first Sway Project | ||
1. Deploying your contract | ||
1. Building a simple front-end dApp to interact with your deployed contract |
Oops, something went wrong.