// if found nothing, it would return nil transaction and nil error
if found nothing, it would return nil transaction and nil error
// if found nothing it would return nil transaction and nil error
func FindOneTransaction(coinid int, trxid string) (*Transaction, error) {
	trx := &Transaction{}
	row := db.QueryRow("SELECT * FROM transaction_history WHERE coin_id = ? and tx_id = ?", coinid, trxid)
	err := row.Scan(dbColumns(trx)...)
	if err == sql.ErrNoRows {
		return nil, nil
	} else if err != nil {
		return nil, err
	}
	return trx, nil
}
func FindOneTransaction ( coinid int , trxid string ) ( * Transaction , error ) { trx := & Transaction { } row := db . QueryRow ( " " , coinid , trxid ) err := row . Scan ( dbColumns ( trx ) ... ) if err == sql . ErrNoRows { return nil , nil } else if err != nil { return nil , err } return trx , nil }
if found nothing, it would return nil transaction and nil error
if found nothing it would return nil transaction and nil error