def METHOD_NAME(command):
    out = run_command(command)
    try:
        txhash = json.loads(out)["txhash"]
        #print(txhash)
    except Exception as e:
        # print(out)
        raise e
    for _ in range(MAX_TRIES):
        try:
            out = compute_hash(txhash)
            out = json.loads(out)
            # print(out)
            # querying hash once the hash is computed so we can check gas usage
            tx_data = json.loads(query_hash(txhash))
            # print(json.dumps(tx_data))
            # print('gas:', tx_data['gas_used'], '\t/', tx_data['gas_wanted'])
            GAS_METRICS.append({
                'want': tx_data['gas_wanted'],
                'used': tx_data['gas_used'],
                'cmd': ' '.join(command)
            })
            return out
        except json.JSONDecodeError as e:
            time.sleep(1)
    print(out)
    print(' '.join(command), f'exceeded max tries ({MAX_TRIES})')