code: def spendables_for_address(address, netcode, format=None):
      
      if format:
          method = "as_%s" % format
      for m in service_provider_methods("spendables_for_address", get_default_providers_for_netcode(netcode)):
          try:
              spendables = m(address)
              if format:
                  spendables = [getattr(s, method)() for s in spendables]
              return spendables
          except Exception:
              pass
      return []
docs: Return a list of Spendable objects for the
      given bitcoin address.
  
      Set format to "text" or "dict" to transform return value
      from an object to a string or dict.
  
      This is intended to be a convenience function. There is no way to know that
      the list returned is a complete list of spendables for the address in question.
  
      You can verify that they really do come from the existing transaction
      by calling tx_utils.validate_unspents.