Daemon HTTP RPC Commands
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

Inputing commands

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.
For example:
    The url above will display the current blockchain height.

Commands

    Expected output
    1
    {
    2
    "already_generated_coins": "129095443585.49424584",
    3
    "alt_blocks_count": 72,
    4
    "block_major_version": 5,
    5
    "block_minor_version": 0,
    6
    "contact": "[email protected]",
    7
    "difficulty": 15525517770,
    8
    "fee_address": "QWC1RALGaP5U8BLJskYR2YVSjr3DQEEuS5xghbtX2mm134YVXgS4RJHZGkeBvXf4BRFLWkv4zHGJ267S9pjwvVt63xwkdYPCwF",
    9
    "grey_peerlist_size": 785,
    10
    "height": 631979,
    11
    "incoming_connections_count": 196,
    12
    "last_block_difficulty": 15501045527,
    13
    "last_block_reward": 10562690450574,
    14
    "last_block_timestamp": 1595189310,
    15
    "last_known_block_index": 631978,
    16
    "min_tx_fee": 100000000,
    17
    "outgoing_connections_count": 7,
    18
    "readable_tx_fee": "1.00000000",
    19
    "rpc_connections_count": 19,
    20
    "start_time": 1591793327,
    21
    "status": "OK",
    22
    "top_block_hash": "ebb71cd6dbbaa2c8079b05ee897b13f22eb48db4b80c0701dddd8f3b1eb2ae95",
    23
    "tx_count": 1763574,
    24
    "tx_pool_size": 0,
    25
    "version": "5.3.1.4068 (f693d25)",
    26
    "white_peerlist_size": 90
    27
    }
    Copied!

getheight - returns the height of the daemon and the network

    Expected output
1
{
2
"height": 631980,
3
"status": "OK"
4
}
Copied!

gettransactions - returns list of missed transactions

    Expected output
1
{
2
"missed_tx": [],
3
"status": "OK",
4
"txs_as_hex": []
5
}
Copied!

feeaddress - returns the address to where the nodes fees are sent

    Expected output
1
{
2
"fee_address": "QWC1RALGaP5U8BLJskYR2YVSjr3DQEEuS5xghbtX2mm134YVXgS4RJHZGkeBvXf4BRFLWkv4zHGJ267S9pjwvVt63xwkdYPCwF",
3
"status": "OK"
4
}
Copied!

getpeers - returns the list of peers connected to the daemon

    Expected output
1
{
2
"peers": [
3
"94.130.187.117:8196",
4
"195.201.27.148:8196",
5
"148.251.115.233:8196",
6
"173.212.197.11:8196",
7
...
8
"173.249.35.250:8196"
9
],
10
"status": "OK"
11
}
Copied!

paymentid - returns the paymentid of the node

    Expected output
1
{
2
"payment_id": "d4d9671bf684c73209d0f756a81ced9493650d16cb332ea477cc3bdf90522db7"
3
}
Copied!
Last modified 1yr ago