Josh Rickmar
28c0a3c8c7
Modify doco and example for btcwallet ws endpoint.
2014-06-12 13:00:42 -05:00
Josh Rickmar
4ac778d72a
Do not reissue rescan requests on reconnect.
2014-06-12 11:38:22 -05:00
Josh Rickmar
cfb46e2c43
Add getinfo support.
2014-06-11 16:38:54 -05:00
Josh Rickmar
1ec6dde39c
Add custom/raw request/response support.
2014-06-11 16:38:54 -05:00
Josh Rickmar
793e66c785
Add callback for connects and reconnects.
2014-06-11 16:38:54 -05:00
Dave Collins
8e624b20a9
Switch to conformal vendoring of Gorilla websocket.
2014-06-07 01:06:11 -05:00
Dave Collins
1602463681
Don't split up the group for debuglevel functions.
2014-06-05 23:57:05 -05:00
Dave Collins
7eea8252a4
Add the new example to README.md and doc.go.
2014-06-05 20:58:47 -05:00
Dave Collins
cd4018b33e
Add btcwallet websocket example.
...
Reviewed by @jrick who also provided some comment and terminology
improvements.
2014-06-05 20:40:45 -05:00
Michalis Kargakis
e31398a272
Add height parameter in disconn notification
2014-06-05 20:48:56 +03:00
Dave Collins
4e8e63e0d7
Use bytes.NewReader for all deserialization.
...
Rather than using bytes.NewBuffer, which is a read/write entity
(io.ReadWriter), use bytes.NewReader which is only a read entitiy
(io.Reader). Benchmarking shows it's slightly faster and it's also
technically more accurate since it ensures the data is read-only.
2014-06-04 22:12:47 -05:00
Dave Collins
879a125a2f
Update CONTRIBUTORS.
2014-06-02 09:50:03 -05:00
kargakis
a785ef6424
minor syntax fixes
2014-06-02 17:31:02 +03:00
Josh Rickmar
67e94bcaaa
Add createencryptedwallet extension support.
2014-05-28 11:33:28 -05:00
Dave Collins
0c586634bd
Update for recent btcutil API changes.
2014-05-27 17:03:09 -05:00
Dave Collins
6af13826ae
Convert {Dump,Import}PrivKey to use new WIF type.
...
The btcutil package recently exposed a WIF type to provide more
functionality and simplify working with WIF strings. This commit changes
the DumpPrivKey and ImportPrivKey RPCs to use the new WIF type.
2014-05-21 20:00:11 -05:00
Dave Collins
9d9c343247
Make nil pointer handling consistent across RPCs.
...
There are several RPCs which accept a pointer to a hash, transaction,
block, etc. Previously not all RPCs handled being passed a nil pointer
consistently.
Closes #4 .
2014-05-21 19:53:46 -05:00
Dave Collins
57738b1920
gofmt
2014-05-21 19:24:45 -05:00
Josh Rickmar
85886913b8
Implement Client methods for listunspent requests.
2014-05-12 16:43:30 -05:00
Dave Collins
267cf94edc
Correct typo in example log statement.
2014-05-11 13:30:25 -05:00
Dave Collins
e230b54427
Correct FutureGetBestBlockResult.Receive type.
...
Also correct the error message while here.
2014-05-11 02:35:07 -05:00
Dave Collins
e2ba50eee1
Fix a couple of typos in README.md.
2014-05-10 15:48:14 -05:00
Dave Collins
0fc9504da4
Improve overview in doc.go.
2014-05-10 02:50:19 -05:00
Dave Collins
9bb16e208d
Update README.md.
...
This commit adds a description, status, and major features to the README.
2014-05-10 02:48:11 -05:00
Dave Collins
a35c1e8ede
Auto recreate notification state on reconnect.
...
This commit adds logic to track all registered notifications that have
been registered by the client in a notification state when the default
automatic reconnect is enabled.
The notification state is then used to reregister for all previously
registered notifications on reconnect. This allows the caller to
continue receiving notifications across reconnect cycles.
2014-05-10 02:15:09 -05:00
Dave Collins
7cc356d4c7
Convert CreateRawTransaction to higher-level types.
...
Closes #2 .
2014-05-09 21:24:25 -05:00
Dave Collins
f666eddf75
Add README.md for bitcoincorehttp example.
...
Also, change the port in the example to the mainnet RPC port.
2014-05-09 21:09:51 -05:00
Dave Collins
315d85fa4e
Add README.md for btcdwebsockets example.
2014-05-09 21:05:01 -05:00
Dave Collins
9b0d311826
Update README.md.
2014-05-09 20:48:05 -05:00
Dave Collins
f54e05c8fe
Initial package overview documentation.
2014-05-09 20:12:47 -05:00
Dave Collins
8700eeaeb6
Convert to use gorilla websockets package.
...
Also, since the new package exposes more connection related error
information, add a new ErrInvalidEndpoint which is returned if the
specified enpoint does not appear to be a valid websocket provider and
only return the ErrInvalidAuth error when HTTP authorization failure
status codes are detected.
Closes #1 .
2014-05-09 19:57:58 -05:00
Dave Collins
4921282646
Add example descriptions to README.md.
2014-05-09 01:35:27 -05:00
Dave Collins
2f84189676
Add godoc reference badge to README.md.
2014-05-09 01:26:37 -05:00
Dave Collins
73ecb412e9
Add support for TravisCI.
...
Also add TravisCI build status badge to README.md.
2014-05-09 01:16:47 -05:00
Dave Collins
eb82f35aac
Improve btcdwebsockets example.
...
Since the example illustrates callbacks for the OnBlockConnected and
OnBlockDisconnected callbacks, also register for the notifications with
NotifyBlocks.
While here, document the fact that most of the callbacks require
registration.
2014-05-09 00:45:09 -05:00
Dave Collins
80f9a8e5e2
Fix FutureWalletPassphraseChange.Receive comment.
2014-05-08 13:12:56 -05:00
Dave Collins
2fc983ece1
Finish the comment on the Disconnect function.
2014-05-08 13:10:09 -05:00
Dave Collins
6825e68c59
Use uint64 for the request ID instead of int64.
...
There is no reason for the request ID to be signed. Pointed out by
@jrick.
2014-05-08 13:05:31 -05:00
Dave Collins
01183c4eca
Update for recent notifyspent changes.
...
Closes #2 .
2014-05-07 11:23:48 -05:00
Dave Collins
7c552136bc
Move Disconnected next to Disconnect func.
2014-05-07 11:23:35 -05:00
Dave Collins
1122a8a9cb
Remove leftover testing sleep.
2014-05-07 11:23:27 -05:00
Dave Collins
2f7cb64652
Add CONTRIBUTORS file.
2014-05-07 11:23:16 -05:00
GeertJohan
0cc22e1134
Make btcrpcclient use the new and consistent reply types.
2014-05-07 11:23:00 -05:00
Dave Collins
831d0aeb90
Add support for getwork submit.
2014-05-07 11:22:38 -05:00
Dave Collins
fa7f670160
Add link to examples in README.md.
2014-05-07 11:22:12 -05:00
Dave Collins
43ca7c0f3c
Add a couple of examples.
2014-05-07 11:21:36 -05:00
Dave Collins
cf409a8d79
Disconnect client on shutdown.
2014-05-07 11:19:30 -05:00
Dave Collins
e3f130ade5
Initial commit.
2014-05-07 11:14:39 -05:00