Api Documentation
URL:
Python Example
import requests
resp = requests.get("https://ihostmn.com/api/v1/hosting/public/get_masternode_count")
print(resp.json())
Curl Example
curl -X GET "https://ihostmn.com/api/v1/hosting/public/get_masternode_count"
Example Result:
{"result":{"total":8090},"error":""}
URL:
Python Example
import requests
resp = requests.get("https://ihostmn.com/api/v1/hosting/public/get_coin_count")
print(resp.json())
Curl Example
curl -X GET "https://ihostmn.com/api/v1/hosting/public/get_coin_count"
Example Result:
{"result":{"total":451},"error":""}
URL:
Python Example
import requests
resp = requests.get("https://ihostmn.com/api/v1/hosting/public/list_all_coins")
print(resp.json())
Curl Example
curl -X GET "https://ihostmn.com/api/v1/hosting/public/list_all_coins"
Example Result:
{"result":{"coins":[{"name":"NestEggCoin","ticker":"EGG","hosting_price":0.99,"collateral":25000,"roi":737.64,"dip":0,"masternode_price":64.04,"coin_price":0.0025616,"hosted_masternodes":179,"enabled_masternodes":174,"links":{"discord":"https://discord.gg/mTdwYy","explorer":"http://207.148.1.73:3001/","website":"https://www.nesteggcoin.com/","announcement":"https://t.me/nesteggcoins","github":"https://github.com/SirElven8/NestEGG"}},{"name":"PawCoin","ticker":"PWC","hosting_price":0.99,"collateral":1000,"roi":534.94,"dip":0,"masternode_price":0,"coin_price":0,"hosted_masternodes":1,"enabled_masternodes":0,"links":{"discord":"https://discord.gg/QF55Zy4","explorer":"https://explorer.pawcoin.network/","website":"http://pawcoin.network/","announcement":"https://bitcointalk.org/index.php?topic=5243550.0","github":"https://github.com/PawcoinNew/Pawcoin"}}]},"error":""}
Your api key must be set as an custom request header with name: IHOSTMN-API-KEY
You can request api key from: https://ihostmn.com/settings.php
URL:
Python Example
You can request api key from: https://ihostmn.com/settings.php
import requests
resp = requests.get("https://ihostmn.com/api/v1/hosting/user/get_balance", headers={"IHOSTMN-API-KEY":"YourIhostmnApiKeyHere"})
print(resp.json())
Curl Example
curl -H "IHOSTMN-API-KEY:YourIhostmnApiKeyHere" -X GET "https://ihostmn.com/api/v1/hosting/user/get_balance"
Example Result:
{"result":{"balance":10.53},"error":""}
Your api key must be set as an custom request header with name: IHOSTMN-API-KEY
You can request api key from: https://ihostmn.com/settings.php
URL:
Python Example
You can request api key from: https://ihostmn.com/settings.php
import requests
resp = requests.get("https://ihostmn.com/api/v1/hosting/user/list_masternodes", headers={"IHOSTMN-API-KEY":"YourIhostmnApiKeyHere"})
print(resp.json())
Curl Example
curl -H "IHOSTMN-API-KEY:YourIhostmnApiKeyHere" -X GET "https://ihostmn.com/api/v1/hosting/user/list_masternodes"
Example Result:
{"result": {"masternodes": [{"id": 45809, "ticker": "XBI", "price": 0.99, "private_key": "CmIbkfExogngyywtClfpueaTEnmVRsmjxljYYSBWbYwLRVpZnm", "paid_until": 1610093639, "alias": "my xbi masternode 1", "transaction_id": "reEJdJGgwxYEESckkTSsyulcYAryauoJFPzmCiKRscYlYczUuOyIAWtpPstqBWAw", "tx_index": 0, "ip": "2a02:c207:2023:7638::2", "masternode_conf_text": "myxbimasternode1 [2a02:c207:2023:7638::2]:7339 CmIbkfExogngyywtClfpueaTEnmVRsmjxljYYSBWbYwLRVpZnm reEJdJGgwxYEESckkTSsyulcYAryauoJFPzmCiKRscYlYczUuOyIAWtpPstqBWAw 0", "port": 7339, "setup_progress": 100, "pending_delete": 0, "dip_keys": {"public_key": "", "private_key": ""}, "dip_addresses": {"owner_address": "", "payment_address": ""}, "dip": 0, "local_blocks": 1354007, "remote_blocks": 1354007, "peers": 6},{"id": 67781, "ticker": "SOVE", "price": 0.99, "private_key": "NjNrLGKJXIlpmHIVVQJdrnVgUUzlyikvoHpTSifdvWHayltHDi", "paid_until": 1609067606, "alias": "my sove masternode 1", "transaction_id": "wgVRycSJenzMOsUoKsQaJYFfpZfBoiBAmrCpXyCIArbiMKdMbnfTsluIDHlgRLBS", "tx_index": 1, "ip": "95.216.40.144", "masternode_conf_text": "mysovemasternode1 95.216.40.144:18976 NjNrLGKJXIlpmHIVVQJdrnVgUUzlyikvoHpTSifdvWHayltHDi wgVRycSJenzMOsUoKsQaJYFfpZfBoiBAmrCpXyCIArbiMKdMbnfTsluIDHlgRLBS 1", "port": 18976, "setup_progress": 100, "pending_delete": 0, "dip_keys": {"public_key": "", "private_key": ""}, "dip_addresses": {"owner_address": "", "payment_address": ""}, "dip": 0, "local_blocks": 1405058, "remote_blocks": 1405057, "peers": 14},{"id": 75517, "ticker": "KYAN", "price": 1.99, "private_key": " ", "paid_until": 1609905627, "alias": "my kyan masternode 1", "transaction_id": "66fF4fCzxvNdtVH8GVcHatJCFD58EH81hmZMX9Unib4112lYVEQc604n660225W9", "tx_index": 0, "ip": "95.216.109.179", "masternode_conf_text": "", "port": 7577, "setup_progress": 100, "pending_delete": 0, "dip_keys": {"public_key": "805ha20wst9hss1pxjsc4vl13ezis15o5x3dgwl9dbhv9pkgvui29zkzp7a2yn1rcxyccdh8w1vls8zyvycxe3nnwhf2iq2m", "private_key": "8opoymczspysfl32uhfwfhmg0q7nkyusge8mnkmom6t5oflp84f880pox5532tly"}, "dip_addresses": {"owner_address": "K7VvlB9Pv6udeUXqmgxDSSCZBdx8gqwT3o4rp66", "payment_address": "KrOyud69pISckpkQ01kRGy1xg316f2tf5nnaURG"}, "dip": 1, "local_blocks": 49212, "remote_blocks": 49212, "peers": 16}]}, "error": ""}
Your api key must be set as an custom request header with name: IHOSTMN-API-KEY
You can request api key from: https://ihostmn.com/settings.php
URL:
Expected Parameters:
You can request api key from: https://ihostmn.com/settings.php
Parameter | Description | Example Value |
---|---|---|
id | Id of masternode on our platform. | 73455 |
import requests
id = 73455
resp = requests.get("https://ihostmn.com/api/v1/hosting/user/masternode_info", params={"id":id}, headers={"IHOSTMN-API-KEY":"YourIhostmnApiKeyHere"})
print(resp.json())
Curl Example
curl -d "id=73455" -H "IHOSTMN-API-KEY:YourIhostmnApiKeyHere" -X GET "https://ihostmn.com/api/v1/hosting/user/masternode_info"
Example Result:
{"result": {"info": {"id": 75509, "coin_name": "Sapphire", "coin_ticker": "SAPP", "price": 0.99, "wallet_info": {"peers": 16, "local_blocks": 846303, "peer_blocks": 846303, "protocol": 70926, "mn_status": "Masternode successfully started", "server_ip": "95.217.95.234:45328", "mn_address": "SDcYSs3gBi63zmSIarHXUrlPsi2aZ1jT84WMzvI", "last_updated_at": 1607520004}, "private_key": "1YUNWj20cMNHu5Kd62PLv7ni8wH7BMougwe1Pg5TGEs5ISJikq", "paid_until": 1609901434, "pending_delete": 0, "alias": "my sapphire masternode 1", "masternode_conf_text": "mysapphiremasternode1 95.217.95.234:45328 1YUNWj20cMNHu5Kd62PLv7ni8wH7BMougwe1Pg5TGEs5ISJikq dxitps1z111vgmbcvkv0kfppfoh6sxtzg6qphrs6kes4xfoxudj7e4jhxnwbh0m8 1", "transaction_id": "dxitps1z111vgmbcvkv0kfppfoh6sxtzg6qphrs6kes4xfoxudj7e4jhxnwbh0m8", "transaction_index": 1, "masternode_ip": "95.217.95.234", "masternode_port": 45328, "setup_progress": 100, "dip": 0, "dip_keys": {"public_key": "", "private_key": ""}, "dip_addresses": {"owner_address": "", "payment_address": ""}, "local_blocks": 846303, "remote_blocks": 846303, "peers": 16, "last_info_update": 1607520004}}, "error": ""}
Your api key must be set as an custom request header with name: IHOSTMN-API-KEY
You can request api key from: https://ihostmn.com/settings.php
URL:
Expected Parameters:
You can request api key from: https://ihostmn.com/settings.php
Parameter | Description | Example Value |
---|---|---|
cointicker | Coin ticker. | XBI |
alias | Unique alias of masternode ( don't use any special characters ). | Masternode 1 |
txid | Collateral transaction id. | bd53dbc32d99a2a6f49f359528768ah77adc9ac0792788f85631433e0088dc09 |
txindex | Collateral transaction index. | 0 |
owneraddress | If coin uses deterministic masternodes, set this to masternode owner address else leave empty. | UaApgpWab8JEMfT32qtooYWnkPKXbWAP26 |
payoutaddress | If coin uses deterministic masternodes, set this to masternode payout address else leave empty. | g4sYWWtD3ff1ffDsb8fvJkar3zbJ82qNKP |
import requests
cointicker = "SAPP"
alias = "Masternode Alias"
txid = "bd53dbc32d99a2a6f49f359528768ah77adc9ac0792788f85631433e0088dc09"
txindex = 0
resp = requests.post("https://ihostmn.com/api/v1/hosting/user/create_new_masternode", params={"cointicker":cointicker, "alias":alias, "txid":txid, "txindex":txindex}, headers={"IHOSTMN-API-KEY":"YourIhostmnApiKeyHere"})
print(resp.json())
Python Example For DIP003 Masternode
import requests
cointicker = "SAPP"
alias = "Masternode Alias"
txid = "bd53dbc32d99a2a6f49f359528768ah77adc9ac0792788f85631433e0088dc09"
txindex = 0
owneraddress = "UaApgpWab8JEMfT32qtooYWnkPKXbWAP26"
payoutaddress = "g4sYWWtD3ff1ffDsb8fvJkar3zbJ82qNKP"
resp = requests.post("https://ihostmn.com/api/v1/hosting/user/create_new_masternode", params={"cointicker":cointicker, "alias":alias, "txid":txid, "txindex":txindex, "owneraddress":owneraddress, "payoutaddress":payoutaddress}, headers={"IHOSTMN-API-KEY":"YourIhostmnApiKeyHere"})
print(resp.json())
Curl Example For Normal Masternode
curl -d "cointicker=SAPP&alias=Masternode Alias&txid=bd53dbc32d99a2a6f49f359528768ah77adc9ac0792788f85631433e0088dc09&txindex=0" -H "IHOSTMN-API-KEY:YourIhostmnApiKeyHere" -X POST "https://ihostmn.com/api/v1/hosting/user/create_new_masternode"
Curl Example For DIP003 Masternode
curl -d "cointicker=SAPP&alias=Masternode Alias&txid=bd53dbc32d99a2a6f49f359528768ah77adc9ac0792788f85631433e0088dc09&txindex=0&owneraddress=UaApgpWab8JEMfT32qtooYWnkPKXbWAP26&payoutaddress=g4sYWWtD3ff1ffDsb8fvJkar3zbJ82qNKP" -H "IHOSTMN-API-KEY:YourIhostmnApiKeyHere" -X POST "https://ihostmn.com/api/v1/hosting/user/create_new_masternode"
Example Result:
{"result":{"id":51243},"error":""}
Your api key must be set as an custom request header with name: IHOSTMN-API-KEY
You can request api key from: https://ihostmn.com/settings.php
URL:
Expected Parameters:
You can request api key from: https://ihostmn.com/settings.php
Parameter | Description | Example Value |
---|---|---|
id | Id of masternode on our platform. | 12623 |
months | Number of months to extend masternode by, min: 1, max: 24. | 2 |
import requests
id = 73455
months = 2
resp = requests.post("https://ihostmn.com/api/v1/hosting/user/extend_masternode", params={"id":id, "months":months}, headers={"IHOSTMN-API-KEY":"YourIhostmnApiKeyHere"})
print(resp.json())
Curl Example
curl -d "id=73455&months=2" -H "IHOSTMN-API-KEY:YourIhostmnApiKeyHere" -X POST "https://ihostmn.com/api/v1/hosting/user/extend_masternode"
Example Result:
{"result": {"success": 1, "added_months": 2, "spent": 1.98}, "error": ""}
Your api key must be set as an custom request header with name: IHOSTMN-API-KEY
You can request api key from: https://ihostmn.com/settings.php
URL:
Expected Parameters:
You can request api key from: https://ihostmn.com/settings.php
Parameter | Description | Example Value |
---|---|---|
id | Id of masternode on our platform. | 73455 |
import requests
id = 73455
resp = requests.post("https://ihostmn.com/api/v1/hosting/user/delete_masternode", params={"id":id}, headers={"IHOSTMN-API-KEY":"YourIhostmnApiKeyHere"})
print(resp.json())
Curl Example
curl -d "id=73455" -H "IHOSTMN-API-KEY:YourIhostmnApiKeyHere" -X POST "https://ihostmn.com/api/v1/hosting/user/delete_masternode"
Example Result:
{"result":{"deleted":1},"error":""}
Your api key must be set as an custom request header with name: IHOSTMN-API-KEY
You can request api key from: https://ihostmn.com/settings.php
URL:
Expected Parameters:
You can request api key from: https://ihostmn.com/settings.php
Parameter | Description | Example Value |
---|---|---|
id | Id of masternode on our platform. | 73455 |
command | Available commands: reset, reindex ,reinstall_sentinel. | reset |
import requests
id = 73455
command = "reset"
resp = requests.post("https://ihostmn.com/api/v1/hosting/user/send_masternode_command", params={"id":id, "command":command}, headers={"IHOSTMN-API-KEY":"YourIhostmnApiKeyHere"})
print(resp.json())
Curl Example
curl -d "id=73455&command=reset" -H "IHOSTMN-API-KEY:YourIhostmnApiKeyHere" -X POST "https://ihostmn.com/api/v1/hosting/user/send_masternode_command"
Example Result:
{"result": {"success": 1}, "error": ""}
Your api key must be set as an custom request header with name: IHOSTMN-API-KEY
You can request api key from: https://ihostmn.com/settings.php
URL:
Expected Parameters:
You can request api key from: https://ihostmn.com/settings.php
Parameter | Description | Example Value |
---|---|---|
id | Id of masternode on our platform. | 73455 |
txid | New collateral transaction id. | 3e9a7608792994e3670476b98f77c92b25400f6c22d8e1d8f140ce8b1549df2b |
txindex | New collateral transaction index. | 1 |
import requests
id = 73455
txid = "3e9a7608792994e3670476b98f77c92b25400f6c22d8e1d8f140ce8b1549df2b"
txindex = 1
resp = requests.post("https://ihostmn.com/api/v1/hosting/user/change_masternode_tx", params={"id":id, "txid":txid, "txindex":txindex}, headers={"IHOSTMN-API-KEY":"YourIhostmnApiKeyHere"})
print(resp.json())
Curl Example
curl -d "id=73455&txid=3e9a7608792994e3670476b98f77c92b25400f6c22d8e1d8f140ce8b1549df2b&txindex=1" -H "IHOSTMN-API-KEY:YourIhostmnApiKeyHere" -X POST "https://ihostmn.com/api/v1/hosting/user/change_masternode_tx"
Example Result:
{"result":{"success":1},"error":""}
URL:
Python Example
import requests
resp = requests.get("https://ihostmn.com/api/v1/coinstats/public/list_all_coins")
print(resp.json())
Curl Example
curl -X GET "https://ihostmn.com/api/v1/coinstats/public/list_all_coins"
Example Result:
{"result":{"coins":[{"ticker":"1X2","reward_frequency":135962,"roi":190.008,"block_time":58,"masternode_statuses":"{\"ENABLED\":2309,\"EXPIRED\":9,\"REMOVE\":3}","daily_income":5.20569863,"weekly_income":36.41604538,"monthly_income":158.34,"price":0.00000939,"blocks24h":1481,"coin_supply":3067033.13505239,"collateral":1000,"wallet_version":"/1X2 Coin Core:1.0.0/","wallet_protocol":70810,"reward_amount":8.19,"last_updated":1564122810,"block_height":402569,"last_block_time":1564122816,"trade_volume":0.137078},{"ticker":"ABS","reward_frequency":196659,"roi":76.8,"block_time":95,"masternode_statuses":"{\"ENABLED\":1115,\"EXPIRED\":1,\"NEW_START_REQUIRED\":20,\"NO_SENTINEL_PING\":6,\"POSE_BAN\":3}","daily_income":5.26027397,"weekly_income":36.7978228,"monthly_income":160,"price":3.68e-07,"blocks24h":907,"coin_supply":12932867.94137083,"collateral":2500,"wallet_version":"/Absolute Core:0.12.2.5/","wallet_protocol":70210,"reward_amount":12,"last_updated":1564123619,"block_height":464831,"last_block_time":1564122991,"trade_volume":0.23962291}]},"error":""}
URL:
Expected Parameters:
Python Example
Parameter | Description | Example Value |
---|---|---|
ticker | Coin ticker. | SAPP |
import requests
ticker = "SAPP"
resp = requests.get("https://ihostmn.com/api/v1/coinstats/public/list_coin", params={"ticker":ticker})
print(resp.json())
Curl Example
curl -X GET "https://ihostmn.com/api/v1/coinstats/public/list_coin?ticker=SAPP"
Example Result:
{"result":{"coin":{"ticker":"SAPP","reward_frequency":81464,"roi":128.6775,"block_time":58,"masternode_statuses":"{\"ACTIVE\":3,\"REMOVE\":2,\"ENABLED\":1397,\"EXPIRED\":4}","daily_income":705.08219178,"weekly_income":4932.34566955,"monthly_income":21446.25,"price":0.00000165,"blocks24h":1488,"coin_supply":455122745.8018782,"collateral":200000,"wallet_version":"1030301","wallet_protocol":70926,"reward_amount":665,"last_updated":1607515034,"block_height":846221,"last_block_time":1607514949,"trade_volume":0.97507721}},"error":""}
URL:
Expected Parameters:
Python Example
Parameter | Description | Example Value |
---|---|---|
ticker | Coin ticker. | SAPP |
address | Masternode collateral address. | SaDSLgvjVMkG1ueZbT8LsBq8GfxvcsMq81 |
import requests
ticker = "SAPP"
address = "SaDSLgvjVMkG1ueZbT8LsBq8GfxvcsMq81"
resp = requests.get("https://ihostmn.com/api/v1/coinstats/public/masternode_info", params={"ticker":ticker, "address":address})
print(resp.json())
Curl Example
curl -X GET "https://ihostmn.com/api/v1/coinstats/public/masternode_info?ticker=SAPP&address=SaDSLgvjVMkG1ueZbT8LsBq8GfxvcsMq81"
Example Result:
{"result":{"masternode":{"transaction_id":"894b767e38c03dba161418ed4f9368dd54fc0f85b59d5928f8e8e309760e37b9","transaction_index":0,"status":"ENABLED","protocol":70915,"address":"RAVdXpEgYX4soBgTuZZGN174dzqwZUUVd2","active_time":5470091,"last_active":1595159701,"last_paid_time":1595155599,"last_paid_block":0,"ip":"1.2.3.4","port":24400}},"error":""}
URL:
Expected Parameters:
Python Example
Parameter | Description | Example Value |
---|---|---|
ticker | Coin ticker. | SAPP |
address | Masternode collateral address. | SaDSLgvjVMkG1ueZbT8LsBq8GfxvcsMq81 |
import requests
ticker = "SAPP"
address = "SaDSLgvjVMkG1ueZbT8LsBq8GfxvcsMq81"
resp = requests.get("https://ihostmn.com/api/v1/coinstats/public/masternode_rewards", params={"ticker":ticker, "address":address})
print(resp.json())
Curl Example
curl -X GET "https://ihostmn.com/api/v1/coinstats/public/masternode_rewards?ticker=SAPP&address=SaDSLgvjVMkG1ueZbT8LsBq8GfxvcsMq81"
Example Result:
{"result":{"rewards":[{"txid":"026c10a2eea429bebd2bb21ccde933dc8af9e585a3d7dee64c54051185df546b","blocktime":1601730556,"blockid":824800,"reward":3926},{"txid":"c97dc1e2a490b7a43360b12e1dfc4b5385d4bf1fa3221e29cedc13e0fe2b2186","blocktime":1601724472,"blockid":824697,"reward":3926},{"txid":"2fb9a58efcb8c44917b26f9958bcf28b7e5bf34886c89588a46f67a454865b0f","blocktime":1601711955,"blockid":824490,"reward":3926}]},"error":""}
URL:
Expected Parameters:
Python Example
Parameter | Description | Example Value |
---|---|---|
ticker | Coin ticker. | SAPP |
txid | Transaction hash. | 3233564c46d282252adb7258935bde738902e6c6eef3d74d1759c3c95267520e |
import requests
ticker = "SAPP"
txid = "3233564c46d282252adb7258935bde738902e6c6eef3d74d1759c3c95267520e"
resp = requests.get("https://ihostmn.com/api/v1/coinstats/public/getrawtransaction", params={"ticker":ticker, "txid":txid})
print(resp.json())
Curl Example
curl -X GET "https://ihostmn.com/api/v1/coinstats/public/getrawtransaction?ticker=SAPP&txid=3233564c46d282252adb7258935bde738902e6c6eef3d74d1759c3c95267520e"
Example Result:
{"result":{"tx_info":{"txid":"3233564c46d282252adb7258935bde738902e6c6eef3d74d1759c3c95267520e","version":1,"locktime":0,"vin":[{"txid":"3d60a5f6b98444e8666eaadd851ff671bd62d76d02187acd52e9d8a80f11dead","vout":0,"coinbase":"","sequence":4294967295}],"vout":[{"value":35.05267985,"n":0,"ScriptPubKey":{"asm":"OP_DUP OP_HASH160 769d1a64992d69516aad634caab2a22924fe8451 OP_EQUALVERIFY OP_CHECKSIG","hex":"76a914769d1a64992d69516aad634caab2a22924fe845188ac","reqSigs":1,"type":"pubkeyhash","addresses":["SY7AyC7U6oM4nw7ZpB4bbwyaQuFZ28ghqH"]}}],"blockhash":"0debccc486d264f36f08f44c856d38ad3f2da2b51040935b1480e43157f02f34","confirmations":2320,"time":1607377050,"blocktime":1607377050}},"error":""}
URL:
Expected Parameters:
Python Example
Parameter | Description | Example Value |
---|---|---|
ticker | Coin ticker. | SAPP |
index | Block index (Either hash or index parameter must be set). | 1337 |
hash | Block hash (Either hash or index parameter must be set). | f787818139862bfde4865c6a4811e5ecbea6b4d5d6b1cf332f0e9f001157242a |
import requests
ticker = "SAPP"
hash = "f787818139862bfde4865c6a4811e5ecbea6b4d5d6b1cf332f0e9f001157242a"
index = 1337
respByHash = requests.get("https://ihostmn.com/api/v1/coinstats/public/getblock", params={"ticker":ticker, "hash":hash})
print(respByHash.json())
respByIndex = requests.get("https://ihostmn.com/api/v1/coinstats/public/getblock", params={"ticker":ticker, "index":index})
print(respByIndex.json())
Curl Example
Get block by hash:
curl -X GET "https://ihostmn.com/api/v1/coinstats/public/getblock?ticker=SAPP&hash=f787818139862bfde4865c6a4811e5ecbea6b4d5d6b1cf332f0e9f001157242a"
Get block by index:
curl -X GET "https://ihostmn.com/api/v1/coinstats/public/getblock?ticker=SAPP&index=1337"
Example Result:
{"result":{"block_info":{"hash":"dbf606773123fdb881611fe91610dd1bdb275c3bd294b324440bb5f8b36f3f65","confirmations":844817,"size":430,"height":1337,"version":3,"merkleroot":"5b2ac02122feb37344955b609e9c7743de6af6437eb26986bd21a379357ee1e1","tx":["8726d05b9d7e0d81cbef759e1f4d7c56103db176309a662a34ac9925afe2d19a","3c08c262686dd5bf4a5f5eaae6876bff8e750abb1a77c862e84b507eebce02b4"],"time":1556252953,"mediantime":1556252594,"nonce":0,"bits":"1d00b90e","difficulty":1.383353738337485,"moneysupply":0,"chainwork":"0000000000000000000000000000000000000000000000000000046086ce78d4","previousblockhash":"a255993afe33a52a5f72f497f27a4610b95a9f2f3e1abb3671ff17084243fe41","nextblockhash":"c6a6890e590c1d0aa97ce3866eeb9f7745c7aa670d59fb782d5792e0401ebc12"}},"error":""}
URL:
Expected Parameters:
Python Example
Parameter | Description | Example Value |
---|---|---|
ticker | Coin ticker. | SAPP |
address | Address to verify. | SaJHeJhiaynZ8ntNxp2KWYNt5cf3FkjYob |
import requests
ticker = "SAPP"
address = "SaJHeJhiaynZ8ntNxp2KWYNt5cf3FkjYob"
resp = requests.get("https://ihostmn.com/api/v1/coinstats/public/validate_address", params={"ticker":ticker, "address":address})
print(resp.json())
Curl Example
curl -X GET "https://ihostmn.com/api/v1/coinstats/public/validate_address?ticker=SAPP&address=SaJHeJhiaynZ8ntNxp2KWYNt5cf3FkjYob"
Example Result:
{"result":{"address_info":{"isvalid":true,"address":"SaJHeJhiaynZ8ntNxp2KWYNt5cf3FkjYob","scriptPubKey":"76a9148ea780716c104fd8eeb8d9c3cd50c4df59d62dab88ac","isscript":false}},"error":""}