Skip to content

Instantly share code, notes, and snippets.

@kushti
Created October 13, 2021 11:50
Show Gist options
  • Save kushti/b734587b96f1f56abeaffb2fb2129476 to your computer and use it in GitHub Desktop.
Save kushti/b734587b96f1f56abeaffb2fb2129476 to your computer and use it in GitHub Desktop.
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