What is Nostr?
Vitor Pamplona
npub1gcx…nj5z
2023-12-02 17:18:49
in reply to nevent1q…59rx

Vitor Pamplona on Nostr: yep: ``` val base64token = cashuToken.replace("cashuA", "") val cashu = ...

yep:

```
val base64token = cashuToken.replace("cashuA", "")
val cashu = jacksonObjectMapper().readTree(String(Base64.getDecoder().decode(base64token)))
val token = cashu.get("token").get(0)
val proofs = token.get("proofs")
val mint = token.get("mint").asText()

var totalAmount = 0L
for (proof in proofs) {
totalAmount += proof.get("amount").asLong()
}```
Author Public Key
npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z