bit_wallet 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/.gitignore +1 -0
- data/CHANGELOG.md +5 -0
- data/bit_wallet.gemspec +1 -1
- data/lib/bit_wallet/account.rb +1 -0
- data/lib/bit_wallet/version.rb +1 -1
- data/spec/bit_wallet/account_spec.rb +10 -2
- data/spec/bit_wallet/accounts_spec.rb +1 -1
- data/spec/bit_wallet/address_spec.rb +1 -1
- data/spec/bit_wallet/addresses_spec.rb +1 -1
- data/spec/bit_wallet/transaction_spec.rb +1 -1
- data/spec/bit_wallet/wallet_spec.rb +3 -3
- data/spec/config.yml.sample +5 -0
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_be_able_to_override_the_min_conf.yml +31 -34
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_default_to_the_config_min_conf.yml +31 -34
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_return_the_balance_of_the_account.yml +51 -56
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/should_default_to_list_10_transactions.yml +163 -178
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/when_transaction_limit_is_6/should_list_the_6_most_recent_transactions.yml +122 -134
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/_to_is_a_BitWallet_Address/should_send_it_to_the_address_of_the_given_BitWallet_Address.yml +61 -67
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/account_does_not_have_enough_money/should_fail_with_the_InsufficientFunds_error.yml +53 -59
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/should_send_money_to_the_given_address.yml +61 -67
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_many/should_send_the_amounts_of_money_to_the_specified_accounts.yml +71 -78
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_total_received/should_return_the_total_amount_received_by_the_address.yml +10 -11
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/addresses/.yml +10 -11
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/name_is_nil/raises_an_error.yml +79 -0
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/should_be_assigned_that_name.yml +31 -34
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/should_have_a_default_name.yml +10 -11
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/when_the_account_name_already_exists/should_return_that_same_address.yml +31 -34
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/wallet/.yml +10 -11
- data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_includes_account_name_account_/should_return_true_if_the_array_includes_the_account.yml +31 -34
- data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_new/should_create_a_new_BitWallet_Account_with_a_default_address.yml +31 -34
- data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_with_balance/should_return_accounts_with_a_balance_0.yml +82 -90
- data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/wallet/.yml +21 -23
- data/spec/fixtures/vcr_cassettes/BitWallet_Address/_total_received/should_return_the_total_amount_received_by_the_address.yml +20 -22
- data/spec/fixtures/vcr_cassettes/BitWallet_Address/account/.yml +20 -22
- data/spec/fixtures/vcr_cassettes/BitWallet_Address/on_initialization/address_given_already_exists/should_not_create_an_address.yml +10 -11
- data/spec/fixtures/vcr_cassettes/BitWallet_Address/on_initialization/no_address_is_given/should_create_an_address.yml +20 -22
- data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/_new/with_address_string_given/should_return_an_Address_with_the_given_address_string.yml +10 -11
- data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/_new/without_any_address_string_given/should_return_an_Address_that_points_to_the_same_account.yml +20 -22
- data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/account/.yml +10 -11
- data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/new/.yml +20 -22
- data/spec/fixtures/vcr_cassettes/BitWallet_Transaction/on_initialization/should_be_able_to_take_a_bitcoind_hash.yml +31 -34
- data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_accounts/should_return_array_of_BitWallet_Accounts.yml +21 -23
- data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_move/should_move_funds_from_one_account_to_another.yml +61 -67
- data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_allow_overriding_of_the_transaction_limit.yml +163 -178
- data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_return_the_most_recent_transactions_of_all_accounts_defaulting_to_10_transactions.yml +163 -178
- data/spec/spec_helper.rb +3 -3
- metadata +23 -22
- data/spec/config.yml +0 -3
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
YmMxZTQxMjQ1Mjk2YzA0OTRkMDU3ZjdlMzM5MTE3MWQ5MWMxNDE4OTFkMzMz
|
10
|
-
MTc1YzRmNjkxNDBmN2RmODUwOWFlNmFiNTJkZmEzMGI2NTU1ZmE4MDM0MTYw
|
11
|
-
NjhmMzQ4ODdlNjlmYjgxNTMyZGIxYjc1M2VlY2UzOTA1YjMwYWQ=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZjZjY2I3YTRhYzI2YWEyMGEzYjY1ZWFhZjE0NjIyODhlY2ZlNzdhYTRiMjg1
|
14
|
-
YjI2MzBhYzc3NDg5Y2Y3NjgyY2QxYWQyZGQ5MGVjZThjODM5ZmE4MzA3MWEw
|
15
|
-
ZTg3YjBhMDZjOGNkMGQxMWY3MzM2ZDg2YTYzNTlkZGVmMzJkODc=
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e3906097f190977399d9e67c58d06f1ff0a966b2
|
4
|
+
data.tar.gz: 955806fced4ca7f1021a65b8b244c02e4ff981f9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 63af80885ebf86afdef1303b1e79f2ab487717a5eb9a11581e10fb545a48a6a53cb3a53d9f82db3b66fbaf120c3775ec5e68237ad05490982ef0c827464f27e8
|
7
|
+
data.tar.gz: fdbf0c48e1f9eaadb2e4dab80c5eda5705a0b8aab0ae26a87736c9bf0a1d53e0b41392d77e2118bb15e38d9ec791f095e5bb056fbd916a8b020fd4d52672ed4d
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
data/bit_wallet.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |gem|
|
|
21
21
|
gem.add_dependency 'activesupport'
|
22
22
|
gem.add_development_dependency 'rspec', '~> 2.12'
|
23
23
|
gem.add_development_dependency 'factory_girl', '4.2.0'
|
24
|
-
gem.add_development_dependency '
|
24
|
+
gem.add_development_dependency 'bitcoin_cleaner', "1.0.0.beta.1"
|
25
25
|
gem.add_development_dependency 'vcr', '~> 2.4'
|
26
26
|
gem.add_development_dependency 'webmock', '1.9.0'
|
27
27
|
end
|
data/lib/bit_wallet/account.rb
CHANGED
data/lib/bit_wallet/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe BitWallet::Account, vcr: true do
|
3
|
+
describe BitWallet::Account, vcr: {record: :once}, bitcoin_cleaner: true do
|
4
4
|
|
5
5
|
let(:wallet) { build(:wallet) }
|
6
6
|
subject { described_class.new(wallet, 'name') }
|
@@ -35,6 +35,14 @@ describe BitWallet::Account, vcr: true do
|
|
35
35
|
}.to_not change(wallet.accounts, :size)
|
36
36
|
end
|
37
37
|
end
|
38
|
+
|
39
|
+
context "name is nil" do
|
40
|
+
it "raises an error" do
|
41
|
+
wallet = BitWallet::Wallet.new(Config.slice(:username, :port, :password))
|
42
|
+
expect { wallet.accounts.new(nil) }.
|
43
|
+
to raise_error(ArgumentError, "account name cannot be nil")
|
44
|
+
end
|
45
|
+
end
|
38
46
|
end
|
39
47
|
|
40
48
|
describe '#balance' do
|
@@ -108,7 +116,7 @@ describe BitWallet::Account, vcr: true do
|
|
108
116
|
account_1 = wallet.accounts.new('1')
|
109
117
|
|
110
118
|
1.upto(11).each do |n|
|
111
|
-
default_account.send_amount
|
119
|
+
default_account.send_amount 0.1, to: account_1.addresses.first
|
112
120
|
end
|
113
121
|
|
114
122
|
account_1.recent_transactions.size.should == 10
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
module BitWallet
|
4
|
-
describe Wallet, vcr: true do
|
4
|
+
describe Wallet, vcr: {record: :once}, bitcoin_cleaner: true do
|
5
5
|
|
6
6
|
describe '#accounts' do
|
7
7
|
it 'should return array of BitWallet::Accounts' do
|
@@ -17,7 +17,7 @@ module BitWallet
|
|
17
17
|
account_1 = wallet.accounts.new('1')
|
18
18
|
|
19
19
|
1.upto(11).each do |n|
|
20
|
-
default_account.send_amount
|
20
|
+
default_account.send_amount 0.1, to: account_1.addresses.first
|
21
21
|
end
|
22
22
|
|
23
23
|
wallet.recent_transactions.size.should == 10
|
@@ -29,7 +29,7 @@ module BitWallet
|
|
29
29
|
account_1 = wallet.accounts.new('1')
|
30
30
|
|
31
31
|
1.upto(11).each do |n|
|
32
|
-
default_account.send_amount
|
32
|
+
default_account.send_amount 0.1, to: account_1.addresses.first
|
33
33
|
end
|
34
34
|
|
35
35
|
wallet.recent_transactions(limit: 5).size.should == 5
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://
|
5
|
+
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"method":"listaccounts","params":[1],"id":"jsonrpc"}'
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
Content-Type:
|
@@ -23,31 +23,30 @@ http_interactions:
|
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Sat, 23 Aug 2014 09:44:35 +0000
|
27
27
|
Connection:
|
28
28
|
- keep-alive
|
29
29
|
Content-Length:
|
30
|
-
- '
|
30
|
+
- '56'
|
31
31
|
Content-Type:
|
32
32
|
- application/json
|
33
33
|
Server:
|
34
|
-
- bitcoin-json-rpc/v0.
|
34
|
+
- bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
|
35
35
|
body:
|
36
|
-
encoding:
|
37
|
-
string:
|
38
|
-
|
39
|
-
'
|
36
|
+
encoding: UTF-8
|
37
|
+
string: |
|
38
|
+
{"result":{"":50.00000000},"error":null,"id":"jsonrpc"}
|
40
39
|
http_version:
|
41
|
-
recorded_at:
|
40
|
+
recorded_at: Sat, 23 Aug 2014 09:44:35 GMT
|
42
41
|
- request:
|
43
42
|
method: post
|
44
|
-
uri: http://
|
43
|
+
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
45
44
|
body:
|
46
|
-
encoding:
|
47
|
-
string:
|
45
|
+
encoding: UTF-8
|
46
|
+
string: '{"method":"getnewaddress","params":[""],"id":"jsonrpc"}'
|
48
47
|
headers:
|
49
48
|
Accept:
|
50
|
-
-
|
49
|
+
- "*/*; q=0.5, application/xml"
|
51
50
|
Accept-Encoding:
|
52
51
|
- gzip, deflate
|
53
52
|
Content-Type:
|
@@ -62,7 +61,7 @@ http_interactions:
|
|
62
61
|
message: OK
|
63
62
|
headers:
|
64
63
|
Date:
|
65
|
-
-
|
64
|
+
- Sat, 23 Aug 2014 09:44:35 +0000
|
66
65
|
Connection:
|
67
66
|
- keep-alive
|
68
67
|
Content-Length:
|
@@ -70,23 +69,22 @@ http_interactions:
|
|
70
69
|
Content-Type:
|
71
70
|
- application/json
|
72
71
|
Server:
|
73
|
-
- bitcoin-json-rpc/v0.
|
72
|
+
- bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
|
74
73
|
body:
|
75
|
-
encoding:
|
76
|
-
string:
|
77
|
-
|
78
|
-
'
|
74
|
+
encoding: UTF-8
|
75
|
+
string: |
|
76
|
+
{"result":"n1V9qhf9PbNXF2NE2iFkKiHFv3owW3trkb","error":null,"id":"jsonrpc"}
|
79
77
|
http_version:
|
80
|
-
recorded_at:
|
78
|
+
recorded_at: Sat, 23 Aug 2014 09:44:35 GMT
|
81
79
|
- request:
|
82
80
|
method: post
|
83
|
-
uri: http://
|
81
|
+
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
84
82
|
body:
|
85
|
-
encoding:
|
86
|
-
string:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: '{"method":"getnewaddress","params":["nona"],"id":"jsonrpc"}'
|
87
85
|
headers:
|
88
86
|
Accept:
|
89
|
-
-
|
87
|
+
- "*/*; q=0.5, application/xml"
|
90
88
|
Accept-Encoding:
|
91
89
|
- gzip, deflate
|
92
90
|
Content-Type:
|
@@ -101,7 +99,7 @@ http_interactions:
|
|
101
99
|
message: OK
|
102
100
|
headers:
|
103
101
|
Date:
|
104
|
-
-
|
102
|
+
- Sat, 23 Aug 2014 09:44:35 +0000
|
105
103
|
Connection:
|
106
104
|
- keep-alive
|
107
105
|
Content-Length:
|
@@ -109,12 +107,11 @@ http_interactions:
|
|
109
107
|
Content-Type:
|
110
108
|
- application/json
|
111
109
|
Server:
|
112
|
-
- bitcoin-json-rpc/v0.
|
110
|
+
- bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
|
113
111
|
body:
|
114
|
-
encoding:
|
115
|
-
string:
|
116
|
-
|
117
|
-
'
|
112
|
+
encoding: UTF-8
|
113
|
+
string: |
|
114
|
+
{"result":"mfkAkryGgB9BW28NNY212Fu27WzuLTf1V1","error":null,"id":"jsonrpc"}
|
118
115
|
http_version:
|
119
|
-
recorded_at:
|
116
|
+
recorded_at: Sat, 23 Aug 2014 09:44:35 GMT
|
120
117
|
recorded_with: VCR 2.8.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://
|
5
|
+
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"method":"listaccounts","params":[1],"id":"jsonrpc"}'
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
Content-Type:
|
@@ -23,31 +23,30 @@ http_interactions:
|
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Sat, 23 Aug 2014 09:44:28 +0000
|
27
27
|
Connection:
|
28
28
|
- keep-alive
|
29
29
|
Content-Length:
|
30
|
-
- '
|
30
|
+
- '56'
|
31
31
|
Content-Type:
|
32
32
|
- application/json
|
33
33
|
Server:
|
34
|
-
- bitcoin-json-rpc/v0.
|
34
|
+
- bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
|
35
35
|
body:
|
36
|
-
encoding:
|
37
|
-
string:
|
38
|
-
|
39
|
-
'
|
36
|
+
encoding: UTF-8
|
37
|
+
string: |
|
38
|
+
{"result":{"":50.00000000},"error":null,"id":"jsonrpc"}
|
40
39
|
http_version:
|
41
|
-
recorded_at:
|
40
|
+
recorded_at: Sat, 23 Aug 2014 09:44:28 GMT
|
42
41
|
- request:
|
43
42
|
method: post
|
44
|
-
uri: http://
|
43
|
+
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
45
44
|
body:
|
46
|
-
encoding:
|
47
|
-
string:
|
45
|
+
encoding: UTF-8
|
46
|
+
string: '{"method":"getnewaddress","params":[""],"id":"jsonrpc"}'
|
48
47
|
headers:
|
49
48
|
Accept:
|
50
|
-
-
|
49
|
+
- "*/*; q=0.5, application/xml"
|
51
50
|
Accept-Encoding:
|
52
51
|
- gzip, deflate
|
53
52
|
Content-Type:
|
@@ -62,7 +61,7 @@ http_interactions:
|
|
62
61
|
message: OK
|
63
62
|
headers:
|
64
63
|
Date:
|
65
|
-
-
|
64
|
+
- Sat, 23 Aug 2014 09:44:28 +0000
|
66
65
|
Connection:
|
67
66
|
- keep-alive
|
68
67
|
Content-Length:
|
@@ -70,23 +69,22 @@ http_interactions:
|
|
70
69
|
Content-Type:
|
71
70
|
- application/json
|
72
71
|
Server:
|
73
|
-
- bitcoin-json-rpc/v0.
|
72
|
+
- bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
|
74
73
|
body:
|
75
|
-
encoding:
|
76
|
-
string:
|
77
|
-
|
78
|
-
'
|
74
|
+
encoding: UTF-8
|
75
|
+
string: |
|
76
|
+
{"result":"mh8e67FEbWhyf13TbvSuvzrGjrWBWChqsp","error":null,"id":"jsonrpc"}
|
79
77
|
http_version:
|
80
|
-
recorded_at:
|
78
|
+
recorded_at: Sat, 23 Aug 2014 09:44:28 GMT
|
81
79
|
- request:
|
82
80
|
method: post
|
83
|
-
uri: http://
|
81
|
+
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
84
82
|
body:
|
85
|
-
encoding:
|
86
|
-
string:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: '{"method":"getnewaddress","params":["nona"],"id":"jsonrpc"}'
|
87
85
|
headers:
|
88
86
|
Accept:
|
89
|
-
-
|
87
|
+
- "*/*; q=0.5, application/xml"
|
90
88
|
Accept-Encoding:
|
91
89
|
- gzip, deflate
|
92
90
|
Content-Type:
|
@@ -101,7 +99,7 @@ http_interactions:
|
|
101
99
|
message: OK
|
102
100
|
headers:
|
103
101
|
Date:
|
104
|
-
-
|
102
|
+
- Sat, 23 Aug 2014 09:44:28 +0000
|
105
103
|
Connection:
|
106
104
|
- keep-alive
|
107
105
|
Content-Length:
|
@@ -109,12 +107,11 @@ http_interactions:
|
|
109
107
|
Content-Type:
|
110
108
|
- application/json
|
111
109
|
Server:
|
112
|
-
- bitcoin-json-rpc/v0.
|
110
|
+
- bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
|
113
111
|
body:
|
114
|
-
encoding:
|
115
|
-
string:
|
116
|
-
|
117
|
-
'
|
112
|
+
encoding: UTF-8
|
113
|
+
string: |
|
114
|
+
{"result":"mn3fo5zLS5jqFpwNVa9dYuEsmnvZF1HNLY","error":null,"id":"jsonrpc"}
|
118
115
|
http_version:
|
119
|
-
recorded_at:
|
116
|
+
recorded_at: Sat, 23 Aug 2014 09:44:28 GMT
|
120
117
|
recorded_with: VCR 2.8.0
|
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://
|
5
|
+
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"method":"listaccounts","params":[1],"id":"jsonrpc"}'
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- "*/*; q=0.5, application/xml"
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
Content-Type:
|
@@ -23,31 +23,30 @@ http_interactions:
|
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
25
|
Date:
|
26
|
-
-
|
26
|
+
- Sat, 23 Aug 2014 09:44:42 +0000
|
27
27
|
Connection:
|
28
28
|
- keep-alive
|
29
29
|
Content-Length:
|
30
|
-
- '
|
30
|
+
- '56'
|
31
31
|
Content-Type:
|
32
32
|
- application/json
|
33
33
|
Server:
|
34
|
-
- bitcoin-json-rpc/v0.
|
34
|
+
- bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
|
35
35
|
body:
|
36
|
-
encoding:
|
37
|
-
string:
|
38
|
-
|
39
|
-
'
|
36
|
+
encoding: UTF-8
|
37
|
+
string: |
|
38
|
+
{"result":{"":50.00000000},"error":null,"id":"jsonrpc"}
|
40
39
|
http_version:
|
41
|
-
recorded_at:
|
40
|
+
recorded_at: Sat, 23 Aug 2014 09:44:42 GMT
|
42
41
|
- request:
|
43
42
|
method: post
|
44
|
-
uri: http://
|
43
|
+
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
45
44
|
body:
|
46
|
-
encoding:
|
47
|
-
string:
|
45
|
+
encoding: UTF-8
|
46
|
+
string: '{"method":"getnewaddress","params":[""],"id":"jsonrpc"}'
|
48
47
|
headers:
|
49
48
|
Accept:
|
50
|
-
-
|
49
|
+
- "*/*; q=0.5, application/xml"
|
51
50
|
Accept-Encoding:
|
52
51
|
- gzip, deflate
|
53
52
|
Content-Type:
|
@@ -62,7 +61,7 @@ http_interactions:
|
|
62
61
|
message: OK
|
63
62
|
headers:
|
64
63
|
Date:
|
65
|
-
-
|
64
|
+
- Sat, 23 Aug 2014 09:44:42 +0000
|
66
65
|
Connection:
|
67
66
|
- keep-alive
|
68
67
|
Content-Length:
|
@@ -70,23 +69,22 @@ http_interactions:
|
|
70
69
|
Content-Type:
|
71
70
|
- application/json
|
72
71
|
Server:
|
73
|
-
- bitcoin-json-rpc/v0.
|
72
|
+
- bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
|
74
73
|
body:
|
75
|
-
encoding:
|
76
|
-
string:
|
77
|
-
|
78
|
-
'
|
74
|
+
encoding: UTF-8
|
75
|
+
string: |
|
76
|
+
{"result":"mgZ6eXazQ367vVfuvHSgi8VQD8YK8wQPBg","error":null,"id":"jsonrpc"}
|
79
77
|
http_version:
|
80
|
-
recorded_at:
|
78
|
+
recorded_at: Sat, 23 Aug 2014 09:44:42 GMT
|
81
79
|
- request:
|
82
80
|
method: post
|
83
|
-
uri: http://
|
81
|
+
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
84
82
|
body:
|
85
|
-
encoding:
|
86
|
-
string:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: '{"method":"getnewaddress","params":["nona"],"id":"jsonrpc"}'
|
87
85
|
headers:
|
88
86
|
Accept:
|
89
|
-
-
|
87
|
+
- "*/*; q=0.5, application/xml"
|
90
88
|
Accept-Encoding:
|
91
89
|
- gzip, deflate
|
92
90
|
Content-Type:
|
@@ -101,7 +99,7 @@ http_interactions:
|
|
101
99
|
message: OK
|
102
100
|
headers:
|
103
101
|
Date:
|
104
|
-
-
|
102
|
+
- Sat, 23 Aug 2014 09:44:42 +0000
|
105
103
|
Connection:
|
106
104
|
- keep-alive
|
107
105
|
Content-Length:
|
@@ -109,23 +107,22 @@ http_interactions:
|
|
109
107
|
Content-Type:
|
110
108
|
- application/json
|
111
109
|
Server:
|
112
|
-
- bitcoin-json-rpc/v0.
|
110
|
+
- bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
|
113
111
|
body:
|
114
|
-
encoding:
|
115
|
-
string:
|
116
|
-
|
117
|
-
'
|
112
|
+
encoding: UTF-8
|
113
|
+
string: |
|
114
|
+
{"result":"mgfhj6ZKRfBWH8BrtuzaWimMsQYCG2Yakn","error":null,"id":"jsonrpc"}
|
118
115
|
http_version:
|
119
|
-
recorded_at:
|
116
|
+
recorded_at: Sat, 23 Aug 2014 09:44:42 GMT
|
120
117
|
- request:
|
121
118
|
method: post
|
122
|
-
uri: http://
|
119
|
+
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
123
120
|
body:
|
124
|
-
encoding:
|
125
|
-
string:
|
121
|
+
encoding: UTF-8
|
122
|
+
string: '{"method":"getbalance","params":["nona",0],"id":"jsonrpc"}'
|
126
123
|
headers:
|
127
124
|
Accept:
|
128
|
-
-
|
125
|
+
- "*/*; q=0.5, application/xml"
|
129
126
|
Accept-Encoding:
|
130
127
|
- gzip, deflate
|
131
128
|
Content-Type:
|
@@ -140,7 +137,7 @@ http_interactions:
|
|
140
137
|
message: OK
|
141
138
|
headers:
|
142
139
|
Date:
|
143
|
-
-
|
140
|
+
- Sat, 23 Aug 2014 09:44:42 +0000
|
144
141
|
Connection:
|
145
142
|
- keep-alive
|
146
143
|
Content-Length:
|
@@ -148,23 +145,22 @@ http_interactions:
|
|
148
145
|
Content-Type:
|
149
146
|
- application/json
|
150
147
|
Server:
|
151
|
-
- bitcoin-json-rpc/v0.
|
148
|
+
- bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
|
152
149
|
body:
|
153
|
-
encoding:
|
154
|
-
string:
|
155
|
-
|
156
|
-
'
|
150
|
+
encoding: UTF-8
|
151
|
+
string: |
|
152
|
+
{"result":0.00000000,"error":null,"id":"jsonrpc"}
|
157
153
|
http_version:
|
158
|
-
recorded_at:
|
154
|
+
recorded_at: Sat, 23 Aug 2014 09:44:42 GMT
|
159
155
|
- request:
|
160
156
|
method: post
|
161
|
-
uri: http://
|
157
|
+
uri: http://bitcoinrpc:thisisjustapasswordfortesting@localhost:19001/
|
162
158
|
body:
|
163
|
-
encoding:
|
164
|
-
string:
|
159
|
+
encoding: UTF-8
|
160
|
+
string: '{"method":"getbalance","params":["nona",0],"id":"jsonrpc"}'
|
165
161
|
headers:
|
166
162
|
Accept:
|
167
|
-
-
|
163
|
+
- "*/*; q=0.5, application/xml"
|
168
164
|
Accept-Encoding:
|
169
165
|
- gzip, deflate
|
170
166
|
Content-Type:
|
@@ -179,7 +175,7 @@ http_interactions:
|
|
179
175
|
message: OK
|
180
176
|
headers:
|
181
177
|
Date:
|
182
|
-
-
|
178
|
+
- Sat, 23 Aug 2014 09:44:42 +0000
|
183
179
|
Connection:
|
184
180
|
- keep-alive
|
185
181
|
Content-Length:
|
@@ -187,12 +183,11 @@ http_interactions:
|
|
187
183
|
Content-Type:
|
188
184
|
- application/json
|
189
185
|
Server:
|
190
|
-
- bitcoin-json-rpc/v0.
|
186
|
+
- bitcoin-json-rpc/v0.9.2.1-g354c0f3-beta
|
191
187
|
body:
|
192
|
-
encoding:
|
193
|
-
string:
|
194
|
-
|
195
|
-
'
|
188
|
+
encoding: UTF-8
|
189
|
+
string: |
|
190
|
+
{"result":0.00000000,"error":null,"id":"jsonrpc"}
|
196
191
|
http_version:
|
197
|
-
recorded_at:
|
192
|
+
recorded_at: Sat, 23 Aug 2014 09:44:42 GMT
|
198
193
|
recorded_with: VCR 2.8.0
|