This file contains 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 main | |
import ( | |
"encoding/hex" | |
"fmt" | |
"github.com/btcsuite/btcd/btcec" | |
"github.com/btcsuite/btcd/chaincfg" | |
"github.com/btcsuite/btcd/txscript" | |
"github.com/btcsuite/btcd/wire" |
This file contains 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 main | |
import ( | |
"encoding/hex" | |
"fmt" | |
"os" | |
"github.com/btcsuite/btcd/chaincfg/chainhash" | |
"github.com/btcsuite/btcd/txscript" | |
"github.com/btcsuite/btcd/wire" |
This file contains 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 main | |
import ( | |
"encoding/binary" | |
"errors" | |
"io/ioutil" | |
"log" | |
"math" | |
"math/big" | |
"path/filepath" |
This file contains 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 main | |
import ( | |
"encoding/hex" | |
"fmt" | |
"github.com/btcsuite/btcd/btcec" | |
"github.com/btcsuite/btcd/chaincfg" | |
"github.com/btcsuite/btcd/txscript" | |
"github.com/btcsuite/btcd/wire" |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>WebSocket Test</title> | |
<script language="javascript" type="text/javascript"> | |
var wsUri = 'wss://127.0.0.1:8334/ws'; | |
var rpcUser = "rpcuser"; | |
var rpcPass = "rpcpass"; |
This file contains 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 main | |
import ( | |
"encoding/hex" | |
"fmt" | |
"github.com/btcsuite/btcd/chaincfg" | |
. "github.com/btcsuite/btcd/txscript" | |
"github.com/btcsuite/btcutil" | |
) |
This file contains 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 main | |
import ( | |
"encoding/hex" | |
"fmt" | |
"github.com/btcsuite/btcutil" | |
. "github.com/btcsuite/btcd/txscript" | |
) |
This file contains 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 main | |
import ( | |
"encoding/hex" | |
"fmt" | |
"github.com/btcsuite/btcutil" | |
. "github.com/btcsuite/btcd/txscript" | |
) |
This file contains 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
//With default config files | |
btcd --simnet --rpcuser=faruk --rpcpass=0585 | |
btcwallet --simnet --username=faruk --password=0585 --create | |
btcwallet --simnet --username=faruk --password=0585 | |
btcctl --simnet --rpcuser=faruk --rpcpass=0585 --wallet walletpassphrase "0585" 600 | |
btcctl --simnet --rpcuser=faruk --rpcpass=0585 --wallet createnewaccount account1 | |
btcctl --simnet --rpcuser=faruk --rpcpass=0585 --wallet listaccounts | |
btcctl --simnet --rpcuser=faruk --rpcpass=0585 --wallet getnewaddress | |
btcd --simnet --rpcuser=faruk --rpcpass=0585 --miningaddr=SQqiiJtfueX54oFGuTAzkBTaM23neFvWNF | |
btcctl --simnet --rpcuser=faruk --rpcpass=0585 --wallet generate 21 |
This file contains 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
// Copyright (c) 2014-2016 The btcsuite developers | |
// Use of this source code is governed by an ISC | |
// license that can be found in the LICENSE file. | |
package txscript_test | |
import ( | |
"encoding/hex" | |
"fmt" |