# Presentation and new light web client Ğ1nkgo

**URL:** https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701
**Category:** Presentations
**Tags:** flutter, ginkgo, dart
**Created:** [4 March 2023 21:38 UTC](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701 "2023-03-04T21:38:49Z")
**Posts on this page:** 20
**Page:** 4

<div class="post-metadata">

### Author: ![flodef](https://forum.duniter.org/user_avatar/forum.duniter.org/flodef/32/8598_2.png) [@flodef](https://forum.duniter.org/u/flodef)
#### Post date: [18 April 2023 12:02 UTC](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701/61 "2023-04-18T12:02:46Z")

</div>

> [@Frederic\_Renault](#):
>
> I know, but as I cannot restore from backup, I think this wallet is locked

Have you deleted the local storage on your phone ?  
If not, the wallet is still accessible and you can try to export your private key again.

---

<div class="post-metadata">

### Author: ![Maaltir](https://forum.duniter.org/user_avatar/forum.duniter.org/maaltir/32/5039_2.png) [@Maaltir](https://forum.duniter.org/u/Maaltir)
#### Post date: [19 April 2023 07:59 UTC](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701/62 "2023-04-19T07:59:11Z")

</div>

> [@vjrj](#):
>
> I’m not a member and I’m quite newbie in this ecosystem so I’m don’t know yet how the DU works well (more than is something variable). But let me arrive.

Je ne suis pas développeur, mais je crois qu’il est assez simple via l’API de récupérer la valeur du DUğ1 courant, ensuite une simple division permet l’affichage en nombre de DUğ1. Et une simple multiplication permet de faire un paiement en DUğ1.

Le DUğ1 étant la base de la monnaie libre Ğ1, il me semble indispensable de pouvoir utiliser cette unité pour l’affichage des prix et les paiements en monnaie libre.  
Sans cette fonctionnalité, une application ne me semble pas pleinement utilisable.

I’m not a developer, but I think it’s pretty straightforward via the API to retrieve the value of the current DUğ1, then a simple division allows the display in number of DUğ1. And a simple multiplication allows for a payment in DUğ1.

As the DUğ1 is the basis of the free currency Ğ1, it seems to me essential to be able to use this unit for displaying prices and payments in free currency.  
Without this functionality, an application does not seem to me fully usable.

Translated with [DeepL Translate: The world's most accurate translator](http://www.DeepL.com/Translator) (free version)

---

<div class="post-metadata">

### Author: ![poka](https://forum.duniter.org/user_avatar/forum.duniter.org/poka/32/6827_2.png) [@poka](https://forum.duniter.org/u/poka)
#### Post date: [19 April 2023 16:12 UTC](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701/63 "2023-04-19T16:12:54Z")

</div>

> [@Maaltir](#):
>
> retrieve the value of the current DUğ1

yes @vjrj you have the method `getCurrentUd()` in Durt to get the current UD value: [test/gva\_test.dart · master · clients / durt · GitLab](https://git.duniter.org/pokapow/durt/-/blob/master/test/gva_test.dart#L55)

```auto
query {
  currentUd {
    amount
  }
}

```

By default the result of this query is in ğ1 cents, Durt [converts it](https://git.duniter.org/pokapow/durt/-/blob/master/lib/src/gva/gva.dart#L79) to ğ1.

You just have to multiply the values in G1 everywere in your app by this result to get the values in DU/G1.  
Same thing for UD transaction, just multiply g1 amount with UD value to make the transaction in UD mode. This is relativity 😉

---

<div class="post-metadata">

### Author: ![vjrj](https://forum.duniter.org/user_avatar/forum.duniter.org/vjrj/32/8487_2.png) [@vjrj](https://forum.duniter.org/u/vjrj)
#### Post date: [19 April 2023 20:39 UTC](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701/64 "2023-04-19T20:39:33Z")

</div>

> [@flodef](#):
>
> BUGS 🪲

@fIodef I fixed many of them in the web. Feel free to subscribe/test (those with commits associated should we fixed):

> **[Issues · vjrj / ginkgo · GitLab](https://git.duniter.org/vjrj/ginkgo/-/issues)**
>
> Duniter’s Ğ1Lab

About DU. Thanks indeed for the directions @Maaltir & @poka. You can subscribe too here:

> **[Allow to switch between DUğ1 and Ğ1 (#34) · Issues · vjrj / ginkgo · GitLab](https://git.duniter.org/vjrj/ginkgo/-/issues/34)**
>
> Quoting: Maaltir As the DUğ1 is the basis of the free currency Ğ1, it seems to me essential to be able to use this...

PS\_ I don’t know why I was thinking that I had to store the DU value in some time of a transaction, and each transaction with maybe different DU… 😃

---

<div class="post-metadata">

### Author: ![vit](https://forum.duniter.org/user_avatar/forum.duniter.org/vit/32/2775_2.png) [@vit](https://forum.duniter.org/u/vit)
#### Post date: [20 April 2023 15:46 UTC](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701/65 "2023-04-20T15:46:27Z")

</div>

> [@vjrj](#):
>
> PS\_ I don’t know why I was thinking that I had to store the DU value in some time of a transaction, and each transaction with maybe different DU… 😃

We all wanted to do that at the beginning of the money ! 😅  
But it is too hard to display a transaction in DU G1 with the DU at the time of the transaction (for the moment with the current APIs, to retreive the DU amount at the time is too slow, afaik). So we only display the amount using the current DU G1. You will see that a transaction displayed in DU G1 unit will be reduced periodically as the DU value grows… This is a normal behavior.

May be we will find a solution with the indexers to easily retrieve and display the old transaction in DU G1, using the DU value at the time of the transaction. So we can have three display modes : “G1”, “Current DU G1” and “Historical DU G1”. 😉

---

<div class="post-metadata">

### Author: ![tuxmain](https://forum.duniter.org/user_avatar/forum.duniter.org/tuxmain/32/6423_2.png) [@tuxmain](https://forum.duniter.org/u/tuxmain)
#### Post date: [20 April 2023 19:43 UTC](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701/66 "2023-04-20T19:43:14Z")

</div>

> [@vit](#):
>
> May be we will find a solution with the indexers to easily retrieve and display the old transaction in DU G1, using the DU value at the time of the transaction.

It could be btree map (ordered indexed list) time → new UD value. A new entry would be inserted at each UD reevaluation. To get UD(t) you just read at the greatest key smaller than t. This is log(n). Indexers could do that easily.

---

<div class="post-metadata">

### Author: ![flodef](https://forum.duniter.org/user_avatar/forum.duniter.org/flodef/32/8598_2.png) [@flodef](https://forum.duniter.org/u/flodef)
#### Post date: [21 April 2023 12:05 UTC](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701/67 "2023-04-21T12:05:32Z")

</div>

> [@vjrj](#):
>
> I fixed many of them in the web. Feel free to subscribe/test (those with commits associated should we fixed):

Fantastic 😍 I’ll do that ASAP.

---

<div class="post-metadata">

### Author: ![kimamila](https://forum.duniter.org/user_avatar/forum.duniter.org/kimamila/32/185_2.png) [@kimamila](https://forum.duniter.org/u/kimamila)
#### Post date: [22 April 2023 14:33 UTC](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701/68 "2023-04-22T14:33:00Z")

</div>

Very nice job ! Congratulations ! 🙂  
work perfectly for me.

Many thanks, again, because i will be able to use it in replacement of Cesium in many cases. A lot of users, as you know, had many issues with Cesium (that no one have time to fix).

Please let me know your pubkey G1.

---

<div class="post-metadata">

### Author: ![vjrj](https://forum.duniter.org/user_avatar/forum.duniter.org/vjrj/32/8487_2.png) [@vjrj](https://forum.duniter.org/u/vjrj)
#### Post date: [22 April 2023 22:40 UTC](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701/69 "2023-04-22T22:40:08Z")

</div>

Thanks indeed @kimamila for your words and of course for your work.

I’m like mad trying to publish a first version of g1nkgo like stable and ready for more public, but later if you want maybe we can find a moment to talk and to share experiences (mine as a newcommer arriving to this beautiful project and you from your big background).

BTW my cesium pub address:

`6DrGg8cftpkgffv4Y4Lse9HSjgc8coEQor3yvMPHAnVH` (vjrj)

Merci beaucoup again

---

<div class="post-metadata">

### Author: ![vjrj](https://forum.duniter.org/user_avatar/forum.duniter.org/vjrj/32/8487_2.png) [@vjrj](https://forum.duniter.org/u/vjrj)
#### Post date: [24 April 2023 23:25 UTC](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701/70 "2023-04-24T23:25:12Z")

</div>

For the braves, I’ve published the 0.0.21-SNAPSHOT of g1nkgo for Android in [Private Seafile](https://sea.comunes.org/d/a964483f5b7e41ba9469/),

Includes mainly:

- many fixes of the issues that @flodef raised,
- inline tutorials explaining recurrent doubts,
- transaction page with pagination,
- android \<= 7 connectivity issues,

I’ll try to freeze this a bit and just fix things in order to release something stable and ready for the non tech public.

Thanks/merci

---

<div class="post-metadata">

### Author: ![kimamila](https://forum.duniter.org/user_avatar/forum.duniter.org/kimamila/32/185_2.png) [@kimamila](https://forum.duniter.org/u/kimamila)
#### Post date: [26 April 2023 21:37 UTC](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701/71 "2023-04-26T21:37:32Z")

</div>

Great job again !  
I like the help feature, that focus on a screen part.

A small suggestion 🙂

- for QR code (from the point of sale tab) : you can create and use URi like this one : june://9oKB35LgNQ9PBGPMgxq63kDVYrr3jb8D9NnyiEKQtRxQ?comment=GCHANGE:AYDI9JPOVIL9ZVG-PNCU&amount=100 and your app can declare to handle it. This way the buyer can use another wallet software.

And some questions :

- i see that your are not a G1 member ?? I think we should know who you are before we can trust your code and your app.
- to save/restore a wallet, did you plan to use Duniter file formats ?
- dis you plan to come to the Free currency meeting in France ? (12th to 16th june) Can be cool ton meet you !

@poka did you review the code ? I think we should be able to rebuild and check content by a checksum. No ?

---

<div class="post-metadata">

### Author: ![vjrj](https://forum.duniter.org/user_avatar/forum.duniter.org/vjrj/32/8487_2.png) [@vjrj](https://forum.duniter.org/u/vjrj)
#### Post date: [26 April 2023 22:25 UTC](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701/72 "2023-04-26T22:25:39Z")

</div>

> [@kimamila](#):
>
> for QR code (from the point of sale tab) : you can create and use URi like this one : june://9oKB35LgNQ9PBGPMgxq63kDVYrr3jb8D9NnyiEKQtRxQ?comment=GCHANGE:AYDI9JPOVIL9ZVG-PNCU&amount=100 and your app can declare to handle it. This way the buyer can use another wallet software.

Off course! I didn’t know this, so I was trying to suggest something similar, thanks indeed.

> [@kimamila](#):
>
> i see that your are not a G1 member ?? I think we should know who you are before we can trust your code and your app.

I can understand. Take into account that I arrived to this initiative (3 months ago, I don’t remember well, but see my friend (xavidp-A1Fc1VoCLKHyPYmXimYECSmjmsceqwRSZcTBXfgG9JaB) that give me a donation in the previous mentioned address.

I shall start to ask for certifications in the next markets (for example this weekend) to understand better all the process.

More info: [vjrj (vjrj) | Keybase](https://keybase.io/vjrj)

> [@kimamila](#):
>
> to save/restore a wallet, did you plan to use Duniter file formats ?

I didn’t know about this format. I need to read, but why not?

> [@kimamila](#):
>
> dis you plan to come to the Free currency meeting in France ? (12th to 16th june) Can be cool ton meet you !

I have several problems: jobs, small kids, and… fuxxxx long covid. So it’s hard to travel right now. I can try. Going to G1 markets was the first thing I started to do these days.

Same message signed:

```auto
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[quote="kimamila, post:71, topic:10701"]
for QR code (from the point of sale tab) : you can create and use URi like this one : june://9oKB35LgNQ9PBGPMgxq63kDVYrr3jb8D9NnyiEKQtRxQ?comment=GCHANGE:AYDI9JPOVIL9ZVG-PNCU&amount=100 and your app can declare to handle it. This way the buyer can use another wallet software.
[/quote]

Off course! I didn't know this, so I was trying to suggest something similar, thanks indeed.

[quote="kimamila, post:71, topic:10701"]
i see that your are not a G1 member ?? I think we should know who you are before we can trust your code and your app.
[/quote]

I can understand. Take into account that I arrived to this initiative (3 months ago, I don't remember well, but see my friend (xavidp-A1Fc1VoCLKHyPYmXimYECSmjmsceqwRSZcTBXfgG9JaB) that give me a donation in the previous mentioned address.

I shall start to ask for certifications in the next markets (for example this weekend) to understand better all the process.

More info: https://keybase.io/vjrj

[quote="kimamila, post:71, topic:10701"]
to save/restore a wallet, did you plan to use Duniter file formats ?
[/quote]

I didn't know about this format. I need to read, but why not?

[quote="kimamila, post:71, topic:10701"]
dis you plan to come to the Free currency meeting in France ? (12th to 16th june) Can be cool ton meet you !
[/quote]

I have several problems: jobs, small kids, and... fuxxxx long covid. So it's hard to travel right now. I can try. Going to G1 markets was the first thing I started to do these days.

-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQRRCNj8OpzaWFRAMGntShgwnjWKBQUCZEmjrQAKCRDtShgwnjWK
BXoYAKCG4kSQmEqhh11Lr5ghnCOcvfXzigCgxM0/tsU37eZpK/iAdged6808SJI=
=PqkW
-----END PGP SIGNATURE-----

```

---

<div class="post-metadata">

### Author: ![vjrj](https://forum.duniter.org/user_avatar/forum.duniter.org/vjrj/32/8487_2.png) [@vjrj](https://forum.duniter.org/u/vjrj)
#### Post date: [27 April 2023 00:11 UTC](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701/73 "2023-04-27T00:11:20Z")

</div>

> [@kimamila](#):
>
> for QR code (from the point of sale tab) : you can create and use URi like this one : june://9oKB35LgNQ9PBGPMgxq63kDVYrr3jb8D9NnyiEKQtRxQ?comment=GCHANGE:AYDI9JPOVIL9ZVG-PNCU&amount=100 and your app can declare to handle it. This way the buyer can use another wallet software.

Done:

> **[Better june:// amount/commnt urls @kimamila feedback (e9d905c4) · Commits ·...](https://git.duniter.org/vjrj/ginkgo/-/commit/e9d905c4fce50f6b1e12123884988d4fc6bfe9f6)**
>
> Duniter’s Ğ1Lab

---

<div class="post-metadata">

### Author: ![vjrj](https://forum.duniter.org/user_avatar/forum.duniter.org/vjrj/32/8487_2.png) [@vjrj](https://forum.duniter.org/u/vjrj)
#### Post date: [27 April 2023 06:02 UTC](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701/74 "2023-04-27T06:02:28Z")

</div>

> [@kimamila](#):
>
> i see that your are not a G1 member ??

Certification in progress 🤦‍♂️  
[https://g1.duniter.org/wot/lookup/vjrj](https://g1.duniter.org/wot/lookup/vjrj)

---

<div class="post-metadata">

### Author: ![HugoTrentesaux](https://forum.duniter.org/user_avatar/forum.duniter.org/hugotrentesaux/32/6396_2.png) [@HugoTrentesaux](https://forum.duniter.org/u/HugoTrentesaux)
#### Post date: [29 October 2024 09:42 UTC](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701/75 "2024-10-29T09:42:50Z")

</div>

6 posts were split to a new topic: [Ğinkgo release 0.1.0](https://forum.duniter.org/t/ginkgo-release-0-1-0/12633)

---

<div class="post-metadata">

### Author: ![HugoTrentesaux](https://forum.duniter.org/user_avatar/forum.duniter.org/hugotrentesaux/32/6396_2.png) [@HugoTrentesaux](https://forum.duniter.org/u/HugoTrentesaux)
#### Post date: [29 October 2024 09:44 UTC](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701/81 "2024-10-29T09:44:18Z")

</div>

26 posts were merged into an existing topic: [Ğinkgo release 0.1.0](https://forum.duniter.org/t/ginkgo-release-0-1-0/12633/7)

---

<div class="post-metadata">

### Author: ![HugoTrentesaux](https://forum.duniter.org/user_avatar/forum.duniter.org/hugotrentesaux/32/6396_2.png) [@HugoTrentesaux](https://forum.duniter.org/u/HugoTrentesaux)
#### Post date: [29 October 2024 09:46 UTC](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701/107 "2024-10-29T09:46:55Z")

</div>

18 posts were split to a new topic: [Ǧinkgo release 0.2.0](https://forum.duniter.org/t/inkgo-release-0-2-0/12634)

---

<div class="post-metadata">

### Author: ![HugoTrentesaux](https://forum.duniter.org/user_avatar/forum.duniter.org/hugotrentesaux/32/6396_2.png) [@HugoTrentesaux](https://forum.duniter.org/u/HugoTrentesaux)
#### Post date: [29 October 2024 09:48 UTC](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701/125 "2024-10-29T09:48:09Z")

</div>

5 posts were split to a new topic: [Discussion about passwords and ssh](https://forum.duniter.org/t/discussion-about-passwords-and-ssh/12635)

---

<div class="post-metadata">

### Author: ![HugoTrentesaux](https://forum.duniter.org/user_avatar/forum.duniter.org/hugotrentesaux/32/6396_2.png) [@HugoTrentesaux](https://forum.duniter.org/u/HugoTrentesaux)
#### Post date: [29 October 2024 09:48 UTC](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701/130 "2024-10-29T09:48:28Z")

</div>

A post was merged into an existing topic: [Ǧinkgo release 0.2.0](https://forum.duniter.org/t/inkgo-release-0-2-0/12634/19)

---

<div class="post-metadata">

### Author: ![HugoTrentesaux](https://forum.duniter.org/user_avatar/forum.duniter.org/hugotrentesaux/32/6396_2.png) [@HugoTrentesaux](https://forum.duniter.org/u/HugoTrentesaux)
#### Post date: [29 October 2024 09:49 UTC](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701/131 "2024-10-29T09:49:28Z")

</div>

4 posts were split to a new topic: [Import du fichier json dans ginkgo](https://forum.duniter.org/t/import-du-fichier-json-dans-ginkgo/12636)

[Previous page](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701.md?page=3)

[Next page](https://forum.duniter.org/t/presentation-and-new-light-web-client-g1nkgo/10701.md?page=5)
