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()

}```

Reply to this note

Please Login to reply.

Discussion

No replies yet.