Skip to content

flian/infinitecoinj

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To get started, ensure you have the latest JDK installed, and download Maven from:

  http://maven.apache.org/

Then run "mvn clean package" to compile the software. You can also run "mvn site:site" to generate a website with
useful information like JavaDocs. The outputs are under the target/ directory.

Alternatively, just import the project using your IDE. IntelliJ has Maven integration once you tell it where to
find your unzipped Maven install directory.

Now try running one of the example apps:

  cd examples
  mvn exec:java -Dexec.mainClass=com.google.infinitecoinj.examples.ForwardingService -Dexec.args="<insert a bitcoin address here>"

It will download the block chain and eventually print a Bitcoin address. If you send coins to it,
it will forward them on to the address you specified. Note that this example app does not use
checkpointing, so the initial chain sync will be pretty slow. You can make an app that starts up and
does the initial sync much faster by including a checkpoints file; see the documentation for
more info on this.

Now you are ready to follow the tutorial:

   https://code.google.com/p/bitcoinj/wiki/GettingStarted


start local testnet:
Run bitcoin-qt or bitcoind with the -testnet flag to use the testnet (or put testnet=1 in the bitcoin.conf file).

./Infinitecoin-Qt -testnet

regtest docs:
https://medium.com/@weiliy/%E6%90%AD%E5%BB%BA-bitcoin-%E6%9C%AC%E5%9C%B0%E5%9B%9E%E5%BD%92%E6%B5%8B%E8%AF%95%E7%BD%91-regtest-d595d1746413

for here we use regtest~~
./Infinitecoin-Qt -regtest -reindex -txindex

Infinitecoin-cli.exe -regtest -rpcport=19444 -rpcuser=test -rpcpassword=abcd11111 getnewaddress
Infinitecoin-cli.exe -regtest -rpcport=19444 -rpcuser=test -rpcpassword=abcd11111 generate 150
Infinitecoin-cli.exe -datadir=C:\Users\foy\AppData\Roaming\Infinitecoin -regtest generate 150

Infinitecoin-cli.exe -regtest -rpcuser=test -rpcpassword=abcd11111 createwallet "wallet"

infinitecoin-qt.exe -regtest -connect=0 -txindex -server -rest

rpc client:
infinitecoin-cli.exe  -regtest  -rpcport=19444 getnewaddress

127.0.0.1:19444
## start regtest node
infinitecoind.exe -regtest -rescan -reindex -connect=0 -txindex -server -rest -printtoconsole  -bind=127.0.0.1
infinitecoin-qt.exe -regtest -rescan -reindex -connect=0 -txindex -server -rest -bind=127.0.0.1 -printtoconsole

About

Infinitecoin Java Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%