-
-
Notifications
You must be signed in to change notification settings - Fork 29
Daemon | HTTP RPC API
To start Daemon HTTP RPC API server you should specify a port on which server binds (additionally to standard daemon's arguments). You can choose any free port. To do that execute the following command from the command line:
./Qwertycoind --rpc-bind-port=8197
If you want Daemon to be accessed from other computer not only yours you should also use a --rpc-bind-ip 0.0.0.0
command. To do that execute the following command from the command line:
./Qwertycoind --rpc-bind-ip=0.0.0.0 --rpc-bind-port=8197
You can input the commands into any browser but Firefox will give you the best interface for viewing. To begin type in the IP address or domain name of your daemon followed by the rpc port and one of the commands below.
http://ip_address:rpc_port/command
For example:
https://pool.qwertycoin.org:8197/getheight
- The url above will display the current blockchain height.
- Expected output
{"already_generated_coins":"96407158135.65998447",
"alt_blocks_count":53,
"block_major_version":5,
"block_minor_version":0,
"contact":"dev@qwertycoin.org",
"difficulty":91532104667,
"fee_address":"QWC1RALGaP5U8BLJskYR2YVSjr3DQEEuS5xghbtX2mm134YVXgS4RJHZGkeBvXf4BRFLWkv4zHGJ267S9pjwvVt63xwkdYPCwF,
"grey_peerlist_size":2430,
"height":388735,
"incoming_connections_count":10,
"last_block_difficulty":98871693571,
"last_block_reward":16796197998698,
"last_block_timestamp":1565818316,
"last_known_block_index":388734,
"min_tx_fee":100000000,
"outgoing_connections_count":7,
"readable_tx_fee":"1.00000000",
"rpc_connections_count":17,
"start_time":1564440874,
"status":"OK",
"top_block_hash":"009e355219f2c4647650a7d1f4f8ae81af947964859f983fbeb38e148323ab9d",
"tx_count":1058803,
"tx_pool_size":42,
"version":"5.2.1.3090 (25ffb5a)",
"white_peerlist_size":998}
- Expected output
{"height":388736,"status":"OK"}
- Expected output
{"missed_tx":[],"status":"OK","txs_as_hex":[]}
- Expected output
{"fee_address":"QWC1RALGaP5U8BLJskYR2YVSjr3DQEEuS5xghbtX2mm134YVXgS4RJHZGkeBvXf4BRFLWkv4zHGJ267S9pjwvVt63xwkdYPCwF","status":"OK"}
- Expected output
{"peers":["207.180.227.215:8196", "220.82.126.94:8196", "185.177.59.99:8196", "80.211.204.60:8196", "167.86.93.173:8196", ...],"status":"OK"}
- Expected output
{"payment_id":"55c1259bddceff71a370d26e09d6bc88bcc5e0db61ea758e250700792e7cc532"}
- A01. | Contributing
- A02. | Getting Started
- A03. | Qwertycoin Community
- A04. | Qwertycoin Voting
- A05. | Qwertycoin API
- B01. | Generating a Wallet
- B02. | Making a Paper Wallet
- B03. | Wallet Backup
- B04. | Wallet Recovery
- B05. | Wallet Update
- B06. | Using CLI Wallet
- B07. | Using RPC Wallet
- B08. | Using GUI Wallet
- B09. | Using Zero Wallet
- B10. | Using Web Wallet
- B11. | Using Mobile Wallet
- B12. | RPC Wallet API
- B13. | Sign and verify messages
- C01. | Start Masternode
- C02. | Fix Sync Issues
- C03. | Load Checkpoints
- C04. | JSON RPC API
- C05. | HTTP RPC API
- D01. | XMR Stak Guide
- D02. | XMR Stak Linux Guide
- D03. | XMRIG Guide
- D04. | Mining with SBC
- D05. | Cloud Mining
- D06. | Mobile Mining
- D07. | Using a Mining Pool
- D08. | Creating a Mining Pool
- E01. | How to trade QWC on Crex24
- E02. | How to trade QWC on Bitexlive
- E03. | How to trade QWC on Bisq
- G01. | Hosting Block Explorer
- G02. | Hosting Faucet
- G03. | Hosting Web Wallet
- G04. | How to use the QWC Faucet