Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Bitcoind

Start the cryptonode

docker-compose up -Vd *mainnet or testnet*`

Usage

Create a new account

curl -H "Content-Type: application/json" --data '{"method": "getnewaddress"}' rpcuser:rpcpassword@ip:port

Or, you can specify account and get this address assigned to new address

curl -H "Content-Type: application/json" --data '{"method": "getnewaddress", "params": ["billy"]}' rpcuser:rpcpassword@ip:port

Where 'billy' is your account name. You can check that address for account was created properly:

curl -H "Content-Type: application/json" --data '{"method": "validateaddress", "params": ["bitcoincash:qrf8qjayhg0cakja6e34hpwy6lyeuf2q9g3zpjy7ez"]}' rpcuser:rpcpassword@ip:port

General Blockchain info

curl -H "Content-Type: application/json" --data '{"method": "getblockchaininfo"}' rpcuser:rpcpassword@ip:port

More: BitcoinCash RPC API