btcsingleblock
- Model
- Chart
Returns BTC block data in json format. [Source: https://blockchain.info/]
Source Code: [link]
openbb.crypto.onchain.btcsingleblock(blockhash: str)
Parameters
This function does not take any parameters.
Returns
| Type | Description |
|---|---|
| pd.DataFrame | BTC single block |
Returns BTC block data. [Source: https://api.blockchain.info/]
Source Code: [link]
openbb.crypto.onchain.btcsingleblock_chart(blockhash: str, export: str = "")
Parameters
| Name | Type | Description | Default | Optional |
|---|---|---|---|---|
| blockhash | str | Hash of the block you are looking for. | None | False |
| export | str | Export dataframe data to csv,json,xlsx file | True |
Returns
This function does not return anything