<commit_before>/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.sulacosoft.bitcoindconnector4j;

import java.util.List;
import java.util.Map;

import com.sulacosoft.bitcoindconnector4j.response.BitcoinAddress;
import com.sulacosoft.bitcoindconnector4j.response.Block;
import com.sulacosoft.bitcoindconnector4j.response.BlockchainInfo;
import com.sulacosoft.bitcoindconnector4j.response.MemoryInfo;
import com.sulacosoft.bitcoindconnector4j.response.MiningInfo;
import com.sulacosoft.bitcoindconnector4j.response.NetworkInfo;
import com.sulacosoft.bitcoindconnector4j.response.RawTransaction;
import com.sulacosoft.bitcoindconnector4j.response.ReceivedByAccount;
import com.sulacosoft.bitcoindconnector4j.response.ReceivedByAddress;
import com.sulacosoft.bitcoindconnector4j.response.SinceBlock;
import com.sulacosoft.bitcoindconnector4j.response.Transaction;
import com.sulacosoft.bitcoindconnector4j.response.TransactionDetails;
import com.sulacosoft.bitcoindconnector4j.response.TransactionOutput;
import com.sulacosoft.bitcoindconnector4j.response.WalletInfo;

/**
 * @author <NAME> {@literal (<EMAIL>)}
 * @author <NAME>
 */
public interface BitcoindApi {

	int getblockcount();

	String getaccount(String bitcoinAddress);

	String getaccountaddress(String account);

	List<String> getaddressesbyaccount(String account);

	int getconnectioncount();

	String getnewaddress(String account);

	Double getbalance();

	Double getbalance(String account);

	Double getbalance(String account, long minconf);

	String getbestblockhash();

	Block getblock(String hash);

	Double getdifficulty();

	boolean getgenerate();

	long gethashespersec();<commit_msg>Add getblockhash and getblockheader API<commit_after>/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.sulacosoft.bitcoindconnector4j;

import java.util.List;
import java.util.Map;

import com.sulacosoft.bitcoindconnector4j.response.BitcoinAddress;
import com.sulacosoft.bitcoindconnector4j.response.Block;
import com.sulacosoft.bitcoindconnector4j.response.BlockchainInfo;
import com.sulacosoft.bitcoindconnector4j.response.MemoryInfo;
import com.sulacosoft.bitcoindconnector4j.response.MiningInfo;
import com.sulacosoft.bitcoindconnector4j.response.NetworkInfo;
import com.sulacosoft.bitcoindconnector4j.response.RawTransaction;
import com.sulacosoft.bitcoindconnector4j.response.ReceivedByAccount;
import com.sulacosoft.bitcoindconnector4j.response.ReceivedByAddress;
import com.sulacosoft.bitcoindconnector4j.response.SinceBlock;
import com.sulacosoft.bitcoindconnector4j.response.Transaction;
import com.sulacosoft.bitcoindconnector4j.response.TransactionDetails;
import com.sulacosoft.bitcoindconnector4j.response.TransactionOutput;
import com.sulacosoft.bitcoindconnector4j.response.WalletInfo;

/**
 * @author <NAME> {@literal (<EMAIL>)}
 * @author <NAME>
 */
public interface BitcoindApi {

	int getblockcount();

    String getblockhash(int height);

    String getblockheader(String hash);

	String getaccount(String bitcoinAddress);

	String getaccountaddress(String account);

	List<String> getaddressesbyaccount(String account);

	int getconnectioncount();

	String getnewaddress(String account);

	Double getbalance();

	Double getbalance(String account);

	Double getbalance(String account, long minconf);

	String getbestblockhash();

	Block getblock(String hash);

	Double getdifficulty();

	boolean getgenerate();

	long gethashespersec();
{'fraction_non_alphanumeric': 0.07970867893991503, 'fraction_numerical': 0.007687639085575561, 'mean_word_length': 5.876216968011127, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7150625', 'n_tokens_mistral': 1457, 'n_tokens_neox': 1420, 'n_words': 395}