Created
July 29, 2021 10:00
-
-
Save kushti/64d680686b6a4eabde409c0bf36f2b82 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
object MiningAddresses extends App { | |
val address = "9fAuYCJ9pCfL8cNn2nsoUhYqmjkjP78Y2KzSptu769nYHGSXVir" | |
val enc = new ErgoAddressEncoder(ErgoAddressEncoder.MainnetNetworkPrefix) | |
val addr = enc.fromString(address).get.asInstanceOf[P2PKAddress] | |
val script = ErgoScriptPredef.rewardOutputScript(720, addr.pubkey) | |
println(Pay2SAddress(script)(enc)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment