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
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
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:
Parameter Description Example Value
id Id of masternode on our platform. 73455
Python Example
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:
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
Python Example For Normal Masternode
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:
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
Python Example
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:
Parameter Description Example Value
id Id of masternode on our platform. 73455
Python Example
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:
Parameter Description Example Value
id Id of masternode on our platform. 73455
command Available commands: reset, reindex ,reinstall_sentinel. reset
Python Example
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:
Parameter Description Example Value
id Id of masternode on our platform. 73455
txid New collateral transaction id. 3e9a7608792994e3670476b98f77c92b25400f6c22d8e1d8f140ce8b1549df2b
txindex New collateral transaction index. 1
Python Example
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/sharing/public/get_masternode_count") print(resp.json())
Curl Example
curl -X GET "https://ihostmn.com/api/v1/sharing/public/get_masternode_count"
Example Result:
{"result":{"total":900},"error":""}

URL: Python Example
import requests resp = requests.get("https://ihostmn.com/api/v1/sharing/public/get_coin_count") print(resp.json())
Curl Example
curl -X GET "https://ihostmn.com/api/v1/sharing/public/get_coin_count"
Example Result:
{"result":{"total":35},"error":""}

URL: Python Example
import requests share_id = 147 resp = requests.get("https://ihostmn.com/api/v1/sharing/public/list_single_coin", params={"share_id": share_id}) print(resp.json())
Curl Example
curl -X GET "https://ihostmn.com/api/v1/sharing/public/list_single_coin?share_id=147"
Example Result:
{"result":{"coin":{"name":"VECO","share_id":3,"ticker":"VECO","collateral":1000,"roi":572.4,"pos":0,"masternode_price":0.8,"service_fee":5,"enabled_deposits":1,"enabled_payments":1,"pos_earned":0,"total_masternodes":1,"total_deposited":1481.2632581,"coins_to_new_masternode":518.7367419}},"error":""}

URL: Python Example
import requests resp = requests.get("https://ihostmn.com/api/v1/sharing/public/list_all_coins") print(resp.json())
Curl Example
curl -X GET "https://ihostmn.com/api/v1/sharing/public/list_all_coins"
Example Result:
{"result":{"coins":[{"name":"VECO","share_id":3,"ticker":"VECO","collateral":1000,"roi":572.4,"pos":0,"masternode_price":0.8,"service_fee":5,"enabled_deposits":1,"enabled_payments":1,"pos_earned":0,"total_masternodes":1,"total_deposited":1481.2632581,"coins_to_new_masternode":518.7367419},{"name":"Argoneum","share_id":5,"ticker":"AGM","collateral":10000,"roi":103.2,"pos":0,"masternode_price":21.97,"service_fee":75,"enabled_deposits":1,"enabled_payments":1,"pos_earned":0,"total_masternodes":1,"total_deposited":14810.2632581,"coins_to_new_masternode":5180.7367419}]},"error":""}

