Blockchair Api

setApiKeyParams

Set Api key params.

Parameters

  • key string The API key. (optional)

Returns Params

getTx

Get transaction by hash.

Parameters

  • baseUrl string The blockchair node url.
  • hash string The transaction hash.
  • apiKey string The blockchair API key. (optional)

Returns Transactions

getRawTx

Get raw transaction by hash.

Parameters

  • baseUrl string The blockchair node url.
  • hash string The transaction hash.
  • apiKey string The blockchair API key. (optional)

Returns RawTxsBTC

getAddress

Get address information.

Parameters

  • baseUrl string The blockchair node url.
  • address string
  • apiKey string The blockchair API key. (optional)
  • limit number (optional)
  • offset number (optional)

Returns BtcAddressDTO

broadcastTx

Broadcast transaction.

Parameters

  • baseUrl string The blockchair node url.
  • txHex string
  • apiKey string The blockchair API key. (optional)

Returns string Transaction hash.

bitcoinStats

Get Bitcoin stats.

Parameters

  • baseUrl string The blockchair node url.
  • apiKey string The blockchair API key. (optional)

Returns ChainStatsBtc The Bitcoin stats.