code: func (db *TXDatabaseOverlay) GetTXAddress(adr string) (
  	[]interfaces.ITransaction, error) {
  	filtered := make([]interfaces.ITransaction, 0)
  
  	txs, err := db.GetAllTXs()
  	if err != nil {
  		return nil, err
  	}
  
  	if factom.AddressStringType(adr) == factom.FactoidPub {
  		for _, tx := range txs {
  			for _, in := range tx.GetInputs() {
  				if primitives.ConvertFctAddressToUserStr(in.GetAddress()) == adr {
  					filtered = append(filtered, tx)
  				}
  			}
  			for _, out := range tx.GetOutputs() {
  				if primitives.ConvertFctAddressToUserStr(out.GetAddress()) == adr {
  					filtered = append(filtered, tx)
  				}
  			}
  		}
  	} else if factom.AddressStringType(adr) == factom.ECPub {
  		for _, tx := range txs {
  			for _, out := range tx.GetECOutputs() {
  				if primitives.ConvertECAddressToUserStr(out.GetAddress()) == adr {
  					filtered = append(filtered, tx)
  				}
  			}
  		}
  	} else {
  		return nil, fmt.Errorf("not a valid address")
  	}
  
  	return filtered, nil
  }
docs: // GetTXAddress returns a list of all transactions in the history of Factom that
  // include a specific address.