code: def get_num_confirmations(tx_hash, coin_symbol='btc', api_key=None):
      '''
      Given a tx_hash, return the number of confirmations that transactions has.
  
      Answer is going to be from 0 - current_block_height.
      '''
      return get_transaction_details(tx_hash=tx_hash, coin_symbol=coin_symbol,
              limit=1, api_key=api_key).get('confirmations'f get_num_confirmations(tx_hash, coin_symbol='btc', api_key=None):
      '''
      Given a tx_hash, return the number of confirmations that transactions has.
  
      Answer is going to be from 0 - current_block_height.
      '''
      return get_transaction_details(tx_hash=tx_hash, coin_symbol=coin_symbol,
              limit=1, api_key=api_key).get('confirmations')
docs: Given a tx_hash, return the number of confirmations that transactions has.
  
      Answer is going to be from 0 - current_block_height.