code: def decodetx(tx_hex, coin_symbol='btc', api_key=None):
      '''
      Takes a signed transaction hex binary (and coin_symbol) and decodes it to JSON.
  
      Does NOT broadcast the transaction to the bitcoin network.
      Especially useful for testing/debugging and sanity checking
      '''
  
      assert is_valid_coin_symbol(coin_symbol)
      assert api_key, 'api_key required'
  
      url = make_url(coin_symbol, **dict(txs='decode'))
  
      params = {'token': api_key}
      data = {
          'tx': tx_hex,
          'token': api_key,
      }
  
      r = requests.post(url, json=data, params=params, verify=True, timeout=TIMEOUT_IN_SECONDS)
      return get_valid_json(rf decodetx(tx_hex, coin_symbol='btc', api_key=None):
      '''
      Takes a signed transaction hex binary (and coin_symbol) and decodes it to JSON.
  
      Does NOT broadcast the transaction to the bitcoin network.
      Especially useful for testing/debugging and sanity checking
      '''
  
      assert is_valid_coin_symbol(coin_symbol)
      assert api_key, 'api_key required'
  
      url = make_url(coin_symbol, **dict(txs='decode'))
  
      params = {'token': api_key}
      data = {
          'tx': tx_hex,
          'token': api_key,
      }
  
      r = requests.post(url, json=data, params=params, verify=True, timeout=TIMEOUT_IN_SECONDS)
      return get_valid_json(r)
docs: Takes a signed transaction hex binary (and coin_symbol) and decodes it to JSON.
  
      Does NOT broadcast the transaction to the bitcoin network.
      Especially useful for testing/debugging and sanity checking