-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrawtx_helper.html
More file actions
107 lines (85 loc) · 3.07 KB
/
rawtx_helper.html
File metadata and controls
107 lines (85 loc) · 3.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>CIYAM Safe - Raw Transaction Helper</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="copyright" content="Copyright 2012-2018 CIYAM Developers"/>
<link rel="stylesheet" href="safe.css" type="text/css"/>
</head>
<div id="content">
<div id="header">
<div id="appname"><a href="#">Safe</a></div>
<h3 class="right-top">Raw Tx Helper</h3>
</div>
<div id="main">
<center/>
<h2>1) Search for the <a href="http://blockchain.info">Source Address</a> to find the following then copy and paste the raw tx command into Bitcoin's Console</h2>
<form name="tx_create" onsubmit="
var text = 'createrawtransaction "[{\\"txid\\":\\"';
text += document.tx_create.txid.value;
text += '\\",\\"vout\\":';
text += document.tx_create.vout.value;
text += '}]" "{\\"';
text += document.tx_create.addr.value;
text += '\\":';
text += document.tx_create.amount.value;
text += '}"';
document.tx_create.data.value = text;
return false;">
<label for="txid">
Enter 'txid': <input type="text" name="txid" value="" size="75"/>
</label>
<br/>
<br/>
<label for="addr">
Destination Address: <input type="text" name="addr" value="" size="50"/>
</label>
<br/>
<br/>
<label for="amount">
Amount of BTC to Send: <input type="text" name="amount" value="999.99" size="7"/>
</label>
<br/>
<br/>
<label for="vout">
Unspent Output 'vout' #: <input type="text" name="vout" value="0" size="5"/>
</label>
<p> </p>
<input type=submit value="Create Raw Transaction Command"/>
<br/>
<br/>
<input type="text" name="data" value="" size="150" readonly/>
</form>
<p> </p>
<h2>2) Next copy the raw tx output onto the clipboard and enter the 'scriptPubKey' from the above tx's Unspent Output</h2>
<form name="tx_sign" onsubmit="
var text = document.tx_sign.raw_tx.value;
text += ' \'[{"txid":"';
text += document.tx_create.txid.value;
text += '","vout":';
text += document.tx_create.vout.value;
text += ',"scriptPubKey":"76a914';
text += document.tx_sign.script.value;
text += '88ac"}]\'';
document.tx_sign.data.value = text;
return false;">
<label for="script">
Raw Tx: <input type="text" name="raw_tx" value="" size="140"/>
</label>
<br/>
<br/>
<label for="script">
Script Public Key: <input type="text" name="script" value="" size="55"/>
</label>
<p> </p>
<input type=submit value="Sign Raw Transaction Information"/>
<br/>
<br/>
<input type="text" name="data" value="" size="150" readonly/>
</form>
<h2>3) Finally copy the above into the clipboard and turn this into a 500 x 500 <a href="http://goqr.me">QR</a> code to scan with your offline computer</h2>
</div>
<div id="login_footer"><p>© 2012-2018 CIYAM Developers</p></div>
</div>
</body>
</html>