priiduneemre / btcd-cli4j Goto Github PK
View Code? Open in Web Editor NEWA simple Java wrapper around Bitcoin Core's JSON-RPC (via HTTP) interface
Home Page: http://btcd-cli4j.neemre.com
License: Apache License 2.0
A simple Java wrapper around Bitcoin Core's JSON-RPC (via HTTP) interface
Home Page: http://btcd-cli4j.neemre.com
License: Apache License 2.0
i want use the BtcdDaemon
add config to dogecoin.conf
service=1
rpcuser=dogecoinrpc
rpcpassword=xxxxxxxx
alertnotify="echo %s | nc 127.0.0.1 5158"
blocknotify="echo %s | nc 127.0.0.1 5159"
walletnotify="echo %s | nc 127.0.0.1 5160"
start ./dogecoind
the log show
sh: 1: echo 2c02fbe7a2aafc775382f62d881399765349db57c958342c3d7e11178c579853 | nc 127.0.0.1 5159: not found
.......
i miss something??
run on ubuntu 16.04 and dogecoin 1.10
My toes are too big to fit into the sole of the shoe.
4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
HttpLayerException(super=CommunicationException(super=com.neemre.btcdcli4j.core.http.HttpLayerException: Error #1004004: The operation failed due to an unknown IO exception., code=1004004))
at com.neemre.btcdcli4j.core.http.client.SimpleHttpClientImpl.execute(SimpleHttpClientImpl.java:66)
at com.neemre.btcdcli4j.core.jsonrpc.client.JsonRpcClientImpl.execute(JsonRpcClientImpl.java:64)
at com.neemre.btcdcli4j.core.jsonrpc.client.JsonRpcClientImpl.execute(JsonRpcClientImpl.java:44)
at com.neemre.btcdcli4j.core.client.BtcdClientImpl.getInfo(BtcdClientImpl.java:323)
at com.neemre.btcdcli4j.core.client.BtcdClientImpl.(BtcdClientImpl.java:59)
at T.main(T.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
Caused by: org.apache.http.NoHttpResponseException: 127.0.0.1:8334 failed to respond
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:143)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:260)
at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:161)
at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:153)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:271)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:254)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at com.neemre.btcdcli4j.core.http.client.SimpleHttpClientImpl.execute(SimpleHttpClientImpl.java:51)
... 10 more
when use bitcoin 0.14.0 the
public BtcdClientImpl(CloseableHttpClient httpProvider, Properties nodeConfig)
throws BitcoindException, CommunicationException {
initialize();
rpcClient = new JsonRpcClientImpl(configurator.checkHttpProvider(httpProvider),
configurator.checkNodeConfig(nodeConfig));
configurator.checkNodeVersion(getInfo().getVersion());
configurator.checkNodeHealth((Block)getBlock(getBestBlockHash(), true));
}
the `getInfo().getVersion()`` will be throw 404
Error #1003001: The server responded with a non-OK (4xx) HTTP status code. Status line: HTTP/1.1 404 Not Found, code=1003001))
please fix them
hello,this client have no getrawmempool api
issue explains itself imo
`
Could not resolve all files for configuration ':compileClasspath'.
Could not download btcd-cli4j-core-0.5.1.jar (com.neemre.btcd-cli4j:btcd-cli4j-core:0.5.1)
> Could not get resource 'http://mvn.neemre.com/com/neemre/btcd-cli4j/btcd-cli4j-core/0.5.1/btcd-cli4j-core-0.5.1.jar'.
> Could not GET 'http://nemp.planet.ee/mvn/com/neemre/btcd-cli4j/btcd-cli4j-core/0.5.1/btcd-cli4j-core-0.5.1.jar'.
> Connect to nemp.planet.ee:80 [nemp.planet.ee/217.146.69.16] failed: Connect timed out
`
Randomly Bitcoin Core is not able to perform a requested action (sendFrom, sendMany, sendtoaddress, others...): the library report a generic error code:
"Error #1003002: The server responded with a non-OK (5xx) HTTP status code. Status line: HTTP/1.1 500 Internal Server Error, code=1003002"
A way of getting the RPC error codes of the Bitcoin Core must be implemented.
RPC error codes can be found here:
https://github.com/bitcoin/bitcoin/blob/master/src/rpc/protocol.h
Exception in thread "main" HttpLayerException(super=CommunicationException(super=com.neemre.btcdcli4j.core.http.HttpLayerException: Error #1003001: The server responded with a non-OK (4xx) HTTP status code. Status line: HTTP/1.1 404 Not Found, code=1003001)
bitcoin v0.18.1
In the pom file including the following did not work for me
<repositories>
<repository>
<id>mvn-nemp-ftp</id>
<name>Nemp's Maven Repository</name>
<url>http://mvn.neemre.com/</url>
</repository>
</respositories>
I had to change repositories
to distributionManagement
for it to work for me in eclipse:
<distributionManagement>
<repository>
<id>mvn-nemp-ftp</id>
<name>Nemp's Maven Repository</name>
<url>http://mvn.neemre.com/</url>
</repository>
</distributionManagement>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.