Get balance of address

ENDPOINT GET

/api/addressbalance/{address}

DESCRIPTION

Returns balance for a given address.

Response on success

      {"error": "ok", "message": "0.00000000"}
    

Response on failure

      {"error": "404", "message": "This address is invalid"}
    

Get received amount of address

ENDPOINT GET

      /api/receivedbyaddress/{address}
    

DESCRIPTION

Returns total amount of confirmed received coins of a given address.

Response on success

      {"error": "ok", "message": "0.00000000"}
    

Response on failure

      {"error": "404", "message": "This address is invalid"}
    

Get sent amount of address

ENDPOINT GET

      /api/sentbyaddress/{address}
    

DESCRIPTION

Returns total amount of confirmed sent coins of a given address.

Response on success

      {"error": "ok", "message": "0.00000000"}
    

Response on failure

      {"error": "404", "message": "This address is invalid"}
    

Get valid for an address

ENDPOINT GET

      /api/validateaddress/{address}
    

DESCRIPTION

Checks an address for validity.

Response on success

      {"error": "ok", "message": "valid"}
    

Response on failure

      {"error": "this string cannot be verified as an address", "message": "invalid"}
    

Get transaction

ENDPOINT GET

      /api/rawtx/{transaction_hash}
    

DESCRIPTION

Returns transaction by transaction hash.

Response on success

      
    {
	"blockhash": "",
	"blocktime": ,
	"confirmations": ,
	"hash": "",
	"hex": "",
	"locktime": ,
	"size": ,
	"time": ,
	"txid": "",
	"version": ,
	"vin": [
	    {
		"coinbase": "",
		"ismweb": false,
		"sequence": 0,
		"txinwitness": [""]
	    }
	],
	"vout": [
	    {
		"ismweb": false,
		"n": 0,
		"scriptPubKey": {
		    "addresses": [""],
		    "asm": "",
		    "hex": "",
		    "reqSigs": 1,
		    "type": "pubkeyhash"
		},
		"value": ""
	    },
	    {
		"ismweb": false,
		"n": 1,
		"scriptPubKey": {
		    "asm": "OP_RETURN ",
		    "hex": "",
		    "type": "nulldata"
		},
		"value": ""
	    }
	],
	"vsize": ,
	"weight":
    }
      
    

Response on failure

      {"error": "invalid", "message": "This transaction is invalid"}
    

Get block

ENDPOINT GET

      /api/block/{block_hash}
    

DESCRIPTION

Returns block information by block hash.

Response on success

      
    {
	"bits": "",
	"chainwork": "",
	"confirmations": ,
	"difficulty": "",
	"hash": "",
	"height": ,
	"mediantime": ,
	"merkleroot": "",
	"mweb":{
	    "hash": "",
	    "height": ,
	    "inputs": [],
	    "kernel_offset": "",
	    "kernel_root": "",
	    "kernels": [],
	    "leaf_root": "",
	    "num_kernels": ,
	    "num_txos": ,
	    "output_root": "",
	    "outputs": [],
	    "stealth_offset": ""
      },
	"nTx": ,
	"nonce": ,
	"previousblockhash": "",
	"size": ,
	"strippedsize": ,
	"time": ,
	"tx": ["", ""],
	"version": ,
	"versionHex": "",
	"weight":
    }
      
    

Response on failure

      {"error": "invalid", "message": "This transaction is invalid"}
    

Get best block hash

ENDPOINT GET

      /api/block/getbestblockhash
    

DESCRIPTION

Returns the hash of the best (tip) block in the most-work fully-validated chain.

Response on success

      "block_hash"
    

Response on failure

      {"error": "404", "message": "There was a JSON error. Try again later"}
    

Get block count

ENDPOINT GET

      /api/block/getblockcount
    

DESCRIPTION

Returns the height of the most-work fully-validated chain.

Response on success

      {"error": "ok", "message": "n"}
    

Response on failure

      {"error": "404", "message": "There was a JSON error. Try again later"}
    

Get total coins

ENDPOINT GET

      /api/getsummary
    

DESCRIPTION

Amount of all coins on the network.

Response on success

      {"error": "ok", "message": "n"}
    

Response on failure

      {"error": "404", "message": "There was a JSON error. Try again later"}
    

Get total transactions

ENDPOINT GET

      /api/totaltransactions
    

DESCRIPTION

Total number of all transactions.

Response on success

      {"error": "ok", "message": "n"}
    

Response on failure

      {"error": "404", "message": "There was a JSON error. Try again later"}
    

Get total block confirmations

ENDPOINT GET

      /api/confirmations/{block_height}
    

DESCRIPTION

Total confirmations for the block hash/block height.

Response on success

      {"error": "ok", "message": "n"}
    

Response on failure

      {"error": "404", "message": "There was a JSON error. Try again later"}
    

Get difficulty

ENDPOINT GET

      /api/lastdifficulty
    

DESCRIPTION

Last solved block's difficulty.

Response on success

      {"error": "ok", "message": "n"}
    

Response on failure

      {"error": "404", "message": "There was a JSON error. Try again later"}