<filename>cryptos/explorers/dash_siampm.py<gh_stars>100-1000
from . import base_insight as insight

def get_url(coin_symbol):
    if coin_symbol == "DASH":
        return "https://insight.dash.siampm.com/api"
    return "https://test.insight.dash.siampm.com/api"

def unspent(*args, coin_symbol="DASH"):
    base_url = get_url(coin_symbol)
    return insight.unspent(base_url, *args)

def fetchtx(txhash, coin_symbol="DASH"):
    base_url = get_url(coin_symbol)
    return insight.fetchtx(base_url, txhash)

def txinputs(txhash, coin_symbol="DASH"):
    base_url = get_url(coin_symbol)
    return insight.txinputs(base_url, txhash)

def pushtx(tx, coin_symbol="DASH"):
    base_url = get_url(coin_symbol)
    return insight.pushtx(base_url, coin_symbol, tx)

def history(*args,  coin_symbol="DASH"):
    base_url = get_url(coin_symbol)
    return insight.history(base_url, *args)

def block_height(tx, coin_symbol="DASH"):
    base_url = get_url(coin_symbol)
    return insight.block_height(base_url, tx)

def current_block_height(coin_symbol="DASH"):
    base_url = get_url(coin_symbol)
    return insight.current_block_height(base_url)

def block_info(height, coin_symbol="DASH"):
    base_url = get_url(coin_symbol)
    return insight.block_info(base_url, height)
<filename>cryptos/explorers/dash_siampm.py<gh_stars>100-1000
from . import base_insight as insight

def get_url(coin_symbol):
    if coin_symbol == "DASH":
        return "https://insight.dash.siampm.com/api"
    return "https://test.insight.dash.siampm.com/api"

def unspent(*args, coin_symbol="DASH"):
    base_url = get_url(coin_symbol)
    return insight.unspent(base_url, *args)

def fetchtx(txhash, coin_symbol="DASH"):
    base_url = get_url(coin_symbol)
    return insight.fetchtx(base_url, txhash)

def txinputs(txhash, coin_symbol="DASH"):
    base_url = get_url(coin_symbol)
    return insight.txinputs(base_url, txhash)

def pushtx(tx, coin_symbol="DASH"):
    base_url = get_url(coin_symbol)
    return insight.pushtx(base_url, coin_symbol, tx)

def history(*args,  coin_symbol="DASH"):
    base_url = get_url(coin_symbol)
    return insight.history(base_url, *args)

def block_height(tx, coin_symbol="DASH"):
    base_url = get_url(coin_symbol)
    return insight.block_height(base_url, tx)

def current_block_height(coin_symbol="DASH"):
    base_url = get_url(coin_symbol)
    return insight.current_block_height(base_url)

def block_info(height, coin_symbol="DASH"):
    base_url = get_url(coin_symbol)
    return insight.block_info(base_url, height)