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
| func GetPayToAddrScript(address string) []byte { | |
| rcvAddress, _ := btcutil.DecodeAddress(address, &chaincfg.TestNet3Params) | |
| rcvScript, _ := txscript.PayToAddrScript(rcvAddress) | |
| return rcvScript | |
| } | |
| type TXRef struct{ | |
| TXHash string | |
| TXOutputN int | |
| } |
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
| const Web3 = require("web3"); | |
| const Tx = require("ethereumjs-tx"); | |
| const acct = ""; | |
| const receiver = ""; | |
| const chainId = 42; | |
| const privateKey = new Buffer( | |
| "PRIVATE_KEY", | |
| "hex" |
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
| 0xf73883024D6275D416eb4C47f91eC16d816D0cB7 |
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
| 0xf73883024D6275D416eb4C47f91eC16d816D0cB7 |
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
| hello |