You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[CLI - Command Line Client](#CLI---Command-Line-Client)
34
-
-[Contributing](#Contributing)
35
-
-[Change Log](#Change-Log)
36
-
-[License](#License)
37
-
38
-
## Quick Start
39
-
40
-
### 1. Install SDK
41
-
#### A) Simple Usage: with `<script>` tag
42
-
For those not using any JS bundling/complilation or compilation technique or tools like [_Codepen_](https://codepen.io/pen/) or similar online Editors, please check our [**Import SDK bundle with `<script>` tag**](docs/guides/import-script-tag.md).
43
-
44
-
If you're using bundling/compilation techniques (eg. `webpack`), please continue reading.
45
-
46
-
#### B) Advanced Usage: with `npm` or similar
47
-
Add the latest `@aeternity/aepp-sdk` release from npmjs.com to your project using one of these commands
48
-
49
-
```bash
50
-
# install using npm...or yarn or pnpm
51
-
npm i @aeternity/aepp-sdk
52
-
```
53
-
54
-
**Note:** To install a _Pre-Release_ (latest `beta` or `alpha` version) using on the latest Node version, you have to install the package appending the `@next` tag reference, or even use the `#` symbol and the Repo URL to install a version coming from a specific branch.
55
-
```bash
56
-
# install the @next version of the SDK
57
-
npm i @aeternity/aepp-sdk@next
58
-
59
-
# install the #develop version of the SDK
60
-
npm i https://github.com/aeternity/aepp-sdk-js#develop
61
-
```
62
-
63
-
**Note** : If you experience errors during the installation, you might need to install build tools for your OS.
64
-
65
-
Windows: Windows Build Tools
66
-
```
67
-
npm install -g windows-build-tools
68
-
```
69
-
Ubuntu / Debian: Build Essential
70
-
```
71
-
sudo apt-get update
72
-
sudo apt-get install build-essential
73
-
```
74
-
Mac:
75
-
Download [Xcode](https://apps.apple.com/de/app/xcode/id497799835?mt=12) from AppStore, then run
76
-
```
77
-
xcode-select --install
78
-
```
79
-
80
-
### 2. Create an Account
81
-
You can do many more things now, but you'll probably have to start with:
82
-
83
-
#### A) Using the Command Line
84
-
Create an account using the [💻 CLI](#cli---command-line-client)
85
-
86
-
#### B) Using the SDK
87
-
88
-
```javascript
89
-
import { Crypto } from'@aeternity/aepp-sdk/es'
90
-
constkeypair=Crypto.generateKeyPair()
91
-
console.log(`Secret key: ${keypair.secretKey}`)
92
-
console.log(`Public key: ${keypair.publicKey}`)
93
-
```
94
-
95
-
### 3. Give yourself some _AE_ tokens
96
-
To get yourself some _AEs_ you can use the [🚰 Faucet Aepp](https://faucet.aepps.com/). Just add your publicKey, and you'll immediately get some test tokens.
97
-
98
-
99
-
### 4. Import (a chosen Flavor)
100
-
101
-
Import the right [flavor](docs/README.md#flavors--entry-points). For this example with get the `Universal` flavor, which contains all the features of the SDK:
102
-
103
-
```js
104
-
// Import Flavor
105
-
importAefrom'@aeternity/aepp-sdk/es/ae/universal'// or other flavor
106
-
```
107
-
108
-
### 5. Play with Aetenity's blockchain features
109
-
110
-
```js
111
-
// Use Flavor
112
-
importAefrom'@aeternity/aepp-sdk/es/ae/universal'// or other flavor
113
-
importMemoryAccountfrom'@aeternity/aepp-sdk/es/account/memory'// or other flavor
114
-
importNodefrom'@aeternity/aepp-sdk/es/node'// or other flavor
0 commit comments