Skip to content

Commit 35aeaf8

Browse files
Renames tutorial to hello world. Adds account steps.
1 parent 8dbc6c3 commit 35aeaf8

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

content/reference/javascript-sdk/basic-end-to-end-example.md renamed to content/reference/javascript-sdk/hello-world.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@ title: "Hello world"
33
lead: "A straight-forward Node JS script that goes through the complete end-to-end Entropy flow. It's slightly more in-depth than your standard _hello world_ tutorial, but it's totally worth it."
44
---
55

6+
{{< callout type="warning" >}}
7+
The Entropy SDK is currently in alpha. While we're excited about its capabilities, keep in mind that breaking changes may occur, APIs might be unstable, and features and functionality may change. Do not use this SDK in a production environment.
8+
{{< /callout >}}
9+
610
## Prerequisites
711

8-
Before starting this tutorial, make sure you have Node v20.0.0 or above installed
12+
Before starting this tutorial, make sure you have
13+
14+
- Node v20 or above installed.
15+
- A [local devnet]({{< relref "spin-up-a-devnet" >}}) running.
916

1017
## Setting up your project
1118

@@ -23,9 +30,12 @@ Before starting this tutorial, make sure you have Node v20.0.0 or above installe
2330
npm install @entropyxyz/sdk
2431
```
2532

26-
## Creating your Entropy account
33+
## Managing an account
34+
35+
Since we're using a local devnet, we can use one of the available pre-funded accounts. In this tutorial, let's use the following:
2736

28-
Before we can use the code, you'll need to create an account.
37+
- `seed`: `0x29b55504652cedded9ce0ee1f5a25b328ae6c6e97827f84eee6315d0f44816d8`
38+
- `address`: `0xe0543c102def9f6ef0e8b8ffa31aa259167a9391566929fd718a1ccdaabdb876`
2939

3040
## Write the script
3141

@@ -59,8 +69,8 @@ These imports set up the fundamental building blocks needed to manage your crypt
5969
await wasmGlobalsReady();
6070
console.log('WASM initialized successfully');
6171
62-
// Replace this with your actual seed from the Entropy platform.
63-
const seed = '0x786ad0e2df456fe43dd1f91ebca22e235bc162e0bb8d53c633e8c85b2af68b7a';
72+
// Replace this the seed for the account you want to use.
73+
const seed = '0x29b55504652cedded9ce0ee1f5a25b328ae6c6e97827f84eee6315d0f44816d8';
6474
6575
// Initialize the keystore with your seed.
6676
const keyStore = { seed };
@@ -90,7 +100,7 @@ These imports set up the fundamental building blocks needed to manage your crypt
90100
}
91101
```
92102
93-
1. On line 8, enter the seed of your account.
103+
1. On line 8, enter the seed found earlier in this tutorial.
94104
1. Save the file and move onto the next section.
95105
96106
{{< callout type="info" >}}

0 commit comments

Comments
 (0)