Skip to content

Commit d2d205a

Browse files
committed
Updating Kryptokrona SDK docs
1 parent 3eb4c56 commit d2d205a

File tree

11 files changed

+60
-192
lines changed

11 files changed

+60
-192
lines changed

SUMMARY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
* [Websockets](developer/hugin-api/websockets.md)
4646
* [Sponsors](developer/hugin-api/sponsors.md)
4747
* [Contribute](developer/hugin-api/contribute.md)
48+
* [🧰 Kryptokrona SDK](developer/kryptokrona-sdk/README.md)
49+
* [Getting Started](developer/kryptokrona-sdk/GettingStarted.md)
50+
* [How To Use Kryptokrona SDK](developer/kryptokrona-sdk/HowToUse.md)
4851
* [🎓 Guides](guides/README.md)
4952
* [📈 How to buy XKR](guides/How-to-buy-xkr.md)
5053
* [🤖 Using the Discord Bot](guides/Using-kryptokrona-bot.md)

developer/kryptokrona-sdk/Building.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

developer/kryptokrona-sdk/CICD.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

developer/kryptokrona-sdk/Contribute.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

developer/kryptokrona-sdk/Dependencies.md

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: Getting Started
3+
---
4+
5+
To install Kryptokrona SDK into your Maven/Gradle project we need to include the dependency:
6+
7+
**Maven**
8+
```xml
9+
<dependency>
10+
<groupId>org.kryptokrona.sdk</groupId>
11+
<artifactId>kryptokrona-core</artifactId>
12+
<version>0.1.0</version>
13+
<scope>implementation</scope>
14+
</dependency>
15+
16+
<dependency>
17+
<groupId>org.kryptokrona.sdk</groupId>
18+
<artifactId>kryptokrona-http</artifactId>
19+
<version>0.1.0</version>
20+
<scope>implementation</scope>
21+
</dependency>
22+
```
23+
24+
**Gradle**
25+
```gradle
26+
dependencies {
27+
implementation 'org.kryptokrona.sdk:kryptokrona-core:0.1.0'
28+
implementation 'org.kryptokrona.sdk:kryptokrona-http:0.1.0'
29+
}
30+
```
31+
32+
**Gradle Kotlin DSL**
33+
```kotlin
34+
dependencies {
35+
implementation("org.kryptokrona.sdk:kryptokrona-core:0.1.0")
36+
implementation("org.kryptokrona.sdk:kryptokrona-http:0.1.0")
37+
}
38+
```

developer/kryptokrona-sdk/Github-Pages.md

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: How To Use Kryptokrona SDK
3+
---
4+
5+
A simple example of how to retrive blocks:
6+
7+
```kotlin
8+
fun main(args: Array<String>) = runBlocking {
9+
val node = Node("privacymine.net", 11898, false)
10+
val blockClient = BlockClient(node)
11+
12+
blockClient.getBlocks().let {
13+
println("Blocks: ${it?.blocks?.size}")
14+
}
15+
}
16+
```

developer/kryptokrona-sdk/Installation.md

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
# 🧰 Kryptokrona SDK
1+
# 🧰 Kryptokrona SDK
2+
3+
Kryptokrona SDK for Kotlin is currently the most fully featured implementation of the Kryptokrona Network protocols and includes many useful components and tools for building decentralized private communication and payment systems.

0 commit comments

Comments
 (0)