URL: Expected Parameters:
Parameter Description Example Value
share_id Id of masternode share coin. 147
Python Example
import requests share_id = 147 resp = requests.get("https://ihostmn.com/api/v1/sharing/public/list_share_masternodes", params={"share_id": share_id}) print(resp.json())
Curl Example
curl -X GET "https://ihostmn.com/api/v1/sharing/public/list_share_masternodes?share_id=147"
Example Result:
{"result": {"masternodes": [{"address": "VUX3272RkPu41CZP5iukBdJitSnHeie61K", "total_earned": 54.00000606, "last_earning_time": 1564065452, "last_earning_transaction": "0cf0ea562dd5755fa225672cee1447bd4f438dfaecdf48e4b2ddd490c86c0572"}, {"address": "VMHZP9W8o8cKKh3xZoRQ17JeGuXCgNi5wa", "total_earned": 48.00000258, "last_earning_time": 1564032239, "last_earning_transaction": "266aaabb2576f024e943ef8a12d695984b48de62563006ae1b04affd93071206"}, {"address": "VSiavVNSrycBdespprm1ASP7ifmpBaFnYe", "total_earned": 48.0000105, "last_earning_time": 1564033946, "last_earning_transaction": "189cd4986254e9b4845825e40157dd32fef39c70596041ba4d8d237d73ac5199"}, {"address": "VREmLiAuttaxPybu8gFRncFCd3Dsucx17q", "total_earned": 48.00006024, "last_earning_time": 1564062783, "last_earning_transaction": "3a926a4c0d9ab7a3da8e12063cdfc2e4c124b0e684571bc610fb5667e703592b"}, {"address": "VLibCnLz2h64SNa6CMdfTSzbFZXdq8Xvbf", "total_earned": 54.00000834, "last_earning_time": 1564055986, "last_earning_transaction": "a98c640f423648ca816ad9e6830bfd8a19d3c8a31f2fc30c08e8e924417ce5ae"}]}, "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
import requests ihostmn_api_key = "YourIhostmnApiKeyHere" resp = requests.get("https://ihostmn.com/api/v1/sharing/user/list_all_deposits", headers={"IHOSTMN-API-KEY": ihostmn_api_key}) print(resp.json())
Curl Example
curl -H "IHOSTMN-API-KEY:YourIhostmnApiKeyHere" -X GET "https://ihostmn.com/api/v1/sharing/user/list_all_deposits"
Example Result:
{"result": {"deposits": [{"deposit_id": 36, "share_id": 2, "current_amount": 53.077553, "total_deposited": 24.91567, "total_earned": 28.146885, "withdraw_address": "GcUgnY5fFwTv9ef8rsggdxbdQzLEUxpp4c", "deposit_address": "GfUgnY5sFwTf9ez8rovtdxdEQzLcbxpb4c"}, {"deposit_id": 37, "share_id": 5, "current_amount": 885.9591, "total_deposited": 521.92, "total_earned": 472.30566, "withdraw_address": "gHWHPs21H8UsSNcbfWxvn5XssAxFkcuZYe", "deposit_address": "g4sbWWtD3tf16Dsd8wiaJkar3zhJ82qNKP"}, {"deposit_id": 38, "share_id": 6, "current_amount": 754.5115, "total_deposited": 548.52997, "total_earned": 416.25214, "withdraw_address": "LLqWFFJkNSog6VwsbPWEWE4KcXJrzB6t1K", "deposit_address": "LW5Vbt1gEkvVQzfVcpLmidLPpcED1Yp3yu"}]}, "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
import requests ihostmn_api_key = "YourIhostmnApiKeyHere" resp = requests.get("https://ihostmn.com/api/v1/sharing/user/list_all_payments", headers={"IHOSTMN-API-KEY": ihostmn_api_key}) print(resp.json())
Curl Example
curl -H "IHOSTMN-API-KEY:YourIhostmnApiKeyHere" -X GET "https://ihostmn.com/api/v1/sharing/user/list_all_payments"
Example Result:
{"result": {"payments": [{"payment_id": 25, "share_id": 2, "amount": 20, "time_added": 1543402638, "time_paid": 1543404889, "payment_address": "ZJRH5WQuXykAtTjRGcPTnSsrdACgpAfLK1", "paid": 1, "pending": 0, "payment_transaction": "305bba270b7128ebbea7d8460518e01328a908924a022922f6d3f471895897af"}, {"payment_id": 26, "share_id": 2, "amount": 75.35777, "time_added": 1543409207, "time_paid": 1543409601, "payment_address": "ZJRH5WQuXykAtTjRGcPTnSsrdACgpAfLK1", "paid": 1, "pending": 0, "payment_transaction": "c7bd62619dc83393df8196a8c1d7c7feebf9de3ed03853ca13b10b2bc4a9a399"}, {"payment_id": 27, "share_id": 2, "amount": 5, "time_added": 1543486278, "time_paid": 1543486305, "payment_address": "ZPVxXkvJpvQ7eEjPKc136eZ5SCodCmu4qd", "paid": 1, "pending": 0, "payment_transaction": "75f965b09145e837cdcc73b57a60138a44d16e04802028cf51245540daa8671f"}]}, "error": ""}

URL: Expected Parameters:
Parameter Description Example Value
share_id Id of masternode share coin. 141
Python Example
import requests share_id = 141 resp = requests.get("https://ihostmn.com/api/v1/sharing/public/get_buy_orders", params={"share_id": share_id}) print(resp.json())
Curl Example
curl -X GET "https://ihostmn.com/api/v1/sharing/public/get_buy_orders?share_id=141"
Example Result:
{"result":{"buy_orders":{"0.000000001":{"Amount":50000,"Total":0.00005}, "0.000000002":{"Amount":50000,"Total":0.0001}}},"error":""}

URL: Expected Parameters:
Parameter Description Example Value
share_id Id of masternode share coin. 141
Python Example
import requests share_id = 141 resp = requests.get("https://ihostmn.com/api/v1/sharing/public/get_sell_orders", params={"share_id": share_id}) print(resp.json())
Curl Example
curl -X GET "https://ihostmn.com/api/v1/sharing/public/get_sell_orders?share_id=141"
Example Result:
{"result":{"sell_orders":{"0.00000001":{"Amount":50000,"Total":0.0005}, "0.00000002":{"Amount":50000,"Total":0.001}}},"error":""}

URL: Expected Parameters:
Parameter Description Example Value
share_id Id of masternode share coin. 141
Python Example
import requests share_id = 141 resp = requests.get("https://ihostmn.com/api/v1/sharing/public/get_order_history", params={"share_id": share_id}) print(resp.json())
Curl Example
curl -X GET "https://ihostmn.com/api/v1/sharing/public/get_order_history?share_id=141"
Example Result:
{"result":{"order_history":[{"Id":8,"Amount":100,"Total":0.00001,"Price":1e-07,"TimeMade":1627837171,"OrderType":"buy","Owned":false},{"Id":25,"Amount":100,"Total":0.00001,"Price":1e-07,"TimeMade":1627978562,"OrderType":"buy","Owned":false}]},"error":""}

URL: Expected Parameters:
Parameter Description Example Value
share_id Id of masternode share coin. 141
Python Example
import requests share_id = 141 resp = requests.get("https://ihostmn.com/api/v1/sharing/public/get_ticker", params={"share_id": share_id}) print(resp.json())
Curl Example
curl -X GET "https://ihostmn.com/api/v1/sharing/public/get_ticker?share_id=141"
Example Result:
{"result":{"ticker":{"last_price":0.00000010,"high":0.000000012,"low":0.00000006,"sell":0.00000003,"buy":0.00000002,"volume_btc":0,"volume":0,"percentage_change":0}},"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:
Parameter Description Example Value
share_id Id of masternode share coin. 141
amount Desired amount of coins to buy. 500
price Desired price to buy the coins for. 0.0000001
Python Example
import requests share_id = 141 amount = 500 price = 0.0000001 resp = requests.post("https://ihostmn.com/api/v1/sharing/user/buy_order", params={"share_id": share_id, "amount": amount, "price": price}, headers={"IHOSTMN-API-KEY":"YourIhostmnApiKeyHere"}) print(resp.json())
Curl Example
curl -d "share_id=141&amount=500&price=0.0000001" -H "IHOSTMN-API-KEY:YourIhostmnApiKeyHere" -X POST "https://ihostmn.com/api/v1/sharing/user/buy_order"
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:
Parameter Description Example Value
share_id Id of masternode share coin. 141
amount Desired amount of coins to sell. 500
price Desired price to sell the coins for. 0.0000002
Python Example
import requests share_id = 141 amount = 500 price = 0.0000001 resp = requests.post("https://ihostmn.com/api/v1/sharing/user/sell_order", params={"share_id": share_id, "amount": amount, "price": price}, headers={"IHOSTMN-API-KEY":"YourIhostmnApiKeyHere"}) print(resp.json())
Curl Example
curl -d "share_id=141&amount=500&price=0.0000001" -H "IHOSTMN-API-KEY:YourIhostmnApiKeyHere" -X POST "https://ihostmn.com/api/v1/sharing/user/sell_order"
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:
Parameter Description Example Value
share_id Id of masternode share coin. 141
order_id Id of the order to close. 5374
order_type Type of the order, can be either buy or sell sell
Python Example
import requests share_id = 141 order_id = 5374 order_type = "buy" resp = requests.post("https://ihostmn.com/api/v1/sharing/user/close_order", params={"share_id": share_id, "order_id": order_id, "order_type": order_type}, headers={"IHOSTMN-API-KEY":"YourIhostmnApiKeyHere"}) print(resp.json())
Curl Example
curl -d "share_id=141&order_id=5374&order_type=buy" -H "IHOSTMN-API-KEY:YourIhostmnApiKeyHere" -X POST "https://ihostmn.com/api/v1/sharing/user/close_order"
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:
Parameter Description Example Value
share_id Id of masternode share coin. 141
Python Example
import requests share_id = 141 resp = requests.get("https://ihostmn.com/api/v1/sharing/user/get_open_orders", params={"share_id": share_id}, headers={"IHOSTMN-API-KEY":"YourIhostmnApiKeyHere"}) print(resp.json())
Curl Example
curl -H "IHOSTMN-API-KEY:YourIhostmnApiKeyHere" -X GET "https://ihostmn.com/api/v1/sharing/user/get_open_orders?share_id=141"
Example Result:
{"orders": [{"id": 71, "type": "buy", "price": 2e-08, "amount": 500.96992289, "total": 1.00194e-05, "remaining": 500.96992289}, {"id": 77, "type": "sell", "price": 2e-06, "amount": 5, "total": 1e-05, "remaining": 5}], "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:
Parameter Description Example Value
share_id Id of masternode share coin. 141
Python Example
import requests share_id = 141 resp = requests.get("https://ihostmn.com/api/v1/sharing/user/get_balances", params={"share_id": share_id}, headers={"IHOSTMN-API-KEY":"YourIhostmnApiKeyHere"}) print(resp.json())
Curl Example
curl -H "IHOSTMN-API-KEY:YourIhostmnApiKeyHere" -X GET "https://ihostmn.com/api/v1/sharing/user/get_balances?share_id=141"
Example Result:
{"Deposit": {"Id": 38462, "Amount": 5.42944698, "OriginalAmount": 0, "TotalEarned": 1200.7705452, "AmountSelling": 0, "AmountAvailable": 5.42944698}, "BTC": 0.00938668}

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:
Parameter Description Example Value
ticker Coin ticker. SAPP
Python Example
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:
Parameter Description Example Value
ticker Coin ticker. SAPP
address Masternode collateral address. SaDSLgvjVMkG1ueZbT8LsBq8GfxvcsMq81
Python Example
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:
Parameter Description Example Value
ticker Coin ticker. SAPP
address Masternode collateral address. SaDSLgvjVMkG1ueZbT8LsBq8GfxvcsMq81
Python Example
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:
Parameter Description Example Value
ticker Coin ticker. SAPP
txid Transaction hash. 3233564c46d282252adb7258935bde738902e6c6eef3d74d1759c3c95267520e
Python Example
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:
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
Python Example
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:
Parameter Description Example Value
ticker Coin ticker. SAPP
address Address to verify. SaJHeJhiaynZ8ntNxp2KWYNt5cf3FkjYob
Python Example
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":""}