Created
October 13, 2021 11:50
-
-
Save kushti/b734587b96f1f56abeaffb2fb2129476 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.ergoplatform.wallet.serialization | |
import org.ergoplatform.{ErgoLikeTransactionSerializer, JsonCodecs} | |
import scorex.util.encode.Base16 | |
object TransactionParser extends App { | |
val bytes = Base16.decode("...").get | |
val tx = ErgoLikeTransactionSerializer.fromBytes(bytes) | |
JsonCodecsWrapper.ergoLikeTransactionDecoder.decodeJson(j) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment